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

RE: Parsing xml with saxon

Subject: RE: Parsing xml with saxon
From: "Shailesh Shinde" <shailesh@xxxxxxxxxxxx>
Date: Thu, 29 Sep 2005 18:37:58 +0530
transformerfactoryimpl example
Hi,

I have added the target as:

<xslt basedir="ch_acade_file_loc.xml" destdir="Panel_Layout.xml"
style="acade_combine.xsl">

<factory name="net.sf.saxon.TransformerFactoryImpl">
<!-- example feature -->
<attribute name="http://saxon.sf.net/feature/allow-external-functions"
value="false"/>
</factory>
</xslt>

This giving me an error as:

E:\Test\test_combine.xml:15: E:\Test\ch_acade_file_loc.xml is not a
directory.

--
Shailesh

-----Original Message-----
From: Robert Koberg [mailto:rob@xxxxxxxxxx] 
Sent: Thursday, September 29, 2005 4:46 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Parsing xml with saxon

Michael Kay wrote:
> There's a fair bit of information on running Saxon transformations from an
> Ant task if you look around. For example
> 
> http://www.xml.com/pub/a/2002/12/11/ant-xml.html?page=2

You don't need mtxslt anymore (at least with the latest 1.6.5 release).

See:

http://ant.apache.org/manual/CoreTasks/style.html

For example you can:

<xslt
   basedir="source/xml/dir"
   destdir="output/dir"
   style="some.xsl">

   <factory name="net.sf.saxon.TransformerFactoryImpl">
<!-- example feature -->
     <attribute 
name="http://saxon.sf.net/feature/allow-external-functions" value="fasle"/>
   </factory>

</xslt>

Of course Saxon will need to be on the classpath for the ant run. The 
easiest way to do that is place the saxon jar in in the $ANT_HOME/lib dir.

best,
-Rob

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.