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

Re: which file to include or copy or copy-of

Subject: Re: which file to include or copy or copy-of
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Thu, 15 Nov 2001 00:17:20 +0100
xsl copy file
> //// <xsl:include href="THE ACTIVE FILE=1"/> or
> //// <xsl:copy select="THE ACTIVE FILE=1"/> or
> //// <xsl:copy-of select="THE ACTIVE FILE=1"/>

<xsl:include> is for including other stylesheets and so the templates in the
current one. If you really only want to copy the content of the other
xml-files to the output-tree, try <xsl:copy-of
select="document('filename')"/>. A way with more influence is to store the
document in a variable and use it as normal node-sets:

<xsl:template match="/">
    <xsl:variable name="file" select="document('filename')"/>
    <xsl:for-each select="$file/rootelement/element">
        <!-- and so on -->
    </xsl:for-each>
</xsl:template>

Hope this helps,

Joerg


 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.