logo       

Re: Single Space Separator in xsl:attribute: msg#00138

text.xml.saxon.help

Subject: Re: Single Space Separator in xsl:attribute

Thanks for the workaround. It works!

Maybe the problem has to do with white-space normalization?

--Stefan

Michael Kay wrote:

I can't immediately see why this isn't working, but the following workaround
is available:

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

Michael Kay
http://www.saxonica.com/

-----Original Message-----
From: saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx [mailto:saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx] On Behalf Of Stefan Wachter
Sent: 20 June 2005 15:20
To: saxon-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
Subject: [saxon] 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
_______________________________________________
saxon-help mailing list
saxon-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/saxon-help






-------------------------------------------------------
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
_______________________________________________
saxon-help mailing list
saxon-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/saxon-help






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