This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: AW: xsl:include href-attribute
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 30 May 2002 15:46:38 +0100
- Subject: Re: AW: [xsl] xsl:include href-attribute
- References: <F122ZaendgjvM9KfYDo0000eed3@hotmail.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
> but when I put the code in a servlet then I get an error
> message IOException could not find include/menu.xsl
if you use a relative URI (to anything) you need to make sure that
where you are has a base URI. In some conexts the base stylesheet is
some in-memory chunk of compiled stuff and doesn't really have a base
URI any more, so relative links fail. Usually there's something you can do
(eg use an absolute link) but it depends a bit on the context and
servlets aren't really my strong point, someone else can take a turn of
answering:-)
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list