[xml] XSLT space handling



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?

Regards,
Steve




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