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 19:28:57 GMT
reinhard    2004/01/26 11:28:57

  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 more documentv12 elements:
    * warning
    * fixme
    * todo
    * sup
    * sub
    * code
  - enhence example using all supported elements
  
  Revision  Changes    Path
  1.2       +23 -12    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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- openoffice-writer2forrest.xsl	13 Jan 2004 14:56:27 -0000	1.1
  +++ openoffice-writer2forrest.xsl	26 Jan 2004 19:28:57 -0000	1.2
  @@ -27,11 +27,6 @@
           </title>
         </header>
         <xsl:apply-templates select="/*/office:body"/>
  -      <!--
  -      <completeDocForDebugging>
  -        <xsl:copy-of select="*"/>
  -      </completeDocForDebugging>
  -      -->
       </document>
     </xsl:template>
     <!--+
  @@ -109,14 +104,30 @@
       <img src="{@xlink:href}" alt="{@draw:name}"/>
     </xsl:template>
     <!--+
  -      | Inline Source
  +      | Code
         +-->
  -  <xsl:template match="text:span[text:style-name='Code']">
  +  <xsl:template match="text:span[@text:style-name='Forrest: Code']">
       <code>
         <xsl:value-of select="."/>
       </code>
     </xsl:template>
     <!--+
  +      | sup
  +      +-->
  +  <xsl:template match="text:span[@text:style-name='Forrest: Above']">
  +    <sup>
  +      <xsl:value-of select="."/>
  +    </sup>
  +  </xsl:template>
  +  <!--+
  +      | sub
  +      +-->
  +  <xsl:template match="text:span[@text:style-name='Forrest: Below']">
  +    <sub>
  +      <xsl:value-of select="."/>
  +    </sub>
  +  </xsl:template>    
  +  <!--+
         | line breaks 
         +-->
     <xsl:template match="text:line-break">
  @@ -196,7 +207,7 @@
     <!--+
         | Source
         +-->
  -  <xsl:template match="text:p[@text:style-name='Source']">
  +  <xsl:template match="text:p[@text:style-name='Forrest: Source']">
       <source>
   <xsl:text>
   </xsl:text>
  @@ -206,13 +217,13 @@
      
       </source>
     </xsl:template>      
  -  <xsl:template match="text:p[@text:style-name='Source']/text:line-break">
  +  <xsl:template match="text:p[@text:style-name='Forrest: Source']/text:line-break">
       <br/>
     </xsl:template> 
     <!--+
         | Warning
         +-->
  -  <xsl:template match="text:p[@text:style-name='Warning']">
  +  <xsl:template match="text:p[@text:style-name='Forrest: Warning']">
       <warning>
         <xsl:apply-templates/>
       </warning>
  @@ -222,7 +233,7 @@
         | - the author attribute is ignored but this has to change with
         |   XHTML2 anyway ... (RP)
         +-->
  -  <xsl:template match="text:p[@text:style-name='Fixme']">
  +  <xsl:template match="text:p[@text:style-name='Forrest: Fixme']">
       <fixme>
         <xsl:apply-templates/>
       </fixme>
  @@ -230,7 +241,7 @@
     <!--+
         | Note
         +-->
  -  <xsl:template match="text:p[@text:style-name='Note']">
  +  <xsl:template match="text:p[@text:style-name='Forrest: Note']">
       <note>
         <xsl:apply-templates/>
       </note>
  
  
  
  1.2       +30 -18    xml-forrest/src/core/fresh-site/src/documentation/content/xdocs/samples/openoffice-writer.sxw
  
  	<<Binary file>>
  
  

Mime
View raw message