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

xsl:include inside of a jar file?

Subject: xsl:include inside of a jar file?
From: Cliff Draper <Cliff.Draper@xxxxxxx>
Date: Fri, 09 Feb 2001 10:25:01 -0800
xsl include jar
Hi,

I've asked this question in a few other forums to no avail, and I'm
hoping the answer is on this mailing list (I already checked the FAQ
and the archives).

I'm running Xalan 1.2.1 from Java, calling it with XSLInputSource for
the incoming XML file and the XSLT script.  The problem I'm having is
that I want to now use xsl:include in my script (for code reuse with
other scripts), but I don't know what href to give it.
   <xsl:include href="lib.xsl"/>
Seems to just use whatever my pwd is, which I can't trust to be the
right directory.

I've packaged up lib.xsl and the toplevel.xsl scripts into a jar file
which is in my CLASSPATH and I'd like to get it from there.

This one works:
  <xsl:include href="jar:file:/usr/local/ffj/modules/foo.jar!/lib.xsl"/>

but a full pathname won't do.  What I want is closer to:
  <xsl:include href="jar:foo.jar!/scripts/bar.xsl"/>
or
  <xsl:include href="jar:!/scripts/bar.xsl"/>

But those don't work.  Any ideas?

thanks,
Cliff Draper    Sun Microsystems, Forte Tools    (510) 869-3462 or x73462
My opinions may or may not reflect those of my employer.
---------------------------- food for thought ---------------------------
The three most dangerous things in the world are a programmer with a
soldering iron, a hardware type with a program patch, and a user with
an idea. --Computer saying

 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.