[jdom-interest] Xalan exception on valid element names, no exception for invalid names
Mark Bennett
mbennett at ideaeng.com
Tue Dec 4 20:22:32 PST 2001
I'm pointed to the Xalan that came with JDom Beta 7. I now have simple
"hello world" style sheets working.
While walking a tree I'm getting exceptions from the value-of and for-each
elements.
Oddly, in value-of, I only get the exception with VALID element or attribute
names. If I make up a bogus name it doesn't complain (and I just don't get
any data).
If I do:
<xsl:value-of select="good_element_name" />
<xsl:value-of select="@good_attribute_name" />
I get the exception shown below.
If I change it to:
<xsl:value-of select="bogus_element_name" />
<xsl:value-of select="@bogus_attribute_name" />
I don't get an exception.
I've also had trouble if I use "/" in the select attribute of for-each. The
exception is also shown below. The workaround here was to do a for each one
level at a time.
Exception if using VALID element or attribute name:
java.lang.NoSuchMethodError
at org.apache.xalan.templates.ElemValueOf.execute(ElemValueOf.java:269)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va:495)
at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:228)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va:495)
at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:228)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va:495)
at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:228)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
739)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
739)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1189)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Thread.java:484)
Exception I get using "/" in XPath of a for-each tag:
java.lang.NoSuchMethodError
at
org.apache.xpath.axes.ChildWalkerMultiStep.getNextNode(ChildWalkerMultiStep.
java:95)
at
org.apache.xpath.axes.ChildWalkerMultiStep.nextNode(ChildWalkerMultiStep.jav
a:147)
at org.apache.xpath.axes.LocPathIterator.nextNode(LocPathIterator.java:689)
at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va:428)
at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:228)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
739)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
739)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2154)
at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2097)
at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2029)
at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1189)
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:2894)
at java.lang.Thread.run(Thread.java:484)
More information about the jdom-interest
mailing list