tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Monsorno <li...@exolution.de>
Subject Re: strange error when processing stylesheets: tomcat, jdk1.4, windows, xalan
Date Thu, 01 Jul 2004 10:24:09 GMT
Martin Monsorno <lists@exolution.de> writes:

> Hi *,
>
> I get the following error when trying to transform a xml document with
> a XSLT stylesheet:
>
>     ; SystemID: jndi:/localhost/ipas/xsl/minutes_pdf.xsl; Line#: 298; Column#: 66
>     javax.xml.transform.TransformerException: Unknown error in XPath
>             at org.apache.xpath.XPath.bool(XPath.java:411)
>             at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:198)
>     ...
>
> In the stylesheet, I test for an empty string:
>
>     <xsl:if test="not(string(./title))">
>
> The error occurs:
>
> - with ANY test condition that tests for an empty string
>   (e.g. with "string-length(./entry) = 0"
> - with having xalan.jar, xml-apis.jar and xercesImpl.jar in my
>   WEB-INF/lib from any xalan versions of 2.5.0, 2.5.2, 2.6.0
> - with Tomcat 4.1.29 on Windows 2000 and JDK 1.4x
> - NOT with JDK 1.3
> - NOT on Linux
> - NOT with resin

Ah, yes, and it does NOT occur when running the transforming by
directly calling xalan from the command line and not via TomCat!


-- 
Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message