Re: Using Saxon w/ Oxml can cause Exception
Martin Klang <[email protected]> Sat, 20 Dec 2003 23:26:23 +0000
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
Great, I like a bugreport that comes with the solution attached - I've checked a fix into CVS, it'll be included in the next release. Hope this hasn't caused too much problems. thanks Ken, /m ps i took the liberty to open a bugzilla account for you at http://bugz.pingdynasty.com/ if you don't want to use it just ignore, cheers, On 19 Dec 2003, at 23:27, Ken McCloskey wrote: > Martin, > > If you attempt to use Saxon as your XML transformer, it will cause > oxml to fail. > > The problem arises with the function call getAssociatedStylesheet in > org.oxml.extras.http.ObjectBox::transform. > > If you look in > net.sf.saxon.TransformerFactoryImpl::getAssociatedStylesheet, you'll > notice that it throws the TransformerConfigurationException "No > matching <?xml-stylesheet?> processing instruction found". > > However, within org.oxml.extras.http.ObjectBox::transform, you expect > null to be returned if no stylesheet processing instruction can be > found. Therefore, in the tagbox class XSLTProcessor you need to catch > this exception and return null if it's thrown. > > Thanks, > Ken > > _________________________________________________________________ > Enjoy the holiday season with great tips from MSN. > http://special.msn.com/network/happyholidays.armx > > _______________________________________________ > o-xml mailing list > o-xml-zRfLyl9bSvv/[email protected] > http://lists.pingdynasty.com/mailman/listinfo/o-xml >