Hi,
Have the fallowing sitemap snippet that works fine running in Jetty on JDK1.5
on Ubuntu. However when moved over as a war to Tomcat 5.5.9 this throws an
exception. The contents of both directories is the same. Both are inside the
webapp's folder. The input source value is "template-test" in both cases.
Hoping to find an answer as to why this works fine in Jetty but not in
Tomcat.
--Gavin
Snippet:
<map:match pattern="default/">
<map:generate
src="{dir-conf:config/print/template-root}/default"
type="xpathtraverse">
<map:parameter name="xmlns:rdf"
value="http://www.w3.org/1999/02/22-rdf-syntax-ns#"/>
<map:parameter name="xmlns:xsl"
value="http://www.w3.org/1999/XSL/Transform"/>
<map:parameter name="xpath" value="//xsl:stylesheet/rdf:RDF"/>
</map:generate>
<map:serialize/>
</map:match>
Exception:
java.lang.RuntimeException: Could not resolve the node to a handle
at
org.apache.xml.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(DTMManagerDefault.java:574)
at
org.apache.xpath.XPathContext.getDTMHandleFromNode(XPathContext.java:182)
at org.apache.xpath.XPathAPI.eval(XPathAPI.java:277)
at
org.apache.excalibur.xml.xpath.XPathProcessorImpl.selectNodeList(XPathProcessorImpl.java:176)
at
org.apache.cocoon.generation.XPathTraversableGenerator.performXPathQuery(XPathTraversableGenerator.java:228)
<snip/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]