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

xsltc fails test of local-name() on default namespace declaration (namespace32)

           Summary: xsltc fails test of local-name() on default namespace
                    declaration (namespace32)
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In conf test namespace32,
local-name(namespace::*[string()='http://www.w3.org/1999/XMLSchema-instance'])
should return "xsi".

Running xalan on namespace32
<?xml version="1.0" encoding="UTF-8"?>
<out>xsi,
</out>

Running XSLTC with Xerces Parser on namespace32
<?xml version="1.0" encoding="UTF-8" ?>
<out>,
xsi</out>

namespace32.xsl
---------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0"
                xmlns:tst="test"
                exclude-result-prefixes="tst">

  <!-- FileName: namespace32 -->
  <!-- Document: http://www.w3.org/TR/xpath -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 5.4 -->
  <!-- Creator: Paul Dick -->
  <!-- Purpose: Test of local-name() on default namespace declaration. -->

<xsl:template match="/tst:a">
  <out>
      <xsl:value-of
select="local-name(namespace::*[string()='http://www.w3.org/1999/XMLSchema-instance'])"/>,
<xsl:value-of select="local-name(namespace::*[string()='test'])"/>
  </out>
</xsl:template>

</xsl:stylesheet>
namespace32.xml
---------------
<?xml version="1.0"?>
<a xmlns="test"
 xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance";>
</a>

Reply via email to