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

Brian Minchau closed XALANJ-1431.
---------------------------------


Closing this issue since 'ds' has not responded to verify the fix, and it is 
over a year
since the fix went out with Xalan 2.7.0

> bug with evaluation of a matching clause
> ----------------------------------------
>
>                 Key: XALANJ-1431
>                 URL: http://issues.apache.org/jira/browse/XALANJ-1431
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: Xalan
>    Affects Versions: 2.0.0
>         Environment: Operating System: All
> Platform: All
>            Reporter: ds
>         Assigned To: Yash Talwar
>         Attachments: XalanJ1431_GoodPatch.txt, XalanJ1431_Patch.txt
>
>
> Hi,
> In using xalan I ran into the following issue:
> in evaluating a match condition the conditions pertaining to attributes are 
> not 
> tested completely before evaluating the condition following an or clause.
> Example:
> <xsl:template match='@*[.!='']|node()'>
> <xsl:copy>
> <xsl:apply-templates select='@*'/>
> </xsl:copy>
> </xsl:template>
> Input:
> <elemen1 a='1' b='' c='3'/>
> <element2/>
> Output From XALAN:
> <elemen1 a='1' >
> <element2/>
> The bug is the fact the non empty attribute followed by the empty attribute 
> was 
> not matched.  It was somehow skipped.
> I have tried this in xalan 1.2 C and xalan2 and xala 2_4 and have seem 
> similar 
> behavior.  In xalan 1.2 the behavior was worse since the non empty attribute 
> was copied to the subsequent element.
> Atleast the xalan 2 and 2_4 versions do not copy the attributes to next node. 
>  
> But they are still missing the non empty attribute occuring after the empty 
> attribute.
> In SAXON the output is correct :
> <elemen1 a='1' c='3'/>
> <element2/>
> thanks in advance for fixing this.
> ds

-- 
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