dmarston    00/12/15 11:40:30

  Added:       test/tests/conf/expression/err expressionerr02.xsl
                        expressionerr01.xsl expressionerr02.xml
                        expressionerr01.xml
  Log:
  Copy of tests in Lotus/IBM repository
  
  Revision  Changes    Path
  1.1                  
xml-xalan/test/tests/conf/expression/err/expressionerr02.xsl
  
  Index: expressionerr02.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: EXPRerr02 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 12.4 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Invoke unparsed-entity-uri function with too many arguments 
-->
    <!-- ExpectedException: The unparsed-entity-uri function should take one 
argument -->
  
  <xsl:template match="doc">
    <out>
      <xsl:value-of select="unparsed-entity-uri('foo','hatch-pic')"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  
xml-xalan/test/tests/conf/expression/err/expressionerr01.xsl
  
  Index: expressionerr01.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: expressionerr01 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 12.4 -->
    <!-- Purpose: Invoke unparsed-entity-uri function with zero arguments -->
    <!-- Creator: David Marston -->
    <!-- ExpectedException: The unparsed-entity-uri function should take one 
argument -->
  
  <xsl:template match="doc">
    <out>
      <xsl:value-of select="unparsed-entity-uri()"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  
xml-xalan/test/tests/conf/expression/err/expressionerr02.xml
  
  Index: expressionerr02.xml
  ===================================================================
  <?xml version="1.0"?>
  <!DOCTYPE doc [
    <!NOTATION gif SYSTEM "../www.foo.com" >
    <!ENTITY hatch-pic
           SYSTEM "../grafix/OpenHatch.gif"
           NDATA gif >
    <!ELEMENT doc (#PCDATA)>
  ]>         
  <doc>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/conf/expression/err/expressionerr01.xml
  
  Index: expressionerr01.xml
  ===================================================================
  <?xml version="1.0"?>
  <!DOCTYPE doc [
    <!NOTATION gif SYSTEM "../www.foo.com" >
    <!ENTITY hatch-pic
           SYSTEM "../grafix/OpenHatch.gif"
           NDATA gif >
    <!ELEMENT doc (#PCDATA)>
  ]>         
  <doc>
  </doc>
  
  

Reply via email to