| Author |
Importing Multiple XSL documents
|
Rajagopal Manohar
Ranch Hand
Joined: Nov 26, 2004
Posts: 183
|
|
Is there a way, I can import multiple XSL documents into a given XSL document that I use. The importing XSL document is... <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:redirect="http://xml.apache.org/xalan/redirect" extension-element-prefixes="redirect"> <xsl:include href="foo.xsl" /> <xsl:include href="bar.xsl" /> <xsl utput method="xml" indent="yes" omit-xml-declaration="yes" media-type="text/plain"/> <xsl:template match="/rootnode"> <xsl:for-each select="selectnode"> <xsl:apply-templates select="current()" /> </xsl:for-each> <xsl:for-each select="/nextroot"> <xsl:apply-templates select="current()" /> </xsl:for-each> </xsl:template> <xsl:template match="rootnode"> <xsl:call-template name="rootnode" /> </xsl:template> <xsl:template match="nextroot"> <xsl:call-template name="nextroot" /> </xsl:template> </xsl:stylesheet> The two XSL-s foo.xsl and bar.xsl are to be found in the local dir. The foo.xsl file is to be found while bar.xsl is not to be picked up. Thanks in Advance! Raj
|
 |
Rajagopal Manohar
Ranch Hand
Joined: Nov 26, 2004
Posts: 183
|
|
Sorry for the wrong post ... was my fault, one of the xsl-s were in another directory. My Apologies Raj
|
 |
 |
|
|
subject: Importing Multiple XSL documents
|
|
|