This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: AW: xsl:include href-attribute



> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]