Using Saxon w/ Oxml can cause Exception

"Ken McCloskey" <[email protected]> Fri, 19 Dec 2003 23:27:09 +0000
Newsgroups gmane.text.xml.o-xml
Message-ID <[email protected]>
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