You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/01/14 22:11:40 UTC
DO NOT REPLY [Bug 5851] New: -
Boolean expression with string and integer
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5851>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5851
Boolean expression with string and integer
Summary: Boolean expression with string and integer
Product: XalanJ2
Version: 2.2.x
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: hans.stoop@pandora.be
When I run the following stylesheet
<?xml version='1.0' standalone='yes'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<html>
<body>
<xsl:choose>
<xsl:when test="'01' = 1">'01' = 1<br /></xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="1 = '01'">1 = '01'<br /></xsl:when>
</xsl:choose>
</body></html>
</xsl:template>
</xsl:stylesheet>
Results in
1 = '01'
According to http://www.w3.org/TR/xpath#booleans the result should be
'01' = 1
1 = '01'