[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xslt question

Subject: RE: xslt question
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Sat, 29 Jul 2000 03:05:40 +0100
xsl direct child
Your probably right.
I assumed (wrongly) that the spaghetti at the bottom was causing the
problems. Sheesh can't type can't see. Oh well it is Friday.

>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Jeni Tennison
>Sent: 28 July 2000 19:15
>To: XSL User
>Cc: xsl-list@xxxxxxxxxxxxxxxx
>Subject: Re: xslt question
>
>
>Hi,
>
>>I am trying to get the 5th table of the 1st table of the 3rd
>table ONLY from
>>an HTML document. I've been trying various combinations for a
>couple of days
>>now and it is frustrating?
>[snip]
>><xsl:template match="table[3]/table[1]/table[5]">
>><HR>
>>	<xsl:apply-templates />
>></HR>
>></xsl:template>
>
>When you have a step in an XPath and you don't specify an axis name, then
>the step uses the 'child' axis.  This means that your XPath translates as:
>
>a table that is the fifth table that is a direct child of
>  a table that is the first table that is a direct child of
>    a table that is the third table of its parent
>
>Since your input is HTML, I guess that the tables aren't nested as direct
>children of each other, and that instead they are within rows and cells.
>You probably want something like:
>
>  table[3]/tr/td/table[1]/tr/td/table[5]
>
>I hope that helps,
>
>Jeni
>
>
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.