Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] calling xsl file which is inside the jar file

From: Ganesh Babu N <nbabuganesh@-----.--->
To: xsl-list@-----.------------.---
Date: 6/9/2009 9:16:00 AM
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@s...> 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@g...]
>> Sent: 08 June 2009 08:30
>> To: XSL
>> Subject: [xsl] 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
>>
>> --~------------------------------------------------------------------
>> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
>> or e-mail: <mailto:xsl-list-unsubscribe@l...>
>> --~--
>>
>
>
> --~------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:xsl-list-unsubscribe@l...>
> --~--
>
>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent