[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

doubts: xsl:import and variables

Subject: doubts: xsl:import and variables
From: "ashwati s" <ashwatis@xxxxxxxxx>
Date: Tue, 29 Oct 2002 04:55:53 -0400
xsl import with variable
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.