[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: Wed, 24 Sep 2003 15:19:05 -0400
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


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.