xsl-list
[Top] [All Lists]

Re: [xsl] when to use 'as' attribute on a variable

2006-03-08 06:59:28
tom tom wrote:

So what advantage does document-node() give me over element(),
node(), or item()??

  They're differents things.  Nodes are nodes in a tree, while items
are just items of a sequence.  Nodes can be text(), element(), etc.

In XPath 1 <xsl:value-of select="node()"/> would return the
value of the text nodes

  This constructs a text node whose the value is the textual value of
the selected nodeset (with a proper definition of "textual value"). 
Here, the nodeset contains the nodes attached to the context node.

  Regards,

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