logo       

Single Space Separator in xsl:attribute: msg#00136

text.xml.saxon.help

Subject: Single Space Separator in xsl:attribute

Hi all,

I try to use a single space as a separator in an xsl:attribute instruction where the xsl:attribute instruction contains a sequence constructor. Unfortunately it seems that the single space is replaced by an empty string.

The following stylesheet yiels an element with two attributes the value of the first attribute is "123" and the value of the second one is "1-2-3".

Isn't it possible to use a single space as a separator together with a sequence constructor?

Best regards,
--Stefan


<xsl:template match="/">
<xsl:message>
<x>
<xsl:attribute name="a" separator=" ">
<xsl:sequence select="1, 2, 3"/>
</xsl:attribute>
<xsl:attribute name="b" separator="-">
<xsl:sequence select="1, 2, 3"/>
</xsl:attribute>
</x>
</xsl:message>
</xsl:template>



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise