Robert Kattke
Usenet Archive
- Joined
- Feb 26, 2001
- Messages
- 28
- Reaction score
- 0
I'm getting a TransformerException when running Tomcat and calling a Servlet that use XML to create DOM and XSL to create webpage.
I'm posting just the snippet of XSL code and the Error here. Full listing should be in my next thread. Funny thing is from a command line I can run Process without an error. Why would Tomcat hiccup and belch ? Maybe I should be investigating my JARs in the classpath ?
*** note error occurring in ln 65 ***
<xsl:choose>
65 <xsl:when test="site = ''">
<xsl:text>N/A</xsl:text>
</xsl:when>
<xsl
therwise>
<a>
<xsl:attribute name="href">
<xsl:value-of select="site"/>
</xsl:attribute>Website
</a>
</xsl
therwise>
</xsl:choose>
; SystemID: ; Line#: 65; Column#: 34
javax.xml.transform.TransformerException: Unknown error in XPath at org.apache.xpath.XPath.bool(XPath.java:411) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:162) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2182)at .... xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:678)
...
....
....
....
at org.apache.xpath.objects.XNodeSet.compare(XNodeSet.java:619) at org.apache.xpath.objects.XNodeSet.equals(XNodeSet.java:706) at org.apache.xpath.operations.Equals.operate(Equals.java:82) at org.apache.xpath.operations.Operation.execute(Operation.java:146) at org.apache.xpath.Expression.bool(Expression.java:208) at org.apache.xpath.XPath.bool(XPath.java:388)
... 66 more
I'm posting just the snippet of XSL code and the Error here. Full listing should be in my next thread. Funny thing is from a command line I can run Process without an error. Why would Tomcat hiccup and belch ? Maybe I should be investigating my JARs in the classpath ?
*** note error occurring in ln 65 ***
<xsl:choose>
65 <xsl:when test="site = ''">
<xsl:text>N/A</xsl:text>
</xsl:when>
<xsl
<a>
<xsl:attribute name="href">
<xsl:value-of select="site"/>
</xsl:attribute>Website
</a>
</xsl
</xsl:choose>
; SystemID: ; Line#: 65; Column#: 34
javax.xml.transform.TransformerException: Unknown error in XPath at org.apache.xpath.XPath.bool(XPath.java:411) at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:162) at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2182)at .... xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:678)
...
....
....
....
at org.apache.xpath.objects.XNodeSet.compare(XNodeSet.java:619) at org.apache.xpath.objects.XNodeSet.equals(XNodeSet.java:706) at org.apache.xpath.operations.Equals.operate(Equals.java:82) at org.apache.xpath.operations.Operation.execute(Operation.java:146) at org.apache.xpath.Expression.bool(Expression.java:208) at org.apache.xpath.XPath.bool(XPath.java:388)
... 66 more