Re: [xml] XSLT space handling

Hi Daniel,

Daniel Veillard wrote:

On Fri, Nov 23, 2001 at 01:29:04AM +0800, Steve Underwood wrote:


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" />

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
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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]