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

Re: Accessing specific repetitive node

Subject: Re: Accessing specific repetitive node
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Fri, 5 Mar 2004 16:26:39 -0000
xsl pick a specific child
Andrea,

Thanks for the response, I've sorted the problem now, but thanks for your
helpful comments, whicj I will bear in mind for the future.

Regards,

Mark

----- Original Message -----
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, March 05, 2004 4:28 PM
Subject: RE:  Accessing specific repetitive node


> > -----Original Message-----
> > From: Mark Williams
> >
> <snip />
> > In my xslt I pick up 3 specific items with 3 separate select statements.
> >
>
> Hi Mark,
>
> Do these 3 select-statements all appear within the same context?
>
> Meaning: if you have the value-of statement as you posted, and before the
> next value-of the context is changed, then the XPath-expression
>
> DATA/Table[@ID='2']/Data/Code[3]
>
> would be an empty nodeset if the context node has no DATA-child (relative
> path).
>
> Best to make sure to use the following if your DATA element is the root
>
> /DATA/Table[@ID='2']/Data/Code[3]
>
> or collect all relevant nodes into a variable using 'position() mod 2' as
> condition (like Ken indicated) and apply-templates to or for-each over
that
> variable.
>
> Cheers,
>
> Andreas
>
>
>  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.