Project

Profile

Help

Saxon extension function with XOM Element

Added by Anonymous over 15 years ago

Legacy ID: #5717429 Legacy Poster: Stephan Kübler (bridges01)

Dear Saxon developers, i tested a Saxon extension function that expects a XOM-Node. My test is similar to the JDOMExample. When the processor tries to call the extension i get the follwing error: "net.sf.saxon.trans.XPathException: Error in call to extension function {public static nu.xom.Node com.dcx.egvo.dioconverter.xslt.SaxonDiogenesExtensions.resolveXLink(nu.xom.Element,java.lang.String) throws java.lang.Exception}: Extension function required class nu.xom.Element; supplied value of class net.sf.saxon.om.StrippedNode could not be converted". Can you help me? Is there another possibility using another XML-Api than XOM? Kind regards


Replies (2)

RE: Saxon extension function with XOM Element - Added by Anonymous over 15 years ago

Legacy ID: #5717463 Legacy Poster: Michael Kay (mhkay)

It looks a bit like this bug: http://sourceforge.net/tracker/index.php?func=detail&aid=2103803&group_id=29872&atid=397617 which although it's written in DOM terms, actually is a problem affecting all external object models. Are you using 9.1.0.3 (which should clear that bug)? Alternatively try running without whitespace stripping. Michael Kay Saxonica

RE: Saxon extension function with XOM Element - Added by Anonymous over 15 years ago

Legacy ID: #5717991 Legacy Poster: Stephan Kübler (bridges01)

Ah, ok. I used 9.1.0.2. Now with the new version the problem seems to be solved! Thank you very much for your quick response!

    (1-2/2)

    Please register to reply