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 2002/05/15 23:07:33 UTC

DO NOT REPLY [Bug 9132] New: - xsltc fails conf test attribset49 on empty attribs

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

xsltc fails conf test attribset49 on empty attribs

           Summary: xsltc fails conf test attribset49 on empty attribs
           Product: XalanJ2
           Version: CurrentCVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: tom.amiro@sun.com


Running xalan on attribset49
<?xml version="1.0" encoding="UTF-8"?>
<out><e NoContent="" String0t="" String0v="" String0f=""/></out>


Running XSLTC with Xerces Parser on attribset49
Translet error(s): null

attribset.xsl
-------------
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

  <!-- FileName: attribset49 -->
  <!-- Document: http://www.w3.org/TR/xslt -->
  <!-- DocVersion: 19991116 -->
  <!-- Section: 7.1.3 Creating Attributes -->
  <!-- Creator: David Marston -->
  <!-- Purpose: Attempt to set an empty or null attribute in various ways. -->

<xsl:template match="doc">
  <out>
    <xsl:element name="e">
      <xsl:attribute name="NoContent"/>
      <xsl:attribute name="String0t"><xsl:text></xsl:text></xsl:attribute>
      <xsl:attribute name="String0v"><xsl:value-of select="''"/></xsl:attribute>
      <xsl:attribute name="String0f"><xsl:value-of
select="substring('x',2,1)"/></xsl:attribute>
    </xsl:element>
  </out>
</xsl:template>

</xsl:stylesheet> 

attribset49.xml
---------------
<?xml version="1.0"?>
<doc> 
</doc>