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

RE: Multiple Input

Subject: RE: Multiple Input
From: "Richard Lander" <rlander@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Nov 1999 19:14:51 -0500
xsl multiple inputs

Given the following document and stylesheet, you'll end up with a DOC
document that will include the foo.xml and bar.xml, as if they existed there
in the first place. You can then run a transformation on that document to
convert the both documents, as one, to HTML.

Now, I'm assuming that the document function copies your document directly
to the result tree and that you cannot do much with it. If I'm wrong, I'd be
happy to find out.

Try something like:

<?xml version="1.0"?>
<REF url="foo.xml"/>
<REF url="bar.xml"/>

<?xml version='1.0' standalone='no'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">

<xsl:template match="DOC">
 <xsl:apply-templates/> <!-- an xsl:copy-of element would probably work
better, but this is fine -->

<xsl:template match="REF">
  <xsl:for-each select="document(@url)">
    <xsl:copy-of select="*"/>


I hope that helps,

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Jon Wynacht
Sent: Friday, November 19, 1999 6:38 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Multiple Input

Any way to have multiple inputs for one .xsl?

Say I have foo.xml and bar.xml. I need the contents of both for foobar.html
and it uses foobar.xsl, one process, preferably using LotusXSL.

Is this possible?



Jon Wynacht
Web Developer - Worldwide Field Productivity
Cisco Systems

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.