Ignore:
Timestamp:
08/11/08 12:24:07 (16 years ago)
Author:
pinsard
Message:

improve wiki FAQ production

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Documentation/xmldoc/saxo_tracwiki.xsl

    r356 r376  
    1515must be followed by awk -f saxo_trackwiki.awk 
    1616because I did not yet correctly handle "* text" (with no linefeed) 
     17 
    1718update : 
    1819$Id$ 
    19 ++ 
    2020++ voir http://trac-hacks.org/wiki/XsltMacro 
     21++ add menu tags menuchoice, gui*, shortcut, keycombo, etc. 
     22fplod 2008-08-06T09:38:26Z aedon.locean-ipsl.upmc.fr (Darwin) 
     23add qanda tags (see ugly http://forge.ipsl.jussieu.fr/saxo/wiki/FaqSaxo 
     24vs http://forge.ipsl.jussieu.fr/saxo/download/xmldoc/faqsaxo.html) 
     25add programlisting management 
     26fplod 2008-08-11T10:15:40Z aedon.locean-ipsl.upmc.fr (Darwin) 
     27 menu tags in comments because to ugly ... problem with these tags vs item in lists 
    2128fplod 2008-04-18T13:01:50Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2229pompage de href="http://docbook.sourceforge.net/release/xsl/current/html/xref.xsl 
     
    6269</xsl:template> 
    6370 
     71<xsl:template match="d:qandadiv/d:title"> 
     72 <xsl:text>&#xA;</xsl:text> 
     73 <xsl:text>== </xsl:text><xsl:value-of select="normalize-space(.)"/><xsl:text> ==</xsl:text> 
     74 <xsl:text>&#xA;</xsl:text> 
     75</xsl:template> 
     76 
    6477<xsl:template match="d:sect2/d:title"> 
    6578 <xsl:text>&#xA;</xsl:text> 
     
    7689</xsl:template> 
    7790 
     91<xsl:template match="d:qandaentry/d:question/d:para"> 
     92 <xsl:text>&#xA;</xsl:text> 
     93 <xsl:variable name="newtitle"> 
     94  <xsl:call-template name="replace-string"> 
     95   <xsl:with-param name="text" select="normalize-space(.)"/> 
     96   <xsl:with-param name="replace" select="'&gt;'"/> 
     97<!-- do not how to write > instead of &gt; ++. need sed features -->  
     98   <xsl:with-param name="with" select="'&gt;'"/> 
     99  </xsl:call-template> 
     100 </xsl:variable> 
     101 <xsl:text>=== </xsl:text><xsl:value-of select="$newtitle"/><xsl:text> ===</xsl:text> 
     102 <xsl:text>&#xA;</xsl:text> 
     103</xsl:template> 
     104 
    78105<xsl:template match="d:sect3/d:title"> 
    79106 <xsl:text>&#xA;</xsl:text> 
     
    131158 
    132159<xsl:template match="d:screen"> 
     160 <!--  
     161we open an HTML block because it is not possible to have font effect (bold, italic) using TracWiki 
     162 --> 
     163 <xsl:text>&#xA;</xsl:text> 
     164 <xsl:text>{{{</xsl:text> 
     165 <xsl:text>&#xA;</xsl:text> 
     166 <xsl:text>#!html</xsl:text> 
     167 <xsl:text>&#xA;</xsl:text> 
     168 <pre class="screen"> 
     169 <xsl:apply-templates/> 
     170 </pre> 
     171 <xsl:text>&#xA;</xsl:text> 
     172 <xsl:text>}}}</xsl:text> 
     173 <xsl:text>&#xA;</xsl:text> 
     174</xsl:template> 
     175 
     176<xsl:template match="d:programlisting"> 
    133177 <!--  
    134178we open an HTML block because it is not possible to have font effect (bold, italic) using TracWiki 
     
    340384 <xsl:text>&#xA;</xsl:text> 
    341385</xsl:template> 
     386 
     387<xsl:template match="d:informaltable"> 
     388<!-- but beware of links inside --> 
     389 <xsl:text>&#xA;</xsl:text> 
     390 <xsl:text>{{{</xsl:text> 
     391 <xsl:text>&#xA;</xsl:text> 
     392 <xsl:text>#!docbook</xsl:text> 
     393 <xsl:text>&#xA;</xsl:text> 
     394 <xsl:copy-of select="."/> 
     395 <xsl:text>&#xA;</xsl:text> 
     396 <xsl:text>}}}</xsl:text> 
     397 <xsl:text>&#xA;</xsl:text> 
     398</xsl:template> 
     399 
     400<!-- ++ pb when in listitem/para 
     401<xsl:template match="d:menuchoice|d:guimenu|d:guisubmenu"> 
     402 <xsl:text>&#xA;</xsl:text> 
     403 <xsl:text>{{{</xsl:text> 
     404 <xsl:text>&#xA;</xsl:text> 
     405 <xsl:text>#!docbook</xsl:text> 
     406 <xsl:text>&#xA;</xsl:text> 
     407 <xsl:copy-of select="."/> 
     408 <xsl:text>&#xA;</xsl:text> 
     409 <xsl:text>}}}</xsl:text> 
     410 <xsl:text>&#xA;</xsl:text> 
     411</xsl:template> 
     412--> 
    342413 
    343414<xsl:template match="d:informaltable"> 
Note: See TracChangeset for help on using the changeset viewer.