[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: when to use 'as' attribute on a variable

Subject: Re: when to use 'as' attribute on a variable
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Wed, 8 Mar 2006 14:59:09 +0100 (CET)
Re:  when to use 'as' attribute on a variable
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 : 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.