dmarston    01/06/21 14:02:26

  Added:       test/tests/conf/select select74.xsl select74.xml
  Log:
  Example from spec made into test case
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/select/select74.xsl
  
  Index: select74.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
  
    <!-- FileName: select74 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 8 Repetition -->
    <!-- Purpose: Test for-each example from XSLT spec. -->
  
  <xsl:template match="/">
    <html>
      <head>
        <title>Customers</title>
      </head>
      <body>
        <table>
        <tbody>
          <xsl:for-each select="customers/customer">
            <tr>
              <th>
                <xsl:apply-templates select="name"/>
              </th>
              <xsl:for-each select="order">
                <td>
                  <xsl:apply-templates/>
                </td>
              </xsl:for-each>
            </tr>
          </xsl:for-each>
        </tbody>
        </table>
      </body>
    </html>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/select/select74.xml
  
  Index: select74.xml
  ===================================================================
  <?xml version="1.0"?>
  <customers>
    <customer>
      <name>William</name>
      <order>pc10</order>
      <order>pc20</order>
    </customer>
    <customer>
      <name>Harry</name>
      <order>pc21</order>
      <order>pc22</order>
    </customer>
  </customers>
  
  

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

Reply via email to