OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
xslt,xpath problems
This page's ID:
26232
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
hi hi, thanks for reply. [code] - <tr> - <td bgcolor="#ffffff" colspan="10" height="2"> <img alt="" height="1" src="http://pics.ebaystatic.com/aw/pics/x.gif" title="" width="100%" /> </td> </tr> - <tr bgcolor="#ffffff"> - <td height="20" valign="middle" width="10"> <img alt="" height="20" src="http://pics.ebaystatic.com/aw/pics/x.gif" title="" width="10" /> </td> - <td align="left"> <a href="http://contact.ebay.in/ws/eBayISAPI.dll?ReturnUserEmail&requested=naveen71&iid=8316776438&frm=992">naveen71</a> <img border="0" src="http://pics.ebaystatic.com/aw/pics/s.gif" width="4" /> ( <a href="http://feedback.ebay.in/ws/eBayISAPI.dll?ViewFeedback&userid=naveen71">2</a> ) </td> <td align="middle" nowrap="nowrap" valign="top">Rs. 349.00</td> <td align="middle" valign="top">1</td> - <td align="left" valign="top"> <img height="1" src="http://pics.ebaystatic.com/aw/pics/s.gif" width="10" /> 06-Jul-2005 18:04:26 IST </td> - <td> <img alt="" height="1" src="http://pics.ebaystatic.com/aw/pics/x.gif" title="" width="1" /> </td> </tr> - <tr> - <td bgcolor="#f9f9f9" colspan="10" height="2"> <img alt="" height="1" src="http://pics.ebaystatic.com/aw/pics/x.gif" title="" width="100%" /> </td> </tr> - <tr bgcolor="#f9f9f9"> - <td height="20" valign="middle" width="10"> <img alt="" height="20" src="http://pics.ebaystatic.com/aw/pics/x.gif" title="" width="10" /> </td> - <td align="left"> <a href="http://contact.ebay.in/ws/eBayISAPI.dll?ReturnUserEmail&requested=sweetsam84&iid=8316776438&frm=992">sweetsam84</a> <img border="0" src="http://pics.ebaystatic.com/aw/pics/s.gif" width="4" /> ( <a href="http://feedback.ebay.in/ws/eBayISAPI.dll?ViewFeedback&userid=sweetsam84">0</a> ) </td> <td align="middle" nowrap="nowrap" valign="top">Rs. 349.00</td> <td align="middle" valign="top">1</td> - <td align="left" valign="top"> <img height="1" src="http://pics.ebaystatic.com/aw/pics/s.gif" width="10" /> 07-Jul-2005 09:42:50 IST </td> - <td> <img alt="" height="1" src="http://pics.ebaystatic.com/aw/pics/x.gif" title="" width="1" /> </td> </tr> [/code] i am totally new to xslt and i try with this xslt [code] <xsl:template match="table[starts-with(normalize-space(tr/td[2]/span/b/text()),'User ID:')]"> <xsl:for-each select="tr[$counter+1]"> <buyer> <xsl:value-of select="td[2]/a/text()"/> </buyer> <price> <xsl:value-of select="td[3]/text()"/> </price> </xsl:for-each> </xsl:template> [/code] but it only can get the first tr result, but what i want is after the for loop can get [code] tr[1] , tr[2] [/code] hope you understand what i mean :> thank u [small](Edited by [internallink=26229]beryl_peng[/internallink] on 07-13-2005 20:20)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »