[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: 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
referring xsl in xml
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.