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

RE: Is it possible to call xsl-StyleSheet from a diffe

Subject: RE: Is it possible to call xsl-StyleSheet from a different XSl-StyleSheet
From: "sirish Kumar vallabhu" <kumar@xxxxxxxxxxxx>
Date: Tue, 19 Dec 2000 09:33:55 -0800
call xsl from xsl
Hi Philip ,

Thank U very very much for that.

Well after implementing your code <xsl:include href="header.xsl"/>
here in href i have given the entire path like
href="C:/Portal/com/vizional/portal/xsl/head.xsl"
it returns file not found exception is this right way to give path or is
there any other way in xsl .Could u please help me in this too.

-----Original Message-----
From: Philip.Strube@xxxxxxxxxxxxxxxxx
[mailto:Philip.Strube@xxxxxxxxxxxxxxxxx]
Sent: Monday, December 18, 2000 11:49 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Is it possible to call xsl-StyleSheet from a
different XSl-StyleSheet


Hi sirish Kumar vallabhu,
>
> My Header for all pages is Common So I Wanted to write a xsl file for the
> header and call it where ever it is required which I think is a good idea
> cause changes in one file could apply for the whole module ,Could any one

try something like this (i didnt test, watch out for typos):
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="header.xsl"/>
  <xsl:template match="/">
    <xsl:call-template name="mycommonheader"/>
    write some more stuff for your page
  </xsl:template>
</xsl:stylesheet>

and in another file named "header.xsl":
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template name="mycommonheader">
     here goes your header
  </xsl:template>
</xsl:stylesheet>

Viele Grüße, Philip

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 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.