Re: [xml] XSLT space handling
- From: Daniel Veillard <veillard redhat com>
- To: Steve Underwood <steveu coppice org>
- Cc: xml gnome org
- Subject: Re: [xml] XSLT space handling
- Date: Thu, 22 Nov 2001 12:41:17 -0500
On Fri, Nov 23, 2001 at 01:29:04AM +0800, Steve Underwood wrote:
Hi,
I am not an XSLT expert, but it seems to me something is not right.
The following template:
<xsl:template name="coreprompts-prompt-script" xml:space="preserve">
<xsl:param name="name" select="string(@name)"/>
<xsl:value-of select="$name"/> <xsl:value-of select="$name" />
</xsl:template>
results in the two copies of $name having no space between them.
Shouldn't the xml:space="preserve" cause the space between the
xsl:value-of tags to be preserved?
Sounds right according to http://www.w3.org/TR/xslt#strip
That looks like a bug in libxslt. Note also that it should also preserve
and generate in the output:
- the white spaces before xsl:param
- the white spaces before the first xsl:value-of
- the white spaces after the last xsl:value-of
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]