|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] doubts: xsl:import and variables
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








