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

RE: splitting multiple occurrences of an element withi

Subject: RE: splitting multiple occurrences of an element within another element
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Thu, 25 Sep 2003 10:29:46 -0400
xsl multiple occurrences
[ Brian Benson]

> Thank you very much.  Your code does exactly what I need.  
> Now I need to
> see if I can understand it.

Mukul Gandhi's solution is very similar to the one I posted earlier,
with a few changes to account for the deep nesting location of the
doclink.  The key point in both solutions is the selection of doclink
nodes - which Gandhi is selecting with .//doclink (BTW, '//doclink'
would work just as well here), which finds doclink nodes at any depth
instead of just the one nesting level I originally used.  He uses the
ancestor axis to find the related document node so he can get the right
attribute values - my example used '..' to get to the right ancestor.

Gandhi uses for-each instead of apply-templates.  Either way will work,
as you can see.  

Cheers,

Tom P

 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.