|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Get specific elements
Hi, > 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... "/AAA/BBB/CCC" or "//CCC[parent::BBB]" or "//CCC[not(parent::AAA)]" or write more specific template match patterns i.e. "AAA/BBB/CCC" and "AAA/CCC" etc. Which is the best depends on what your stylesheet looks like, that is where you want to "specify to get the CCC". Cheers, Jarno - Hocico: Spit as an offence(suicide commando remix) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








