You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/01/17 21:59:28 UTC

DO NOT REPLY [Bug 16222] New: - xsl:value-of select="." inside for-each loop fails to extract the value of current node

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16222>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16222

xsl:value-of select="." inside for-each loop fails to extract the value of current node

           Summary: xsl:value-of select="." inside for-each loop fails to
                    extract the value of current node
           Product: XalanJ2
           Version: CurrentCVS
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: elsoncj@ca.ibm.com
                CC: xalan-dev@xml.apache.org


When I run xml-xalan/java/samples/Trace/Trace.java with foo.xml and foo.xsl 
from the same source, <th><xsl:value-of select="."/></th> (line#26 in foo.xsl) 
fails to extract the value of the current node. I also tried copy-of 
select=".", it fails too. But <xsl:variable name="temp" select="."/> <xsl:value-
of select="$temp"/> works fine. 

Acknowledgement: When I first noticed this, I was not sure whether this is a 
bug as I am new to Xalan J2. My co-worker Morris Kwan (mkwan@ca.ibm.com) 
identified this for me.