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

Re: combining multiple documents

Subject: Re: combining multiple documents
From: Steven Ericsson-Zenith <steven@xxxxxxxxxxxxx>
Date: Thu, 24 Jan 2008 08:25:22 -0800
Re:  combining multiple documents
I will build a test case later today.

The first call to the root node stores a value in a key and the second call is meant to use the key value. The problem is that the key is not seen in the second call, so I believe that I have to reference the initial document explicitly (but, of course, that document reference is unknown in the second call).

Thanks for the input.

Steven


On Jan 24, 2008, at 2:38 AM, Andrew Welch wrote:


On 24/01/2008, Steven Ericsson-Zenith <steven@xxxxxxxxxxxxx> wrote:
I had hoped that the sequence

...
       <apply-template/>
       <apply-template select="doc(@file)"/>
...

It's "apply-templates" but I get what you mean...


In the XSL transform would do the trick, but it does not. The
transformation of main.xml returns the transformed ext.xml and the
content of main.xml is ignored.
...
I've tried a number of things but have not been able to solve the
problem. I am missing something obvious?

Remember that your root matching template will be applied again when calling apply-templates on doc(@file), so that could be an issue, its hard to tell without seeing it.

This is a classic case where you could reduce the problem down to tiny
set of files that demonstrates the problem and post them here.


cheers -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/

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.