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/01/31 23:36:29 UTC

cvs commit: xml-xalan/test/tests/conf/idkey idkey31.xsl idkey01.xsl

dmarston    01/01/31 14:36:29

  Modified:    test/tests/conf/idkey idkey31.xsl idkey01.xsl
  Log:
  Revise output for easier comparison to Gold
  
  Revision  Changes    Path
  1.2       +5 -7      xml-xalan/test/tests/conf/idkey/idkey31.xsl
  
  Index: idkey31.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/idkey/idkey31.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- idkey31.xsl	2000/12/15 19:34:34	1.1
  +++ idkey31.xsl	2001/01/31 22:36:26	1.2
  @@ -16,14 +16,12 @@
   </xsl:template>
   
   <xsl:template match="*">
  -  <xsl:text>Namespaces for </xsl:text><xsl:value-of select="name(.)"/><xsl:text>:
  -</xsl:text>
  -  <xsl:for-each select="namespace::*">
  -    <xsl:value-of select="name(.)"/>
  -    <xsl:text>=</xsl:text>
  -    <xsl:value-of select="generate-id()"/>
  -    <xsl:text>,&#010;</xsl:text>
  +  <xsl:element name="{name(.)}">
  +    <xsl:for-each select="namespace::*">
  +	<xsl:sort/>
  +    <xsl:element name="{name(.)}"><xsl:value-of select="generate-id()"/></xsl:element>
     </xsl:for-each>
  +  </xsl:element>
     <xsl:apply-templates/>
   </xsl:template>
   
  
  
  
  1.2       +10 -9     xml-xalan/test/tests/conf/idkey/idkey01.xsl
  
  Index: idkey01.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/idkey/idkey01.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- idkey01.xsl	2000/12/15 19:34:33	1.1
  +++ idkey01.xsl	2001/01/31 22:36:27	1.2
  @@ -7,20 +7,21 @@
     <!-- Section: 12.2 -->
     <!-- Purpose: Build links using keys and generate-id(). -->
   
  -<xsl:output indent="yes"/>
  +<xsl:output method="html" indent="yes"/>
   
   <xsl:key name="titles" match="div" use="title"/>
   <xsl:key name="id" match="@id" use="@id"/>
   
   <xsl:template match="doc">
  -  <P>Reference numbers should match the titles, links should work.</P>
  -  <xsl:for-each select="div">
  -    <HR/>
  -    <H1 id="{generate-id(.)}">
  -      <xsl:number level="multiple" count="div" format="1.1. "/>
  -      <xsl:value-of select="title"/></H1>
  -    <xsl:apply-templates/>
  -  </xsl:for-each>
  +  <HTML><P>Reference numbers should match the titles, links should work.</P>
  +    <xsl:for-each select="div">
  +      <HR/>
  +      <H1 id="{generate-id(.)}">
  +        <xsl:number level="multiple" count="div" format="1.1. "/>
  +        <xsl:value-of select="title"/></H1>
  +      <xsl:apply-templates/>
  +    </xsl:for-each>
  +  </HTML>
   </xsl:template>
   
   <xsl:template match="p">