RE: splitting multiple occurrences of an element withi
[ Brian Benson] > Tom, > > Thanks for the help. Sorry, but I forgot to mention that a > doclink can be > nested any level of elements deep inside the document. I > can't count on it > being directly under the document. How can I change your code to find > doclinks no matter how many levels deep they are. > > FYI, the code that I posted, finds all doclinks no matter how > many levels > deep they are, but doesn't return other information that I need. There is no way to tell with without seeing how the doclink elements that are nested deeper are related to the other information you want to collect. That is to say, what are the doclinks nested in? The solution might amount to a grouping problem, or something else, but we need more information. If you have some influence over the design of the source xml, it would be useful to change it so that all doclinks are at the same nesting level. On the other hand, if it is a case of one document being nested within another, along with its associated information, only minor changes would be needed to the code I posted (like changing the select statement for the variable to '//doclink'). But we have to see more examples and explanation. Cheers, Tom P 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