Subject: RE: [xsl] Are whitespace text nodes tripped out in varaibles? From: Florent Georges <darkman_spam@xxxxxxxx> Date: Wed, 25 Jan 2006 22:03:30 +0100 (CET) |
Michael Kay wrote: > > Is the expected behaviour that the whitespace text > > nodes are stripped out in a document node constructed > > in a variable? > No, but it is expected that whitespace text nodes are > removed from the stylesheet while it is being compiled. Ok, I think I understand. This is dictated by '4.2/3. And using xml:space or document('') peserves whitespace text nodes. > If you want to generate whitespace text nodes, use > xsl:text or xsl:value-of. Mmh, it's not really a solution for what I need it to. For my case, xml:space is the right thing IMHO. Thanks for your help, --drkm ___________________________________________________________________________ Nouveau : tiliphonez moins cher avec Yahoo! Messenger ! Dicouvez les tarifs exceptionnels pour appeler la France et l'international. Tilichargez sur http://fr.messenger.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Are whitespace text nodes, Florent Georges | Thread | [xsl] Creating XPath2 functions:pas, cknell |
RE: [xsl] Are whitespace text nodes, Michael Kay | Date | Re: [xsl] Are whitespace text nodes, andrew welch |
Month |