forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest/src/resources/stylesheets wiki2document.xsl
Date Sun, 27 Apr 2003 10:18:53 GMT
jefft       2003/04/27 03:18:53

  Modified:    src/resources/stylesheets wiki2document.xsl
  Log:
  This is probably a workaround for a wiki.grm bug. The text "can
  be" (with linebreak) is parsed as:
  
  can</text></textblock><softbreak>
  </softbreak><textblock><text>be
  
  Probably the <softbreak> shouldn't cause the end of a textblock. Anyway, this
  stylesheet mod deals with the XML above, outputting a ' ' for each <softbreak>.
  
  Revision  Changes    Path
  1.3       +5 -1      xml-forrest/src/resources/stylesheets/wiki2document.xsl
  
  Index: wiki2document.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/resources/stylesheets/wiki2document.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- wiki2document.xsl	27 Apr 2003 06:03:39 -0000	1.2
  +++ wiki2document.xsl	27 Apr 2003 10:18:53 -0000	1.3
  @@ -48,7 +48,7 @@
   
    <xsl:template match="st:textsequence" mode="paragraph">
     <p>
  -   <xsl:apply-templates select="st:textblock/st:*"/>
  +   <xsl:apply-templates select="st:textblock/st:*|st:softbreak"/>
     </p>
    </xsl:template>
   
  @@ -84,6 +84,10 @@
   
    <xsl:template match="st:text">
     <xsl:value-of select="."/>
  + </xsl:template>
  +
  + <xsl:template match="st:softbreak">
  + <xsl:text> </xsl:text>
    </xsl:template>
   
    <xsl:template match="st:link">
  
  
  

Mime
View raw message