Subject: Re: XSL Including
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Sat, 08 Jun 2002 23:06:42 +0200
|
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
|