From: Casey J. <cas...@jo...> - 2012-06-25 17:40:16
|
After talking with Michael Kay from Saxonica it appears that recoveryPolicy is ignored if a custom ErrorListener is used. Is there anyway we could add the ability to define a custom TransformErrorListener in the config that will be used instead of the default one? Thanks, Casey On Thu, Jun 21, 2012 at 7:23 PM, Patrick Bosek <pat...@jo...>wrote: > Hi Wolfgang, > > As I understand it we can disable the exceptions by setting one of two > properties (recoveryPolicy or recoveryPolicyName). I've tried setting them > both, and I'm still getting "Exception while transforming node: Ambiguous > rule match for ..." > > Here is what I did in the conf.xml: > > <transformer class="net.sf.saxon.TransformerFactoryImpl" caching="yes"> > <attribute name="http://saxon.sf.net/feature/version-warning" > value="false" type="boolean"/> > <attribute name="http://saxon.sf.net/feature/recoveryPolicy" > value="0" type="integer"/> > <attribute name="http://saxon.sf.net/feature/recoveryPolicyName" > value="recoverSilently" type="string"/> > </transformer> > > I've also stepped through the process in Java to confirm that these > attributes are being set. > > Any ideas? > > On Fri, Jun 15, 2012 at 3:57 PM, Wolfgang Meier <wol...@ex...>wrote: > >> > Is eXist setup or can it be setup to provide Saxon with a configuration >> > file. It says that the file name must be passed to the processor when >> it's >> > created. >> >> The implementation of the transform function tries to avoid a >> dependency on a specific xslt processor. The xslt processor is >> configured via org.exist.xslt.TransformerFactoryAllocator. One >> approach could probably be to create a wrapper around the saxon >> SAXTransformerFactory. >> >> Otherwise, you could also extend the TransformErrorListener in >> org.exist.xquery.functions.transform.Transform to ignore this >> particular error if a certain parameter is set. >> >> Wolfgang >> >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> >> _______________________________________________ >> Exist-open mailing list >> Exi...@li... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > > > > -- > Patrick Bosek > Jorsek Software > Cell (585) 820 9634 > Office (877) 492 2960 > Jorsek.com > > -- -- Casey Jordan easyDITA a product of Jorsek LLC "CaseyDJordan" on LinkedIn, Twitter & Facebook (585) 348 7399 easydita.com This message is intended only for the use of the Addressee(s) and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, please be advised that any disclosure copying, distribution, or use of the information contained herein is prohibited. If you have received this communication in error, please destroy all copies of the message, whether in electronic or hard copy format, as well as attachments, and immediately contact the sender by replying to this e-mail or by phone. Thank you. |