dmarston    00/12/21 10:05:29

  Modified:    test/tests/conf/namespace namespace16.xsl
  Log:
  Make stylesheet easier to read
  
  Revision  Changes    Path
  1.3       +19 -16    xml-xalan/test/tests/conf/namespace/namespace16.xsl
  
  Index: namespace16.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/namespace16.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- namespace16.xsl   2000/12/21 03:18:50     1.2
  +++ namespace16.xsl   2000/12/21 18:05:28     1.3
  @@ -1,37 +1,40 @@
   <?xml version="1.0"?>
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0"
  -                             xmlns:help="http://foobar.com";
  -                             extension-element-prefixes="help">
  +        xmlns:help="http://foobar.com";
  +        extension-element-prefixes="help">
   
  -  <!-- FileName: NSPC16 -->
  +  <!-- FileName: namespace16 -->
     <!-- Document: http://www.w3.org/TR/xpath -->
  -  <!-- DocVersion: 19991008 -->
  -  <!-- Section: 2.2 Stylesheet Element. -->
  +  <!-- DocVersion: 19991116 -->
  +  <!-- Section: 2.2 Stylesheet Element -->
  +  <!-- Creator: Paul Dick -->
     <!-- Purpose: XSLT processor must ignore a top-level element without giving
  -        and error if it does not recognize the namespace URI. -->
  +        and error if it does not recognize the namespace URI. The prefix used
  +        must still resolve to a URI; but that URI may not be known. -->
   
   <help:Header comment="Header would go here"/>
   <help:TOC comment="Table of Contents"/>
  +<help:template comment="This is the main template" match="doc" 
process="children"/>
   
  -<help:Template comment="This is the main template" match="doc" 
process="children"/>
   <xsl:template match="doc">
     <out>
  -     <xsl:value-of select="'Testing '"/>
  -     <xsl:for-each select="*">
  -             <xsl:value-of select="."/><xsl:text> </xsl:text>                
  -     </xsl:for-each>
  -
  -     <xsl:call-template name="ThatTemp">
  -             <xsl:with-param name="sam">quos</xsl:with-param>
  -     </xsl:call-template>
  +    <xsl:value-of select="'Testing '"/>
  +    <xsl:for-each select="*">
  +      <xsl:value-of select="."/><xsl:text> </xsl:text>               
  +    </xsl:for-each>
  +    <xsl:call-template name="ThatTemp">
  +      <xsl:with-param name="sam">quos</xsl:with-param>
  +    </xsl:call-template>
     </out>
   </xsl:template>
   
  -<help:Template comment="Named template" match="*" process="children"/>
  +<help:template comment="Named template" match="*" name="ThatTemp" 
process="children"/>
  +
   <xsl:template name="ThatTemp">
     <xsl:param name="sam">bo</xsl:param>
     <xsl:copy-of select="$sam"/>
   </xsl:template>
   
   <help:Footer comment="Footer would go here"/>
  +
   </xsl:stylesheet>
  
  
  

Reply via email to