NullPointerError in transform:transform
2007-11-01 03:23:05 GMT
The XML and XSL files work together just fine when I call the XSL file from within the XML file, as in...
<?xml-stylesheet type="text/xsl" href="http://burkelib-07.hamilton.edu/exist/xsl/tei/html/tei.xsl"?>)
It also works when I send a REST URL with the XML and XSL filenames, as in
http://burkelib-07.hamilton.edu:8080/exist/rest/db/dldocs/x-spe-civ-cad-02610_TEIP5.xml?
_xsl=http://burkelib-07.hamilton.edu/exist/xsl/tei/html/tei.xsl
But Java throws a NullPointerException when I use the transform:transform function, as in
let $xml := doc("/db/dldocs/x-spe-civ-cad-02600_TEIP5.xml")
let $xsl := xs:anyURI("http:burkelib-07.hamilton.edu/exist/xsl/tei/html/tei.xsl")
let $params := ()
let $out := transform:transform($xml, $xsl, $params)
return (
$out
)
The XML is definitely there in eXist, so it looks like eXist cannot find the XSL file. Am I right about that?
If so, am I using the wrong syntax to reference the XSL file?
Thank you,
Peter
Exception StackTrace
org.xmldb.api.base.XMLDBException: java.lang.NullPointerException
at org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:64)
at org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:36)
at org.exist.xmldb.RemoteXPathQueryService.execute(RemoteXPathQueryService.java:244)
at org.exist.client.QueryDialog$QueryThread.run(QueryDialog.java:401)
Caused by: org.apache.xmlrpc.XmlRpcException: java.lang.NullPointerException
at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
at org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:53)
... 3 more
Caused by: org.apache.xmlrpc.XmlRpcException: java.lang.NullPointerException
at org.apache.xmlrpc.XmlRpcClient$Worker.execute(XmlRpcClient.java:457)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:163)
at org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:53)
at org.exist.xmldb.RemoteXPathQueryService.query(RemoteXPathQueryService.java:36)
at org.exist.xmldb.RemoteXPathQueryService.execute(RemoteXPathQueryService.java:244)
at org.exist.client.QueryDialog$QueryThread.run(QueryDialog.java:401)
Peter MacDonald
Library Information Systems Specialist
Hamilton College Library
pmacdona <at> hamilton.edu
315 859-4493
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ Exist-open mailing list Exist-open <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/exist-open

RSS Feed