forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From reinh...@apache.org
Subject cvs commit: xml-forrest/src/core/fresh-site/src/documentation/content/xdocs/samples openoffice-writer.sxw
Date Mon, 26 Jan 2004 20:47:22 GMT
reinhard    2004/01/26 12:47:22

  Modified:    src/core/context/resources/stylesheets
                        openoffice-writer2forrest.xsl
               src/core/fresh-site/src/documentation/content/xdocs/samples
                        openoffice-writer.sxw
  Log:
  - add support for 'Emphasis' templates --> <em>
  - rename forking link targets from _top to _new
  - enhence example file
  
  Revision  Changes    Path
  1.3       +14 -6     xml-forrest/src/core/context/resources/stylesheets/openoffice-writer2forrest.xsl
  
  Index: openoffice-writer2forrest.xsl
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/context/resources/stylesheets/openoffice-writer2forrest.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- openoffice-writer2forrest.xsl	26 Jan 2004 19:28:57 -0000	1.2
  +++ openoffice-writer2forrest.xsl	26 Jan 2004 20:47:22 -0000	1.3
  @@ -96,13 +96,15 @@
       <strong>
         <xsl:apply-templates/>
       </strong>
  -  </xsl:template>
  +  </xsl:template>  
     <!--+
  -      | Images
  +      | emphasised text
         +-->
  -  <xsl:template match="draw:image[@xlink:show]">
  -    <img src="{@xlink:href}" alt="{@draw:name}"/>
  -  </xsl:template>
  +  <xsl:template match="text:span[@text:style-name='Emphasis']">
  +    <em>
  +      <xsl:apply-templates/>
  +    </em>
  +  </xsl:template>    
     <!--+
         | Code
         +-->
  @@ -154,6 +156,12 @@
       <xsl:apply-templates select="text:ordered-list"/>    
     </xsl:template>
     <!--+
  +      | Images
  +      +-->
  +  <xsl:template match="draw:image[@xlink:show]">
  +    <img src="{@xlink:href}" alt="{@draw:name}"/>
  +  </xsl:template>  
  +  <!--+
         | Tables
         | Note (RP): need some improvement, maybe forrest-doc isn't good enough
         | for many talbe requirements ...
  @@ -194,7 +202,7 @@
         <xsl:value-of select="."/>
       </link>
     </xsl:template>
  -  <xsl:template match="text:a[@office:target-frame-name='_top']">
  +  <xsl:template match="text:a[@office:target-frame-name='_new']">
       <jump href="{@xlink:href}" title="{@office:name}">
         <xsl:value-of select="."/>
       </jump>
  
  
  
  1.3       +18 -26    xml-forrest/src/core/fresh-site/src/documentation/content/xdocs/samples/openoffice-writer.sxw
  
  	<<Binary file>>
  
  

Mime
View raw message