[thelist] XSL / XPath
Drew Shiel
ashiel at sportsinteraction.com
Tue Nov 4 04:52:14 CST 2003
Here's a chunk of XML:
<headline>
<furtherdetails>
<event id="248914" eventtypeid="94" betlive="0"
bettingtype="Outright" numrunners="20">2003 World Cup - Outright</event>
<runner id="847157" handicap="0" currentprice="1.25"
fractionprice="5/4 ">New Zealand</runner>
<runner id="847158" handicap="0" currentprice="1.5"
fractionprice="3/2 ">England</runner>
<runner id="847159" handicap="0" currentprice="5"
fractionprice="5/1 ">Australia</runner>
<runner id="847160" handicap="0" currentprice="12"
fractionprice="12/1 ">France</runner>
</furtherdetails>
</headline>
I'm trying to work out the XSL/XPath stuff to say "Take the first two
runner nodes and do THIS with them", where THIS is dropping some of the
values into a HTML table.
Anyone able to explain it? The XPath things have me baffled.
Drew.
Drew Shiel, Web Development, Sports Interaction
ashiel at sportsinteraction.com
http://www.sportsinteraction.com/
+353-1-2365701 (Direct Line)
More information about the thelist
mailing list