[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: splitting multiple occurrences of an element withi
Thanks for the explanation Tom. "Passin, Tom" <tpassin@xxxxxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent by: cc: owner-xsl-list@xxxxxxxxxxx Subject: RE: splitting multiple occurrences of an element within another element rrytech.com 09/25/2003 09:29 AM Please respond to xsl-list [ 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 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
|