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

[no subject]

[no subject]
I am prepared to re-write my style sheet as necessary. However, I
played around a bit with what you suggested but I am apparently
missing something because I was unable to come up with anything that
made sense.

Thanks,
Jason

On Mon, Dec 15, 2014 at 6:48 PM, Graydon graydon@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> On Tue, Dec 16, 2014 at 12:18:11AM -0000, Jason Davis nosaj3@xxxxxxxxx scripsit:
>> I am currently trying to process multiple files for specific nodes and
>> collect them in a meaningful way to demonstrate the parent-child
>> relationship but I'm having trouble getting past the first level of
>> children.
>
> [snip]
>
>> And believe me, I'm sure there are better ways to accomplish what I am
>> attempting. So, any insights or suggestions for improvement, better
>> efficiency, etc. are greatly appreciated. I'm pretty much an amateur
>> with XSLT. So, please let me know if I am missing anything.
>
> This sounds like a DITA map-merge sort of problem.  The trick with
> those is to recognize that your stylesheet will happily consume multiple
> source documents, so you start at the "topmost" document and when you
> get to the child documents you use
>
> <apply-templates select="document(@href)"/>
>
> or similar to process the interesting child document referenced by the
> @href  Then you make sure the templates -- maybe using modes -- are set
> up to match only what you want in the result document.
>
> In this application, you probably have to set up templates to ignore
> what you don't want, but the trick is to move the context node into the
> child documents as necessary.  It's not an initially natural way to
> think but does get easier with practise.
>
> This is much, much easier than trying to construct references of
> references to arbitrary depth!
>
> -- Graydon

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.