[ 
http://issues.apache.org/jira/browse/XALANJ-2204?page=comments#action_12443421 
] 
            
Brian Minchau commented on XALANJ-2204:
---------------------------------------

patch2 does not break any of the conformance tests (all flavors).

In addition I tested it with the testcases of all issues related to this one.

column (A) - original pass/fail  results
column (B) - pass/fail results when the original patch for this issue is 
reversed.
column (C) - pass/fail results for when patch2 is applied, which removes the 
original patch
                        but a;sp provides an alternate patch.
 
                                (A)     (B)    (C)  
XALANJ-2204         P       F       P
XALANJ-2285         F       P       P 
XALANJ-2293         P       F       P
XALANJ-2324         F       P       P

So we see that the original patch in this issue exactly flips the results 
(column (A) and (B) ), and this patch 
gets all them all to pass, and hopefully for the right reason.


> Function Count on variable modifies number of nodes in variable.
> ----------------------------------------------------------------
>
>                 Key: XALANJ-2204
>                 URL: http://issues.apache.org/jira/browse/XALANJ-2204
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: transformation
>    Affects Versions: 2.7
>            Reporter: Filippo Munafò
>         Assigned To: Brian Minchau
>            Priority: Blocker
>         Attachments: jira_2204.patch2.txt, patch_jira_2204.txt
>
>
> Transforming this XML:
> <A>
>       <B>1</B>
>       <B>2</B>
> </A>
> with the following XSL:
>       <xsl:variable name="XML" select="/A"/>
>       
>       <xsl:template match="/">
>               First:  
>               <xsl:value-of select="count($XML[B=1])"/>
>               Second: 
>               <xsl:value-of select="count($XML[B=1])"/>
>               Third:
>               <xsl:value-of select="count($XML[B=1])"/>
>       </xsl:template>
> the output is:
>               First:  
>               1
>               Second: 
>               2
>               Third:
>               3
> instead of:
>               First:  
>               1
>               Second: 
>               1
>               Third:
>               1
> Using XALAN 2.6 everithing works as it should be.
> Using:
>      xalan.jar org.apache.xalan.xslt.Process -in %1 -xsl %2 -out %3 
> instead of:
>      transformer.transform(xml, xsl)
> the result is the right one!
> Filippo

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