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/11/07 17:27:11 UTC

cvs commit: xml-xalan/test/tests/conf/namespace namespace87.xsl namespace63.xsl namespace87.xml namespace63.xml

dmarston    01/11/07 08:27:11

  Added:       test/tests/conf/namespace namespace87.xsl namespace63.xsl
                        namespace87.xml namespace63.xml
  Log:
  Two new cases from the namespace/element matrix.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/namespace/namespace87.xsl
  
  Index: namespace87.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns="http://testguys.com">
  
    <!-- FileName: namespace87 -->
    <!-- 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 the 2nd time in the result. It must be correct for yyy, but could be reset 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/namespace63.xsl
  
  Index: namespace63.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns="http://testguys.com">
  
    <!-- FileName: namespace63 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.1.2 Creating Elements -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Reset default locally, but namespace attribute matches stylesheet default. -->
    <!-- NOTE: Processor developers could legitimately disagree about where the default name
       has to be set the 2nd time in the result. It must be correct for yyy, but could be reset for foo
       as well. The spec doesn't address this point. -->
  
  <xsl:template match = "/">
    <out>
      <xsl:element name="q:foo" namespace="http://testguys.com" xmlns="other.com">
        <yyy/>
      </xsl:element>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace87.xml
  
  Index: namespace87.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  
  1.1                  xml-xalan/test/tests/conf/namespace/namespace63.xml
  
  Index: namespace63.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>x</doc>
  
  

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