This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Can i have one XML referring to 2 XSL's??
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sun, 12 May 2002 10:41:28 +0200
- Subject: Re: [xsl] Can i have one XML referring to 2 XSL's??
- References: <OF61F96B84.C498581F-ONE5256BB7.00269D6A@itsindia.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
No, but you can import or include a second stylesheet.
Example:
XML
<page>
<body>
<table>
...
</table>
</body>
<footer/>
</page>
XSL
<xsl:import href="footer.xsl"/>
<xsl:template match="page">
<html>
<head><title>test</title></head>
<xsl:apply-templates/>
</html>
</xsl:template>
<xsl:template match="body">
<body>
<xsl:apply-templates/>
</body>
</xsl:template>
<xsl:template match="table">
...
</xsl:template>
footer.xsl
<xsl:template match="footer">
This is the footer.
</xsl:template>
Regards,
Joerg
Suman.Sathyanarayan@itsindia.com schrieb:
> Hi ,
>
> I have a footer in all my screens.
> The footer is to be generated from an XML transformation.
> So the top XML uses one stylesheet
> and the bottom one needs to use another stylesheet.
>
> So that i can have one file and include it evrywhere.
>
> Basically these XML's and XSL's are generated by JSP's
> So what i mean to say is that JSP's *** out put ***XML's and XSL's
>
>
>>All screens have a common footer.
>>i dont want to use frames.
>>Can one XML refer to 2 stylesheets ???????
>
>
> How,
> Please reply,
>
> Suman
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list