logo       
Bookmark and Share

Re: Using Saxon w/ Oxml can cause Exception: msg#00001

text.xml.o-xml

Subject: Re: Using Saxon w/ Oxml can cause Exception

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/LJnD5RR8eeqUGfbH9hYC@xxxxxxxxxxxxxxxx
http://lists.pingdynasty.com/mailman/listinfo/o-xml



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise