Subject: RE: [xsl] <xsl:include> / <xsl:import> From: Heather Lindsay <heather.lindsay@xxxxxxxxxxxxx> Date: Fri, 22 Dec 2000 13:19:59 -0500 |
Crude Example: Including this stylesheet(myGlobals.xsl): <xsl:stylesheet ....> <xsl:variable name="myVariable1" select="whatever"/> <xsl:variable name="myVar2" select="whateverElse"/> <xsl:template name="myNamedTemplate"> your processing here </xsl:template> </xsl:stylesheet> My main stylesheet (which is in the same directory as myGlobals.xsl): <xsl:stylesheet ......> <xsl:include href="myGlobals.xsl"/> <xsl:template match="/"> <xsl:call-template name="myNamedTemplate"/> </xsl:template> </xsl:stylesheet> This is a crude example but gives the basic structure. I hope this helps. I could probably give you more specific help if you need it and if you let me know what exactly you want to do. Good luck, Heather -----Original Message----- Hi, I have several global variables and named templates in my stylesheet. As I am going to be having several of these stylesheets that repeatedly use these variables and call these templates, I would like to have them outside of the stylesheet and in some common stylesheet (like a library) so that my other stylesheets could access them. Is this possible using <xsl:include> or <xsl:import>? If yes, could someone please give me a simple example. Thanks, Krish 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] <xsl:include> / <xsl:import>, Palaniappan, Krishna | Thread | RE: [xsl] White space - preserving , Kay Michael |
[xsl] <xsl:include> / <xsl:import>, Palaniappan, Krishna | Date | RE: [xsl] xsl:sort problems, Kaganovich, Yevgeniy |
Month |