Re: [xsl] JAR protocol for URL in xsl:import

Subject: Re: [xsl] JAR protocol for URL in xsl:import
From: martin@xxxxxxxx
Date: Tue, 14 Jan 2003 02:17:08 +0000 (GMT)
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


Current Thread