xsl:include is a compile-time facility for constructing
the stylesheet, this happens long before the values of variables are known and
before the source document is available. There are many solutions to your
requirement, basically
falling into three groups:
* conditional run-time logic within the
stylesheet
* selecting which stylesheet to apply at the time
you invoke the transformation
*
generating a new stylesheet for each transformation
Michael Kay Software AG home:
Michael.H.Kay@ntlworld.com work: Michael.Kay@softwareag.com
-----Original Message----- From:
asim [mailto:qazi@advcomm.net] Sent: 07 January 2003
18:13 To: xml-dev@lists.xml.org Subject: [xml-dev] XSL
INCLUDE PROBLEM
I m Qazi Asim, i m having
a small problem in xsl include .... the problem is that i use this
statement to include the design of my webpage . "<xsl:include
href="../../Templates/template.xsl"/>" and was working very fine .. but now
i m trying to give my users a choose template option..... so i have to change
my include like this
<xsl:variable
name="templatepath"> ../skins/<xsl:value-of
select="//selected-template-id"/>/template.xsl </xsl:variable> <xsl:include
href="$templatepath"/>
* where the "selected-template-id" is name of the folder where the template is
saved
but this is not working .... it turns my page blank .....
plz help me .... solving this problem or tell me if there is any
alternative ....
thankx
QAZI
|