This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

xsl:include inside of a jar file?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]