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

Re: calling xsl file which is inside the jar file

Subject: Re: calling xsl file which is inside the jar file
From: Ganesh Babu N <nbabuganesh@xxxxxxxxx>
Date: Tue, 9 Jun 2009 14:45:16 +0530
Re:  calling xsl file which is inside the jar file
Hai Mickael,

I have used following command:

java -cp "saxon9.jar;mac.jar" net.sf.saxon.Transform -u -s:sample.xml
-xsl:jar:file:mac.jar!test.xsl -o:sample-out.xml

It is working fine. Thank you very much.

Regards,
Ganesh


On Mon, Jun 8, 2009 at 3:15 PM, Michael Kay<mike@xxxxxxxxxxxx> wrote:
> For Saxon, try something like this (not tested)
>
> java -jar saxon9.jar -u -s:sample.xml -xsl:jar:dir/myjarfile.jar!test.xsl
> -o:sample-out.xml
>
> The -u option is necessary to indicate that the filename options are to be
> treated as URIs (needed when using a URI other than one starting "http:" or
> "file:").
>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay
>
>
>
>> -----Original Message-----
>> From: Ganesh Babu N [mailto:nbabuganesh@xxxxxxxxx]
>> Sent: 08 June 2009 08:30
>> To: XSL
>> Subject:  calling xsl file which is inside the jar file
>>
>> Dear All,
>>
>> I have included test.xsl file in the jar file along with
>> other java classes. Is there anyway I can call the XSL file
>> which is there inside the jar file from Saxon / xalan command line.
>>
>> I have tried the following command with Saxon but seems not working.
>>
>> java -jar saxon9.jar -s:sample.xml -xsl:/test.xsl -o:sample-out.xml
>>
>> Regards,
>> Ganesh

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.