Altova Mailing List Archives


[xsl] doubts: xsl:import and variables

From: "ashwati s" <ashwatis@--------->
To:
Date: 10/28/2002 10:53:00 PM
Hi,

Can i give any xsl variable inside another xsl tag.

for eg
:
<xsl:import href="$somexslVariable"/>

where somexslVariable is an xsl variable whose value is obtained from  xml document


I am developing a project which is web based using XML-XSL with Java
Sometimes the client maybe using Netscape/IE4 which does not have capability for transforming the XML by thge browser. In this situation we do the transfomation at the web server level and the client recieves only HTML. However in this case when i do <xsl:import href="somexsl"/> , the xsl transformer at the server refers to the href from  the server's root directory in the file system. This means instead of this 
<xsl:import href="/somepath/somexsl.xsl"/>
I will have to give this
<xsl:import href="http://<servername>:<port>/webapplication/somepath/somexsl.xsl"/>.

Unfortunately I cannot hard code the servername and server port. I will have to bring the name and port dynamicaaly from  the xml document, or maybe there is inbuilt functionality in xsl to refer to the server name and port. But still the problem remains as to how to bring this vale into an xsl:import tag?


..Any suggestions?






__________________________________________________________
Outgrown your current e-mail service? Get 25MB Storage, POP3 Access,
Advanced Spam protection with LYCOS MAIL PLUS.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus

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

Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.