|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] AW: xsl:for-each and xml:space with text-nodes inbetwe
Hi, > -----Urspr|ngliche Nachricht----- > Von: G. Ken Holman [mailto:gkholman@xxxxxxxxxxxxxxxxxxxx] > Gesendet: Dienstag, 25. April 2006 22:44 > An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Betreff: Re: xsl:for-each and xml:space with text-nodes > inbetween [...] > >Should any text-node, regardless if it's whitespace-only or not, > >be reported as invalid at such a position? > > Yes, it is an error, and Saxon reports it as an error, because the > xml:space="preserve" creates a node of the template before the > xsl:sort instruction, which is not allowed. > > >Using the MSXML .NET Processor, I get the following result: > > > ><?xml version='1.0' encoding='utf-8' ?> > ><foo> a b c</foo> > > I would assess that as a bug ... the space character is clearly part > of the template and the standard does not allow any part of the > template before xsl:sort. > > >then an error is reported concerning the invalid position of xsl:sort > >inside xsl:for-each. I'm confused here. > > I think you are confused because of the bug. [...] Ah, this makes sense now. Thank you very much for taking time for this case! Regards, Kasimier
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






