This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Include with XML?
- From: Roberto Arévalo <roberto dot arevalo at ste dot es>
- To: "xsl" <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 10 Dec 2001 18:57:32 +0100
- Subject: [xsl] Include with XML?
- Reply-to: xsl-list at lists dot mulberrytech dot com
How I can write an include with a value taken of a XML?
XML:
<PRINCIPAL>
<LAYER1>layer1.xsl</LAYER1>
............
</PRINCIPAL>
XSL PRINCIPAL:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="????"/> (¿layer1.xsl?)
<xsl:output method="html" omit-xml-declaration="yes" encoding="ISO-8859-1"/>
<xsl:template match="/">
..............
<xsl:call-template name="id_layer"/>
..............
</xsl:template>
</xsl:stylesheet>
XSL (LAYER1.XSL)
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" omit-xml-declaration="yes" encoding="ISO-8859-1"/>
<xsl:template name="id_layer" match="/">
..............
</xsl:template>
</xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list