This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSL Including
- From: "J.Pietschmann" <j3322ptm at yahoo dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sat, 08 Jun 2002 23:06:42 +0200
- Subject: Re: [xsl] XSL Including
- References: <PEEOKEDDEBLLMOCJBGMDEEKPCEAA.jjk3@msstate.edu>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Joel Konkle-Parker wrote:
What's the best way to include another document in an XSLT
stylesheet? I want to emulate an SSI call with a local file.
It depends what you really mean:
1. Modularize your style sheet: use xsl:include or xsl:import,
look at http://www.w3.org/TR/xslt#include and the following
section for details.
2. If you want to pull in another XML file while traansforming
some XML, use the document() function, see
http://www.w3.org/TR/xslt#document
J.Pietschmann
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list