Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 31st, 2006, 08:05 PM
rnurse@gmail.com
Guest
 
Posts: n/a
Default XPath Help

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.

  #2  
Old July 31st, 2006, 10:35 PM
Johannes Koch
Guest
 
Posts: n/a
Default Re: XPath Help

rnurse@gmail.com wrote:
Quote:
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

--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
  #3  
Old August 1st, 2006, 04:35 PM
HugeBob
Guest
 
Posts: n/a
Default Re: XPath Help

Thanks Johannes. That makes sense now.

Johannes Koch wrote:
Quote:
rnurse@gmail.com wrote:
Quote:
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
>
--
Johannes Koch
Spem in alium nunquam habui praeter in te, Deus Israel.
(Thomas Tallis, 40-part motet)
  #4  
Old August 13th, 2006, 05:25 PM
ziggyware@gmail.com
Guest
 
Posts: n/a
Default Re: XPath Help


My XPath tool (XPath Studio .NET) (tm) may be of help in creating xpath
statements: feel free to check it out:

http://www.ziggyware.com/downloads.php?cat_id=2

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles