You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2002/01/31 19:35:32 UTC

cvs commit: xml-xalan/test/tests/conferr/namedtemplateerr namedtemplateerr16.xsl namedtemplateerr16.xml

dmarston    02/01/31 10:35:32

  Added:       test/tests/conferr/namedtemplateerr namedtemplateerr16.xsl
                        namedtemplateerr16.xml
  Log:
  Test case for Bugzilla#6154
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conferr/namedtemplateerr/namedtemplateerr16.xsl
  
  Index: namedtemplateerr16.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namedtemplateerr16 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 6 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Call a template using invalid name. -->
    <!-- ExpectedException: Invalid template name -->
    <!-- ExpectedException: xsl:call-template has an invalid 'name' attribute -->
  
  <xsl:template match="doc">
    <out>
      <xsl:call-template name="tmplt1@bar">
        <xsl:with-param name="pvar1" select="doc/a"/>
      </xsl:call-template>
    </out>
  </xsl:template>
  
  <xsl:template name="tmplt1">
    <xsl:param name="pvar1">Default text in pvar1</xsl:param>
    <xsl:value-of select="$pvar1"/>
  </xsl:template>
  
  <xsl:template name="tmplt1@bar">
    <xsl:text>Badly named template got called!</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conferr/namedtemplateerr/namedtemplateerr16.xml
  
  Index: namedtemplateerr16.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <a place="above">top-level-a</a>
      <doc>
        <a place="below">sub-level-a</a>
      </doc>
  </doc>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org