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

Setting a base href in xsl:include

Subject: Setting a base href in xsl:include
From: Chas Mick <cmick@xxxxxxxxx>
Date: Mon, 17 Sep 2001 09:52:00 -0400
xsl include concat
Hello,

I'm trying to avoid the use of a fully qualified
URL in the xsl:include statement for portability
reasons.  Also, the deployment of my XSLT maps is
different from the site of my executing program,
so I can't use relative URLS.  I'm using Xalan
1.3.

For example,
<xsl:include href="common.xsl" /> won't work for
me because it is not in context with the executing
program (Java).  My ideal solution is to pass the
base href in an XSL parameter and say:
<xsl:include href="concat($baseUrl, 'common.xsl')
/>....but the processor does not seem to
dereference or resolve any parameters within the
include statement.  That is, it seems to look for
the literal file named 'concat($baseUrl,
'common.xsl')'.  Is there another way to do this.

Also, within the Xalan API, I do not see any way
to set a base href within the Source interface,
which is how one needs to feed a stylesheet into
the tranformation process.

Has anybody thought of any work-arounds to this
issue?

Thank you,
Charles Mick



 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.