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

Re: two xml source documents

Subject: Re: two xml source documents
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 01 Aug 2002 19:14:46 +0200
Re:  two xml source documents
Hello Markus,

it's a really common question. I can only say, that you can access a XML tree / node set in the same way as the input tree or any other subtree.

For example:

<xsl:variable name="doc2" select="document('another.xml')"/>

You can access it via:

<xsl:apply-templates select="doc2/root/node"/>

You have to pay attention to the context tree, which will change in this case. An XPath "/root/node" would be evaluated against another.xml and not the input tree then. Mostly you have to switch between multiple files. So another variable <xsl:variable name="doc1" select="/"/> often helps.

For a more concrete help, you must ask a bit more concrete.

Regards,

Joerg

Markus.Lehr@xxxxxxxxxx wrote:
Hi everybody, I want to (have to) use two source documents to produce one output
document (fo-document, but I think that doesnt really matter).

I found the document function on the  zvon.org XSLT reference list but, to be
honest, I did not really understand how it works. Can anyone give me a short
example?

Thanx in advance


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.