When transforming with an empty stylesheet, I get the
following exception:
D:\g\saxonTest>java SaxonTest
Stylesheet being used is: doesNotWork.xsl
Warning: Running an XSLT 1.0 stylesheet with an XSLT
2.0 processor
Error
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An
attempt was made to insert a node where it is not
permitted.
net.sf.saxon.trans.DynamicError:
org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR
: An attempt was made to insert a node where it is not
permitted.
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)
This did not work with Java 1.4.2 with or without Saxon
8.4.
However, it does work with Java 1.5 without Saxon 8.4,
but not with Saxon 8.4.
This does work with Saxon 6.5.2.
I attached a simple test case to help reproduce the issue.
,
Josh.
Simple test case to help reproduce the issue.