xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmars...@apache.org
Subject cvs commit: xml-xalan/test/tests/conf/namespace namespace62.xsl namespace56.xsl namespace62.xml namespace56.xml namespace80.xml namespace80.xsl namespace81.xml namespace81.xsl namespace82.xml namespace82.xsl namespace88.xml namespace88.xsl namespace97.xml namespace97.xsl
Date Thu, 06 Sep 2001 15:33:03 GMT
dmarston    01/09/06 08:33:03

  Added:       test/tests/conf/namespace namespace62.xsl namespace56.xsl
                        namespace62.xml namespace56.xml namespace80.xml
                        namespace80.xsl namespace81.xml namespace81.xsl
                        namespace82.xml namespace82.xsl namespace88.xml
                        namespace88.xsl namespace97.xml namespace97.xsl
  Log:
  More namespace tests that are ready for worldwide use.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/namespace/namespace62.xsl
  
  Index: namespace62.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace62 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Two xmlns declarations with namespace attrib (matches default) in xsl:element.
-->
    <!-- NOTE: Processor developers could legitimately disagree about where the "p2" name
       has to be in scope on the result. It must be in effect for yyy, but could be for foo
       as well. The spec doesn't address this point. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="foo" namespace="test.com" xmlns="test.com" xmlns:p2="barz.com">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace56.xsl
  
  Index: namespace56.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace56 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for namespace attribute not (previously) tied to prefix. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="q:foo" namespace="http://testguys.com">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace62.xml
  
  Index: namespace62.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace56.xml
  
  Index: namespace56.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace80.xml
  
  Index: namespace80.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace80.xsl
  
  Index: namespace80.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace80 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Prefixed xmlns declaration and same-prefixed name; no namespace attrib;
default set. -->
    <!-- NOTE: Processor developers could legitimately disagree about where the default
name
       has to be reset in the result. It must be in effect for yyy, but could be for foo
       as well. The spec doesn't address this point. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="p2:foo" xmlns="other.com" xmlns:p2="barz.com">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace81.xml
  
  Index: namespace81.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace81.xsl
  
  Index: namespace81.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace81 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Mix xmlns declaration and namespace attrib (to same) in xsl:element;
name has prefix. -->
    <!-- NOTE: Processor developers could legitimately disagree about where the default
name
       has to be set in the result. It must be in effect for yyy, but could be for foo
       as well. The spec doesn't address this point. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="wxyz:foo" namespace="test.com" xmlns="test.com">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace82.xml
  
  Index: namespace82.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace82.xsl
  
  Index: namespace82.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: namespace82 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Set xmlns declaration and namespace attrib to different URIs; name has
prefix. -->
    <!-- NOTE: Processor developers could legitimately disagree about where the default
name
       has to be set in the result. It must be in effect for yyy, but could be for foo
       as well. The spec doesn't address this point. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="wxyz:foo" namespace="abc.com" xmlns="test.com">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace88.xml
  
  Index: namespace88.xml
  ===================================================================
  <?xml version="1.0"?>
  <docs>
  <doc/>
  </docs>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace88.xsl
  
  Index: namespace88.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:ped="www.test.com">
  
    <!-- FileName: namespace88 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements with xsl:element. -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Use xsl:element with namespace attribute and default reset; prefix known
at stylesheet level. -->
  
  <xsl:template match="doc">
    <out>
      <xsl:element name="inner" namespace="www.test.com" xmlns="">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace97.xml
  
  Index: namespace97.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace97.xsl
  
  Index: namespace97.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:p1="testguys.com">
  
    <!-- FileName: namespace97 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for prefixed name when prefixed NS is in scope; also set default
locally. -->
    <!-- NOTE: Processor developers could legitimately disagree about where the default
name
       has to be set in the result. It must be in effect for yyy, but could be for foo
       as well. The spec doesn't address this point. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="p1:foo" xmlns="other.com">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  

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


Mime
View raw message