Changeset 376 for trunk/SRC/Documentation/xmldoc/saxo_tracwiki.xsl
- Timestamp:
- 08/11/08 12:24:07 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Documentation/xmldoc/saxo_tracwiki.xsl
r356 r376 15 15 must be followed by awk -f saxo_trackwiki.awk 16 16 because I did not yet correctly handle "* text" (with no linefeed) 17 17 18 update : 18 19 $Id$ 19 ++20 20 ++ voir http://trac-hacks.org/wiki/XsltMacro 21 ++ add menu tags menuchoice, gui*, shortcut, keycombo, etc. 22 fplod 2008-08-06T09:38:26Z aedon.locean-ipsl.upmc.fr (Darwin) 23 add qanda tags (see ugly http://forge.ipsl.jussieu.fr/saxo/wiki/FaqSaxo 24 vs http://forge.ipsl.jussieu.fr/saxo/download/xmldoc/faqsaxo.html) 25 add programlisting management 26 fplod 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 21 28 fplod 2008-04-18T13:01:50Z aedon.locean-ipsl.upmc.fr (Darwin) 22 29 pompage de href="http://docbook.sourceforge.net/release/xsl/current/html/xref.xsl … … 62 69 </xsl:template> 63 70 71 <xsl:template match="d:qandadiv/d:title"> 72 <xsl:text>
</xsl:text> 73 <xsl:text>== </xsl:text><xsl:value-of select="normalize-space(.)"/><xsl:text> ==</xsl:text> 74 <xsl:text>
</xsl:text> 75 </xsl:template> 76 64 77 <xsl:template match="d:sect2/d:title"> 65 78 <xsl:text>
</xsl:text> … … 76 89 </xsl:template> 77 90 91 <xsl:template match="d:qandaentry/d:question/d:para"> 92 <xsl:text>
</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="'>'"/> 97 <!-- do not how to write > instead of > ++. need sed features --> 98 <xsl:with-param name="with" select="'>'"/> 99 </xsl:call-template> 100 </xsl:variable> 101 <xsl:text>=== </xsl:text><xsl:value-of select="$newtitle"/><xsl:text> ===</xsl:text> 102 <xsl:text>
</xsl:text> 103 </xsl:template> 104 78 105 <xsl:template match="d:sect3/d:title"> 79 106 <xsl:text>
</xsl:text> … … 131 158 132 159 <xsl:template match="d:screen"> 160 <!-- 161 we open an HTML block because it is not possible to have font effect (bold, italic) using TracWiki 162 --> 163 <xsl:text>
</xsl:text> 164 <xsl:text>{{{</xsl:text> 165 <xsl:text>
</xsl:text> 166 <xsl:text>#!html</xsl:text> 167 <xsl:text>
</xsl:text> 168 <pre class="screen"> 169 <xsl:apply-templates/> 170 </pre> 171 <xsl:text>
</xsl:text> 172 <xsl:text>}}}</xsl:text> 173 <xsl:text>
</xsl:text> 174 </xsl:template> 175 176 <xsl:template match="d:programlisting"> 133 177 <!-- 134 178 we open an HTML block because it is not possible to have font effect (bold, italic) using TracWiki … … 340 384 <xsl:text>
</xsl:text> 341 385 </xsl:template> 386 387 <xsl:template match="d:informaltable"> 388 <!-- but beware of links inside --> 389 <xsl:text>
</xsl:text> 390 <xsl:text>{{{</xsl:text> 391 <xsl:text>
</xsl:text> 392 <xsl:text>#!docbook</xsl:text> 393 <xsl:text>
</xsl:text> 394 <xsl:copy-of select="."/> 395 <xsl:text>
</xsl:text> 396 <xsl:text>}}}</xsl:text> 397 <xsl:text>
</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>
</xsl:text> 403 <xsl:text>{{{</xsl:text> 404 <xsl:text>
</xsl:text> 405 <xsl:text>#!docbook</xsl:text> 406 <xsl:text>
</xsl:text> 407 <xsl:copy-of select="."/> 408 <xsl:text>
</xsl:text> 409 <xsl:text>}}}</xsl:text> 410 <xsl:text>
</xsl:text> 411 </xsl:template> 412 --> 342 413 343 414 <xsl:template match="d:informaltable">
Note: See TracChangeset
for help on using the changeset viewer.