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

RE: IMPORTING XML DOCS INTO AN XSLT

Subject: RE: IMPORTING XML DOCS INTO AN XSLT
From: "Bryan Rasmussen" <bry@xxxxxxxxxx>
Date: Thu, 14 Mar 2002 13:56:35 +0100
xslt import xml
>I was wondering if it is possible to import XML documents directly into an
>XSLT stylesheet.

>For example, I would like to call a template for my current XML document,
>and have the XSLT document import a few standard XML files with
>configuration info and have the data from the XSLT process the imported XML
>as well.

>The master plan behind this? I have a web page XML, it calls a stylesheet
to
>format it into HTML. But I dont want to pass the navigation menu with the
>page document each time, I would like the XSLT to automatically pick it up
>and processes it.

use the document function

<xsl:param name="doc" select="document('menu.xml')"/>
<xsl:template match="/">
<html><head></head><body><xsl:for-each
select="$doc"><xsl:apply-templates/></xsl:for-each></body></html>
</xsl:template>


 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.