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

Re: The document() function and Base URIs

Subject: Re: The document() function and Base URIs
From: MrDemeanour <mrdemeanour@xxxxxxxxxxxxxx>
Date: Tue, 25 Apr 2006 17:20:34 +0100
mrdemeanour
andrew welch wrote:
On 4/25/06, MrDemeanour <mrdemeanour@xxxxxxxxxxxxxx> wrote:
Hi, list.

I have a stylesheet that is loaded into Xalan using an http:// URL,
 which happens to point to a Java servlet. The stylesheet contains
an import instruction:

<xsl:import href="genhtml.xsl"/>

Xalan is attempting to retrieve the imported stylesheet from the filesystem, and failing - it seems to be using the docBase of the servlet context, which I suppose is equivalent to using an empty
Base URI.


So how does a stylesheet come to know what its URI is? How do you
'tell' a stylesheet where it came from?

How are you loading the stylesheet - via a processing instruction in the XML, via the command line, or using a host application? If it's the latter then what objects are you using?


If it's a StreamSource then you'll need to call setSystemId() to give
 the stylesheet a location.

It's a StreamSource; it's being loaded in another servlet (i.e. a 'host application').

So you've answered my question - thanks a lot!

- This has to be the fastest list on the planet for turning around
questions!

--
Jack.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.