xml-xalan-cvs 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/accept/generated generated03d.xml generated02.xsl generated03.xml generated03.xsl generated03a.xml generated03b.xml generated03c.xml generated02.xml
Date Fri, 13 Dec 2002 17:41:55 GMT
dmarston    2002/12/13 09:41:55

  Added:       test/tests/accept/generated generated03d.xml generated02.xsl
                        generated03.xml generated03.xsl generated03a.xml
                        generated03b.xml generated03c.xml generated02.xml
  Log:
  The former idkey07 and idkey49 renamed for this acceptance
  test group, and slightly cleaned up.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/accept/generated/generated03d.xml
  
  Index: generated03d.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <outer>
    <body>3D-Tie</body>
    <body>3D-Sly</body>
  </outer>
  
  
  1.1                  xml-xalan/test/tests/accept/generated/generated02.xsl
  
  Index: generated02.xsl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: generated02 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 12.4 Miscellaneous Additional Functions  -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test of generate-id() with display of actual IDs -->
    <!-- Exact strings will vary by processor. All should meet the constraints of XML names.
      Use this test to catch unexplained changes in the naming scheme. -->
  
  <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  
  <xsl:template match="/">
    <out>
      <xsl:value-of select="generate-id(doc)"/><xsl:text>,</xsl:text>
      <xsl:apply-templates select="doc/@*"/>
      <xsl:apply-templates select="doc/child::node()"/>
    </out>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:value-of select="generate-id(.)"/><xsl:text>,</xsl:text>
    <xsl:apply-templates select="./@*"/>
    <xsl:apply-templates select="./child::node()"/><xsl:text>;</xsl:text>
  </xsl:template>
  
  <xsl:template match="@*">
    <xsl:value-of select="generate-id(.)"/><xsl:text>,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/accept/generated/generated03.xml
  
  Index: generated03.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <doc>
    <a/>
    <a>generated03a.xml</a><!-- Hello -->
    <a>generated03b.xml</a><!-- Shirt, Overt -->
    <a>generated03c.xml</a><!-- GoodBye -->
    <a>generated03d.xml</a><!-- Tie, Sly -->
    <x/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/accept/generated/generated03.xsl
  
  Index: generated03.xsl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: generated03 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 12.4 -->
    <!-- Creator: Paul Dick -->
    <!-- Purpose: Test generate-id() when nodes are coming from different documents. -->
    <!-- Elaboration: All IDs should be distinct. The first for-each prints out info about
the document
      and node value. The second loop prints out the ID. Exact strings will vary by processor.
All should
      meet the constraints of XML names. Use this test to catch unexplained changes in the
naming scheme. -->
  
  <xsl:output method="xml" encoding="UTF-8" indent="no"/>
  
  <xsl:template match="doc">
    <out>
     <values>
      <xsl:for-each select="document(a)//body">
        <xsl:value-of select="."/><xsl:text>,  </xsl:text>
      </xsl:for-each></values>
      <xsl:text>&#10;</xsl:text>
     <ids>
      <xsl:for-each select="document(a)//body">
        <xsl:value-of select="generate-id(.)"/><xsl:text>,  </xsl:text>
      </xsl:for-each></ids>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/accept/generated/generated03a.xml
  
  Index: generated03a.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <doc>
    <body>3A-Hello</body>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/accept/generated/generated03b.xml
  
  Index: generated03b.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <doc>
    <body>3B-Shirt</body>
    <body>3B-Overt</body>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/accept/generated/generated03c.xml
  
  Index: generated03c.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <outer>
    <body>3C-GoodBye</body>
  </outer>
  
  
  1.1                  xml-xalan/test/tests/accept/generated/generated02.xml
  
  Index: generated02.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <doc att="top" cat="top">
    <?a-pi some data?>
    <!-- This is the 1st comment -->
    <begin bat="fob">text-in-begin1
      <inner blat="blob">inner-text<!-- This is the 2nd comment --></inner>
      text-in-begin2
    </begin>
    text-in-doc
  </doc>
  
  

---------------------------------------------------------------------
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