Re: AW: [xsl] xsl:include href-attribute

Subject: Re: AW: [xsl] xsl:include href-attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 30 May 2002 15:46:38 +0100
> 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


Current Thread