OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] XSL INCLUDE PROBLEM

[ Lists Home | Date Index | Thread Index ]

Title: Message
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
 
You'd be better directing the questions to xsl-list at www.mulberrytech.com.
 

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




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS