xsl-list
[Top] [All Lists]

Re: Get specific elements

2003-04-28 02:09:44
you would use '/AAA/BBB/CCC' to get any with a parent of BBB

and

/AAA/CCC to get the ones with parent AAA

But I don't quite understand what you reallly want out of this.  Do you want
to dynamically state the parental constraints so you can process the CCCs in
there sibling node blocks?

Cheers

Simon



----- Original Message -----
From: "Johan Thorèn (EAB)" <Johan(_dot_)Thoren(_at_)era(_dot_)ericsson(_dot_)se>
To: <XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Monday, April 28, 2003 10:58 AM
Subject: [xsl] Get specific elements



Hello

I have an XML looking like

<AAA>
   <BBB>
      <CCC>
      </CCC>
   </BBB>
   <CCC>
   </CCC>
</AAA>

How can I specify to get the CCC with parent /AAA/BBB element separated
from the
CCC with parent /AAA/. Meaning getting an element depending on all
preceding
parents. I reckon this could be done recursively. But Im stuck at the
moment...

Best regards
Johan Thoren


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




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



<Prev in Thread] Current Thread [Next in Thread>