Subject: [xsl] Include with XML? From: Roberto Arévalo <roberto.arevalo@xxxxxx> Date: Mon, 10 Dec 2001 18:57:32 +0100 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Get extern xml document r, Jeni Tennison | Thread | Re: [xsl] Include with XML?, Jeni Tennison |
Re: [xsl] xsl processor detector, TP | Date | Re: [xsl] Include with XML?, Jeni Tennison |
Month |