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 2001/02/09 23:14:47 UTC

cvs commit: xml-xalan/test/tests/conf/namespace namespace43.xsl namespace36.xsl namespace37.xml namespace37.xsl namespace38.xml namespace38.xsl namespace39.xml namespace39.xsl namespace40.xml namespace40.xsl namespace41.xml namespace41.xsl namespace42.xml namespace42.xsl namespace43.xml namespace36.xml

dmarston    01/02/09 14:14:47

  Added:       test/tests/conf/namespace namespace43.xsl namespace36.xsl
                        namespace37.xml namespace37.xsl namespace38.xml
                        namespace38.xsl namespace39.xml namespace39.xsl
                        namespace40.xml namespace40.xsl namespace41.xml
                        namespace41.xsl namespace42.xml namespace42.xsl
                        namespace43.xml namespace36.xml
  Log:
  Group of tests for nested namespace declarations on output
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/namespace/namespace43.xsl
  
  Index: namespace43.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace43 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: Scott Boag -->
    <!-- Purpose: Test for non-empty illegal element name. -->
    <!-- Should see a warning about illegal element name. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="this is a string">
        <yyy xmlns=""/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace36.xsl
  
  Index: namespace36.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace36 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: Scott Boag -->
    <!-- Purpose: Test for resetting of the unspecified default namespace by a contained xsl:element. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element namespace="abc" name="foo">
        <xsl:element name="yyy"/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace37.xml
  
  Index: namespace37.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace37.xsl
  
  Index: namespace37.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace37 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: Scott Boag -->
    <!-- Purpose: Test for resetting of a specified default namespace. -->
  
  <xsl:template match = "/">
    <out xmlns="xyz">
      <xsl:element namespace="abc" name="foo">
        <xsl:element name="yyy"/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace38.xml
  
  Index: namespace38.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace38.xsl
  
  Index: namespace38.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace38 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: Scott Boag -->
    <!-- Purpose: Test for resetting of a specified default namespace by a LRE. -->
  
  <xsl:template match = "/">
    <out xmlns="xyz">
      <xsl:element namespace="abc" name="foo">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace39.xml
  
  Index: namespace39.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace39.xsl
  
  Index: namespace39.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace39 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: Scott Boag -->
    <!-- Purpose: Test for resetting of a prefixed namespace by a LRE. -->
  
  <xsl:template match = "/">
    <out xmlns:baz="xyz">
      <xsl:element namespace="abc" name="baz:foo">
        <baz:yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace40.xml
  
  Index: namespace40.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace40.xsl
  
  Index: namespace40.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace40 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: Scott Boag -->
    <!-- Purpose: Test for resetting of a prefixed namespace by a LRE. -->
    <!-- Should see one warning about namespace "none" unresolvable.
         Recovery: put yyy directly inside higher element (out). -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="none:foo">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace41.xml
  
  Index: namespace41.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace41.xsl
  
  Index: namespace41.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace41 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: Scott Boag -->
    <!-- Purpose: Test for specification of an empty namespace. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element namespace="" name="foo">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace42.xml
  
  Index: namespace42.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace42.xsl
  
  Index: namespace42.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace42 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: Scott Boag -->
    <!-- Purpose: Test to make sure xsl:attribute isn't added to the containing element when an xsl:element is ignored. -->
    <!-- Should see a warning that xyz:foo was not created.
       The <yyy/> element is placed directly within out, but the attribute isn't. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="xyz:foo">
        <xsl:attribute name="baz"/>
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace43.xml
  
  Index: namespace43.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace36.xml
  
  Index: namespace36.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>