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

Subject: Re: [xsl] Can i have one XML referring to 2 XSL's??
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Sun, 12 May 2002 10:41:28 +0200
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@xxxxxxxxxxxx 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


Current Thread