XPath Help

R

rnurse

Hi All,

I'm new to XML and I'm working with an XSL style sheet. In this file
I've noticed the following XPath reference:

<xsl:for-each select="//SomeNodeName">
..
..
..

Could someone explain the "//" in the XPath reference?

Thanks.
 
J

Johannes Koch

I'm new to XML and I'm working with an XSL style sheet. In this file
I've noticed the following XPath reference:

<xsl:for-each select="//SomeNodeName">

Could someone explain the "//" in the XPath reference?

See the example in the XPath 1.0 specification
(<http://www.w3.org/TR/xpath#path-abbrev>):

//para selects all the para descendants of the document root and thus
selects all para elements in the same document as the context node
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top