sboag       01/08/20 16:40:02

  Added:       test/tests/bugzilla Bugzilla3031.xsl Bugzilla3031.xml
                        Bugzilla3031.out
  Log:
  Regression tests for http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3031.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/bugzilla/Bugzilla3031.xsl
  
  Index: Bugzilla3031.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:transform version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  
    <xsl:template match="/">
      <first worksCorrectly="YES">
        <xsl:for-each select="/foo/bar">
          <xsl:for-each select="/foo/bang[bat=current()]">
            <xsl:copy-of select="."/>
          </xsl:for-each>
        </xsl:for-each>
      </first>
      <second worksCorrectly="YES! (should do the same thing)">
        <xsl:for-each select="/foo/bar">
          <xsl:for-each select="/foo/bang[bat[.=current()]]">
            <xsl:copy-of select="."/>
          </xsl:for-each>
        </xsl:for-each>
      </second>
    </xsl:template>
  
  </xsl:transform>
  
  
  
  1.1                  xml-xalan/test/tests/bugzilla/Bugzilla3031.xml
  
  Index: Bugzilla3031.xml
  ===================================================================
  <foo>
    <bar>1</bar>
    <bar>2</bar>
    <bar>3</bar>
    <bang>
      <bat>1</bat>
    </bang>
    <bang>
      <bat>3</bat>
    </bang>
  </foo>
  
  
  1.1                  xml-xalan/test/tests/bugzilla/Bugzilla3031.out
  
  Index: Bugzilla3031.out
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <first worksCorrectly="YES"><bang>
      <bat>1</bat>
    </bang><bang>
      <bat>3</bat>
    </bang></first><second worksCorrectly="YES! (should do the same 
thing)"><bang>
      <bat>1</bat>
    </bang><bang>
      <bat>3</bat>
    </bang></second>
  
  

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

Reply via email to