xsl-list
[Top] [All Lists]

preceding-sibling::node()[1] to root node

2005-06-04 02:30:59
I have a question.. 

What should be the output of?

<xsl:template match="/">
  <xsl:value-of
select="count(preceding-sibling::node()[1])" />
</xsl:template>

Should it be 0 or 'NaN' .. Or something else?

Regards,
Mukul



                
__________________________________ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html

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