xsl-list
[Top] [All Lists]

RE: Are whitespace text nodes tripped out in varaibles?

2006-01-25 14:03:30
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 : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs 
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>