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

RE: value and/or type of node()

Subject: RE: value and/or type of node()
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 17 Jul 2009 19:31:40 +0100
RE:  value and/or type of node()
node() means ./child::node(), that is, it selects children of the context
node. The context node changes inside a predicate.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

> -----Original Message-----
> From: Dick Penny [mailto:d_penny@xxxxxxx] 
> Sent: 17 July 2009 18:40
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  value and/or type of node()
> 
> Well, let's see if my posting ability is up to standard?
> 
> I am simply experimenting with ways of "passing args" to 
> templates, XSLT 1.0, Sharepoint environment.
> 1) I succeeded in "with-param"
> 2) MK's book says that <xsl:template> is executed with no 
> change to context, current node is preserved, page 181, and 
> elsewhere that RTFs or single-node sets can generally be used 
> as string values, so I try:
> 
> <xsl:template name="oneCell" >
> 	<td>
>     <xsl:variable name="v1" select="node()"/>
> OK	<xsl:value-of select="count($Rows[@GroupAssigned=$v1])"/>
> BAD     <xsl:value-of select="count($Rows[@GroupAssigned=node()])"/>
> 	</td>
> </xsl:template>
> 
> Which is called inside of a for-each loop, doing "pull" style 
> processing.
> 
> Why does one work and not the other? What do I not understand?
> 
> Dick Penny

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.