tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49578] New: XPath handling only supports single reference to variable
Date Fri, 09 Jul 2010 19:11:50 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=49578

           Summary: XPath handling only supports single reference to
                    variable
           Product: Taglibs
           Version: 1.2.0
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Standard Taglib
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: jboynes@apache.org


The XPath union expression "$src/root/x | $src/root/y" is not handled correctly
as only the first set of nodes is returned. For example, the JSP
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<x:parse var="src">
    <root>
        <x>one</x>
        <x>two</x>
        <x>three</x>
        <y>a</y>
        <y>b</y>
    </root>
</x:parse>
<x:forEach select="$src/root/x | $src/root/y">
    <x:out select="."/>
</x:forEach>

only displays the "x" elements. Swapping the arms of the union operator returns
the "y" elements.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message