[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|