Subject: Xpath
Posted By: Ma7T Post Date: 8/16/2005 7:02:04 AM
Whats the best way, from the 1st appearence of column row/value, moving to the next occurance?

<item>
 <column/>
 <column>
      <column_row num="1" number="2">
           <value>Event Count</value>
      </column_row>
 </column>
 <column/>
 <column/>
 <column>
      <column_row num="1" number="5">
            <value>1</value>
      </column_row>
 </column>
</item>

Reply By: mhkay Reply Date: 8/16/2005 7:15:34 AM


(../../following-sibling::column/column_row/value)[1]

or you could do

following::value[1]

but it might be less efficient.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply By: Ma7T Reply Date: 8/16/2005 7:54:51 AM
Thanks alot.


Go to topic 33878

Return to index page 489
Return to index page 488
Return to index page 487
Return to index page 486
Return to index page 485
Return to index page 484
Return to index page 483
Return to index page 482
Return to index page 481
Return to index page 480