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

Re: JAR protocol for URL in xsl:import

Subject: Re: JAR protocol for URL in xsl:import
From: Gregory Murphy <Gregory.Murphy@xxxxxxxxxxx>
Date: Mon, 13 Jan 2003 17:05:14 -0800 (PST)
jar protocol
On Tue, 14 Jan 2003, David Tolpin wrote:

> > Then one could author something like
> > 
> >    <xsl:import "JAR:foo/bar.xsl"/>
> > 
> > And it would work. I can't recall if there is a protocol for JAR
> > references, but I suspect there isn't.
> 
> Having a protocol for Java resources would be useful instead. Internally, RenderX XEP
> uses 'resource:' as the protocol (resource:com/renderx/util/magic.xml is a Java resource
> with the correspoding  name). I doubt though it  can be promoted as a general feature
> since XSL should not be language-bound.

You're right, that would be better, since the external stylesheet would be
picked up as long as it was in the CLASSPATH, whether contained in a JAR or
part of the filesystem.

Of course, as has been pointed out, whether one uses a 'jar' URL protocol,
or an extension that supports Java resource look-ups, the resulting XSL is
no longer portable to non-Java implementations.

I wonder if a more portable approach to the same problem would be to allow
applications that call transformers to specify URL resolvers, in the way
that callers of an XML parser can specify an entity resolver. This would
allow an application to trap "universal" names and return local copies
extracted from within the application's JAR. 

// Gregory Murphy <Gregory.Murphy@xxxxxxx>
// Software Engineer
// Customer Network Platform, Sun Microsystems


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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