logo       
Google Custom Search
    AddThis Social Bookmark Button

Using Saxon w/ Oxml can cause Exception: msg#00000

Subject: Using Saxon w/ Oxml can cause Exception
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



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>