Subject: Filtering the nodes passed to a template... From: "Callum Elliott" <c.j.elliott-96@xxxxxxxxxxxxxxxxxxx> Date: Thu, 30 Mar 2000 16:38:48 +1100 |
Hi, I'm trying to pass certain (filtered) nodes to a template, using 'apply templates'. Normally I'd do <apply-templates select="stuff[@things = gadgets]"/> and that would do. But this is more complicated... My xml looks something like this <report> <payments> <payment id="..."/> <payment id="..."/> </payments> <paymentTypes> <paymentType paymentTypeRef="..."> <paymentType paymentTypeRef="..."> </paymentTypes> </report> In the context of <report> I want to pass all the 'paymentTypes/paymentType' nodes to a template, where @paymentTypeRef matches any @id attributes in <payments>...phew! In the template I'll be outputting the @paymentTypeRef (amongst other things), but!!...I only want to output @paymentTypeRef if the sibling node before it hasn't got the same value. Any ideas?? I'd be very grateful. Thanks, Callum XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
basic XSL question., Narahari, Sateesh | Thread | Re: Filtering the nodes passed to a, Mike Brown |
Re: Including CSS File References i, Dan Morrison | Date | String comparision in XPath, Sven Kuenzler |
Month |