[ http://issues.apache.org/jira/browse/XALANJ-1104?page=all ]

Brian Minchau updated XALANJ-1104:
----------------------------------

    Version: 2.4
                 (was: Latest Development Code)

> Failed assertion on simple XPath syntax errors
> ----------------------------------------------
>
>          Key: XALANJ-1104
>          URL: http://issues.apache.org/jira/browse/XALANJ-1104
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath
>     Versions: 2.4
>  Environment: Operating System: Linux
> Platform: PC
>     Reporter: kse
>     Assignee: Xalan Developers Mailing List

>
> Using wrong (Java/C-style) '==' operator is a nasty trap. 
> To cause an assertion failure, use the following xsl.
> I use command line with Sun JDK1.4 for Linux, jars in lib/endorsed. No source 
> xml needed. See 
> also Bug 2139.
> I think this should produce a helpful message instead.
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> version="1.0">
>   <!-- a simple XPath syntax error test -->
> <xsl:template match="doc">
>       <xsl:if test="@atr == 'val'"/>
>       <!-- You may also try: -->
>       <xsl:if test="@atr = = 'val'"/>
>       <xsl:if test="@atr ="/>
>       <xsl:if test="@atr != != 'val'"/>
>       <xsl:if test="@atr =!= 'val'"/>
>       <xsl:if test="@atr =&gt; 'val'"/>
>       <xsl:if test="@atr = + 'val'"/>
> </xsl:template>
> </xsl:stylesheet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to