xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samson, Lyndon [IT]" <lyndon.sam...@ssmb.com>
Subject Xalan 2.0.0
Date Tue, 13 Mar 2001 17:10:48 GMT

Hi Groovy XML people!

I have a situation where I have a Stylesheet which includes others like;

<xsl:include href="feature1.xsl"/>
<xsl:include href="feature2.xsl"/>

The w3c docs say that the included files are relative to the base URI, that
the URI of the top level document.

I have some simple code which looks like this
	StreamSource s = ...; // Some Streamsource
	TransformerFactory tFactory = TransformerFactory.newInstance();
      Transformer transformer = tFactory.newTransformer(new StreamSource(new
      StringWriter xmlOut = new StringWriter();
      transformer.transform(s, new StreamResult(xmlOut));

Any files 'included' in the toplevel.xsl stylesheet are relative to the
current directory ( System.getProperties.getProperty("user.dir") ) rather
than the base URI of the toplevel style sheet as expected.

Is this meant to happen? What's a way around it?


In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message