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

RE: xsl:include

Subject: RE: xsl:include
From: "Jason Macki" <jmacki@xxxxxxx>
Date: Mon, 4 Feb 2002 15:39:54 -0600
RE:  xsl:include
Hi Yue,

The xsl:include element is used to import templates into your
stylesheet, not xml data.

The way to import data from an external xml document is to use the
document() function, which switches the stylesheet's context to an
external file.

For example:	
<xsl:variable name="filename" select="document('x.xml')/FileID"/>

- Jason

-----Original Message-----
From: Yue Ma [mailto:may@xxxxxxxxxxxxxxxx] 
Sent: Thursday, January 31, 2002 12:59 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  xsl:include


Hi there,
How can I use xsl:include if I want something like this:
(If I have an XML called x.xml:
<FileID>
    Something
</FileID>
)
<xsl:stylesheet ....>
  <xsl:variable name="filename" select="//FileID"/>
  <xsl:include href="concat($filename,'.xsl')"/>
..
</xsl:stylesheet>

Looks like I can not do that....

Thanks
Yue


 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
  • RE: xsl:include
    • Jason Macki - Mon, 4 Feb 2002 16:37:22 -0500 (EST) <=
      • Yue Ma - Wed, 6 Feb 2002 10:31:57 -0500 (EST)

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.