xsl-list
[Top] [All Lists]

Re: JAR protocol for URL in xsl:import

2003-01-13 19:17:08

On Mon, 13 Jan 2003, J.Pietschmann wrote:

SUN JVM should be able to grok something like
  <xsl:include href="jar:file:///foo/bar.jar!/com/sample/baz.xsl"/>

nice idea!

i just tested it, works fine with both Xalan and Saxon, and as you said it
should work with any Java implementation as long as it uses java.net.URL.

if the jar or the file within it doesn't exist then Xalan fails with:
javax.xml.transform.TransformerException: Had IO Exception with stylesheet 
file: jar:file:///foo/bar.jar!/com/sample/baz.xsl

and Saxon:
Failure reading jar:file:///foo/bar.jar!/com/sample/baz.xsl: no more input



thanks for that!


/m

Martin Klang
http://www.o-xml.org - the object-oriented XML programming language


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>