forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: xml-forrest/src/resources/convert/anakiaNmaven anakiaNmaven2document11.xsl
Date Sat, 16 Nov 2002 00:20:14 GMT
nicolaken    2002/11/15 16:20:14

  Modified:    src/resources/convert/anakiaNmaven
                        anakiaNmaven2document11.xsl
  Log:
  Added template rules that hadn't made it, before from the version Jeff Turner sent me.
  
  Revision  Changes    Path
  1.2       +20 -2     xml-forrest/src/resources/convert/anakiaNmaven/anakiaNmaven2document11.xsl
  
  Index: anakiaNmaven2document11.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/convert/anakiaNmaven/anakiaNmaven2document11.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- anakiaNmaven2document11.xsl	12 Nov 2002 09:56:05 -0000	1.1
  +++ anakiaNmaven2document11.xsl	16 Nov 2002 00:20:14 -0000	1.2
  @@ -99,10 +99,22 @@
           </section>
       </xsl:template>
       
  +    <!-- convert a to link -->
       <xsl:template match="a">
  -        <link href="{@href}"><xsl:value-of select="." /></link>
  +      <xsl:if test="@name">
  +        <!-- Attach an id to the current node -->
  +        <xsl:attribute name="id"><xsl:value-of select="translate(@name, ' $',
'__')"/></xsl:attribute>
  +        <xsl:apply-templates/>
  +      </xsl:if>
  +      <xsl:if test="@href">
  +        <link href="{@href}">
  +          <xsl:apply-templates/>
  +        </link>
  +      </xsl:if>
       </xsl:template>
       
  +    <xsl:template match="@valign | @align"/>
  +        
       <xsl:template match="center">
         <xsl:choose>
       	<xsl:when test="name(..)='p'">
  @@ -162,11 +174,17 @@
           <xsl:apply-templates/>
         </em>
       </xsl:template>
  -        
  +
  +    <!-- Strip fonts -->
  +    <xsl:template match="font">
  +      <xsl:apply-templates/>
  +    </xsl:template>
  +            
       <xsl:template match="node()|@*" priority="-1">
           <xsl:copy>
               <xsl:apply-templates select="node()|@*"/>
           </xsl:copy>
       </xsl:template>
  +
   
   </xsl:stylesheet>
  
  
  

Mime
View raw message