This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Can i have one XML referring to 2 XSL's??


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]