|
RE: Single Space Separator in xsl:attribute: msg#00139text.xml.saxon.help
I've logged this as a bug and published a fix. See https://sourceforge.net/tracker/index.php?func=detail&aid=1224227&group_id=2 9872&atid=397617 Note that if instead of <xsl:attribute name="a"> <xsl:sequence select="1, 2, 3"/> </xsl:attribute> you wrote <xsl:attribute name="a" select="1, 2, 3"/> the separator would default to a single space. Michael Kay > -----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 |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Single Space Separator in xsl:attribute: 00139, Stefan Wachter |
|---|---|
| Next by Date: | Omit-xml-declaration="yes" not working in UTF-16: 00139, Neil Atkinson |
| Previous by Thread: | RE: STXi: 00139, Michael Kay |
| Next by Thread: | Omit-xml-declaration="yes" not working in UTF-16: 00139, Neil Atkinson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |