zongaro     2003/12/09 07:22:17

  Added:       test/tests/conf/conflictres conflictres37.xml
                        conflictres37.xsl
               test/tests/conf-gold/conflictres conflictres37.out
  Log:
  Test case from Ilene Seelemann ([EMAIL PROTECTED]) for bug report 15379 - 
updated
  by Richard Cao ([EMAIL PROTECTED]) to include standard headers.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres37.xml
  
  Index: conflictres37.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <doc xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";>
    <xf:output form="form1">with form attribute</xf:output>
    <xf:output>no form attribute</xf:output>
    <notxf>not in xf namespace</notxf>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres37.xsl
  
  Index: conflictres37.xsl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  
    <!-- FileName: conflictres37 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: Ilene Seelemann -->
    <!-- Purpose: Test that qname with predicate has precedence over ncname:*, 
                  which in turn has precedence over * in a match pattern. -->
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
      version="1.0"
      xmlns:xalan="http://xml.apache.org/xslt";
      xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";>
      
      <xsl:template match="/doc">
        <out>
           <xsl:apply-templates/>
         </out>
       </xsl:template>
       <xsl:template match="xf:[EMAIL PROTECTED]">
          <OutWithForm>
             <xsl:value-of select="."/>
          </OutWithForm>
       </xsl:template>
       <xsl:template match="xf:*">
          <OutWithoutForm>
          <xsl:value-of select="."/>
          </OutWithoutForm>
       </xsl:template>
       <xsl:template match="*">
           <General>
           <xsl:value-of select="."/>
           </General>
       </xsl:template>
  </xsl:stylesheet>
  
  
  
  
  1.1                  
xml-xalan/test/tests/conf-gold/conflictres/conflictres37.out
  
  Index: conflictres37.out
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <out xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";>
    <OutWithForm>with form attribute</OutWithForm>
    <OutWithoutForm>no form attribute</OutWithoutForm>
    <General>not in xf namespace</General>
  </out>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to