logo       

FW: Transformation Error: msg#00070

text.xml.saxon.help

Subject: FW: Transformation Error

I have a problem in Saxon 8.4.  Transforming with a empty stylesheet gives the error below.  This works in Saxon 6.5.3, but now fails in 8.4.  Also, if I run the test in Java 1.4.2 without Saxon in my classpath, it fails.  Running the test in Java 1.5 without Saxon in my classpath, it completes.  Running in either Java 1.4.2 or 1.5 with Saxon 8.4 in my classpath fails.  Does this look like a bug?  I have attached a simple test to help demonstrate the issue.  Thanks.
,
Josh.
 
 
 
net.sf.saxon.trans.DynamicError: org.apache.crimson.tree.DomEx: HIERARCHY_REQUEST_ERR: This node isn't allowed there.
        at net.sf.saxon.dom.DOMEmitter.characters(DOMEmitter.java:121)
        at net.sf.saxon.event.ProxyReceiver.characters(ProxyReceiver.java:202)
        at net.sf.saxon.event.ComplexContentOutputter.characters(ComplexContentOutputter.java:110)
        at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:341)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:289)
        at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:331)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:289)
        at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:331)
        at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:289)
        at net.sf.saxon.Controller.transformDocument(Controller.java:1367)
        at net.sf.saxon.Controller.transform(Controller.java:1195)
        at SaxonTest.main(SaxonTest.java:43)
Caused by: org.apache.crimson.tree.DomEx: HIERARCHY_REQUEST_ERR: This node isn't allowed there.
        at org.apache.crimson.tree.XmlDocument.checkChildType(XmlDocument.java:616)
        at org.apache.crimson.tree.ParentNode.appendChild(ParentNode.java:341)
        at org.apache.crimson.tree.XmlDocument.appendChild(XmlDocument.java:664)
        at net.sf.saxon.dom.DOMEmitter.characters(DOMEmitter.java:119)
        ... 11 more

Attachment: works.xsl
Description: works.xsl

Attachment: SaxonTest.java
Description: SaxonTest.java

Attachment: SaxonTest.class
Description: SaxonTest.class

Attachment: README.txt
Description: README.txt

Attachment: epmTestDOMDoc.xml
Description: epmTestDOMDoc.xml

Attachment: doesNotWork.xsl
Description: doesNotWork.xsl

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise