logo       

Re: FW: Transformation Error: msg#00075

text.xml.saxon.help

Subject: Re: FW: Transformation Error

In some cases I force Saxon to use a template or variable by directing it to output something that I know can never exist such as
<xsl:copy-of select="foobar"/>

I know there is no <foobar> node but Saxon does not know that at compile time so it does include the template and execute it.

Mike told me that the later Saxon optimizers will completely eliminate a template that does not appear to produce an output in a static evaluation. That optimizer cannot know that <foobar> does not exist so it spares that template's life. At least that's the way I understand it.

HTH,
Roger Kovack

Fenlason, Josh wrote:
Message
Thanks for the quick reply.
So this isn't something that is going to get fixed?  Just because I would like to understand why, would Mike or anyone else be able to point me to some documentation, email thread, or be able to explain that too me.  Thanks in advance.
,
Josh.
-----Original Message-----
From: saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx [mailto:saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx] On Behalf Of Andrew Welch
Sent: Wednesday, June 15, 2005 9:44 AM
To: saxon-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
Subject: RE: [saxon] FW: Transformation Error

In the later versions of Saxon you must produce some output otherwise it's an error... I can't remember why but Mike did say.  It is slightly annoying when doing a quick stylesheet to check something out you always have to remember to produce at least some output to avoid this problem.
-----Original Message-----
From: saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx [mailto:saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx] On Behalf Of Fenlason, Josh
Sent: 15 June 2005 15:34
To: saxon-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
Subject: [saxon] 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
------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise