Re: [xml] XSLT space handling
- From: Steve Underwood <steveu coppice org>
- To: veillard redhat com
- Cc: xml gnome org
- Subject: Re: [xml] XSLT space handling
- Date: Fri, 23 Nov 2001 02:38:06 +0800
Hi Daniel,
Daniel Veillard wrote:
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
Quite. The space I refered to was just the one I was really interested
in achieving.
I forgot to say that I got this running xsltproc from xsltlib 1.0.7 on
RedHat 6.2.
Regards,
Steve
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]