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=4896>.
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=4896

xsltc incorrectly returns namespace uri for namespace node

           Summary: xsltc incorrectly returns namespace uri for namespace
                    node
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Conf test namespace33 is like a trick test. You have to realize that 
the foreach in it is iterating over namespace nodes, not element nodes.
According to section 4.1 in the XPATH 1.0 spec:
NOTE: The string returned by the namespace-uri function will be empty except for
element nodes and attribute nodes

There for it is incorrect that XSLTC returns the URIs for 
the namespace nodes.

Running xalan on namespace33
<?xml version="1.0" encoding="UTF-8"?>
<out>Namespaces for docs:|;
  Namespaces for doc:|;|;
    Namespaces for section:|;|;|;
      Namespaces for inner:|;|;|;|;
    
  
</out>


Running XSLTC with Xerces Parser on namespace33
<?xml version="1.0" encoding="UTF-8" ?>
<out>Namespaces for docs:|http://www.w3.org/XML/1998/namespace;
  Namespaces for
doc:|http://somebody.elses.extension;|http://www.w3.org/XML/1998/namespace;
    Namespaces for
section:|http://foo.com;|http://somebody.elses.extension;|http://www.w3.org/XML/1998/namespace;
      Namespaces for
inner:|http://whiz.com/special/page;|http://foo.com;|http://somebody.elses.extension;|http://www.w3.org/XML/1998/namespace;
    
  
</out>

Reply via email to