You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2005/06/21 21:30:20 UTC

[jira] Created: (XALANJ-2151) XSLTC incorrectly optimizes predicates containing numeric values

XSLTC incorrectly optimizes predicates containing numeric values
----------------------------------------------------------------

         Key: XALANJ-2151
         URL: http://issues.apache.org/jira/browse/XALANJ-2151
     Project: XalanJ2
        Type: Bug
  Components: XPath-function  
    Versions: CurrentCVS    
    Reporter: Henry Zongaro
    Priority: Critical
 Attachments: j2151.out, j2151.xml, j2151.xsl

XSLTC attempts to optimize predicates whose values are numeric by wrapping the iterator for the expression that is being filtered with an NthPositionIterator.  The latter iterator skips directly to the relevant item in the nested iterator.  The problem is that this optimization only applies if the value of the predicate is unaffected by the context item, but XSLTC is not preventing the optimization from being applied in all such cases.  I will attach an example that demonstrates the problem.

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2151) XSLTC incorrectly optimizes predicates containing numeric values

Posted by "Henry Zongaro (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2151?page=all ]

Henry Zongaro updated XALANJ-2151:
----------------------------------

    Attachment: j2151.xsl
                j2151.xml
                j2151.out

Attaching example stylesheet, input document and expected result.  The stylesheet should select those child elements of the "doc" element whose position equals the number of attributes of the child element.  Instead, XSLTC selects the child element of "doc" whose position equals the number of attributes of "doc".

> XSLTC incorrectly optimizes predicates containing numeric values
> ----------------------------------------------------------------
>
>          Key: XALANJ-2151
>          URL: http://issues.apache.org/jira/browse/XALANJ-2151
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath-function
>     Versions: CurrentCVS
>     Reporter: Henry Zongaro
>     Priority: Critical
>  Attachments: j2151.out, j2151.xml, j2151.xsl
>
> XSLTC attempts to optimize predicates whose values are numeric by wrapping the iterator for the expression that is being filtered with an NthPositionIterator.  The latter iterator skips directly to the relevant item in the nested iterator.  The problem is that this optimization only applies if the value of the predicate is unaffected by the context item, but XSLTC is not preventing the optimization from being applied in all such cases.  I will attach an example that demonstrates the problem.

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[jira] Updated: (XALANJ-2151) XSLTC incorrectly optimizes predicates containing numeric values

Posted by "Brian Minchau (JIRA)" <xa...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XALANJ-2151?page=all ]

Brian Minchau updated XALANJ-2151:
----------------------------------

    fix-priority: fp2

set to fp2 per the JIRA meeting July 12, 2005

> XSLTC incorrectly optimizes predicates containing numeric values
> ----------------------------------------------------------------
>
>          Key: XALANJ-2151
>          URL: http://issues.apache.org/jira/browse/XALANJ-2151
>      Project: XalanJ2
>         Type: Bug
>   Components: XPath-function
>     Versions: CurrentCVS
>     Reporter: Henry Zongaro
>     Priority: Critical
>  Attachments: j2151.out, j2151.xml, j2151.xsl
>
> XSLTC attempts to optimize predicates whose values are numeric by wrapping the iterator for the expression that is being filtered with an NthPositionIterator.  The latter iterator skips directly to the relevant item in the nested iterator.  The problem is that this optimization only applies if the value of the predicate is unaffected by the context item, but XSLTC is not preventing the optimization from being applied in all such cases.  I will attach an example that demonstrates the problem.

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org