forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kpiroum...@apache.org
Subject cvs commit: xml-forrest/src/resources/library/xslt docv10todocv11.xsl
Date Tue, 10 Sep 2002 08:05:58 GMT
kpiroumian    2002/09/10 01:05:58

  Modified:    src/resources/library/xslt docv10todocv11.xsl
  Log:
  Fix: make stylesheet work with Saxon.
  Thanks to Jeff Turner [jefft@apache.org].
  
  Revision  Changes    Path
  1.7       +5 -1      xml-forrest/src/resources/library/xslt/docv10todocv11.xsl
  
  Index: docv10todocv11.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/library/xslt/docv10todocv11.xsl,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- docv10todocv11.xsl	27 Jun 2002 04:17:50 -0000	1.6
  +++ docv10todocv11.xsl	10 Sep 2002 08:05:58 -0000	1.7
  @@ -60,9 +60,13 @@
     <!-- fixes sections -->
     <xsl:template match="s1 | s2 | s3 | s4">
       <section>
  -      <xsl:apply-templates select="@*|node()"/>
  +      <xsl:apply-templates select="@*[name()!='title']"/>
  +      <xsl:apply-templates select="@*[name()='title']"/>
  +	  <!-- apply title rule last. See http://sourceforge.net/forum/forum.php?thread_id=729070&forum_id=94027
-->
  +      <xsl:apply-templates select="node()"/>
       </section>
     </xsl:template>
  +
     <xsl:template match="s1/@title | s2/@title | s3/@title | s4/@title">
       <title><xsl:value-of select="."/></title>
     </xsl:template>
  
  
  

Mime
View raw message