Ignore:
Timestamp:
11/09/09 17:51:40 (15 years ago)
Author:
pinsard
Message:

correction for wiki links

File:
1 edited

Legend:

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

    r376 r411  
    77version="1.0"> 
    88<!-- 
    9 module : 
     9 
     10module 
     11====== 
     12 
    1013transformation docbook en un tracwiki  
    1114 
    12 original location : 
    13 /Users/fplod/SAXO_DIR_ws/SRC/Documentation/xmldoc/saxo_trackwiki.xsl sur aedon.locean-ipsl.upmc.fr 
    14  
    15 must be followed by awk -f saxo_trackwiki.awk 
     15CAUTIONS 
     16======== 
     17 
     18must be followed by : 
     19 awk -f saxo_trackwiki.awk 
     20 
    1621because I did not yet correctly handle "* text" (with no linefeed) 
    1722 
    18 update : 
     23 
     24and 
     25 
     26 sed -f linkwiki.sed 
     27 
     28TODO 
     29==== 
     30 
     31++ voir http://trac-hacks.org/wiki/XsltMacro 
     32 
     33++ add menu tags menuchoice, gui*, shortcut, keycombo, etc. 
     34 
     35++ revoir lien idldoc trop lié à SAXO 
     36 
     37EVOLUTIONS 
     38========== 
     39 
    1940$Id$ 
    20 ++ voir http://trac-hacks.org/wiki/XsltMacro 
    21 ++ add menu tags menuchoice, gui*, shortcut, keycombo, etc. 
     41 
     42- fplod 20091109T164603Z aedon.locean-ipsl.upmc.fr (Darwin) 
     43 
     44  * remove wiki link transformations (see linkwiki.sed) 
     45    to be usable within other IDL toolbox like POST_IT 
     46 
    2247fplod 2008-08-06T09:38:26Z aedon.locean-ipsl.upmc.fr (Darwin) 
    2348add qanda tags (see ugly http://forge.ipsl.jussieu.fr/saxo/wiki/FaqSaxo 
     
    221246<xsl:template match="d:itemizedlist/d:listitem/d:simpara/d:link[@xl:href]"> 
    222247 <xsl:text>&#xA;</xsl:text> 
    223  <xsl:text> [</xsl:text><xsl:value-of select="@xl:href"/> <xsl:text> </xsl:text><xsl:value-of select="."/> <xsl:text>]</xsl:text> 
     248 <xsl:text> [</xsl:text><xsl:value-of select="@xl:href"/> <xsl:text>AAA </xsl:text><xsl:value-of select="."/><xsl:text>]</xsl:text> 
    224249</xsl:template> 
    225250 
     
    231256<xsl:template match="d:variablelist/d:varlistentry/d:listitem/d:simpara/d:link[@xl:href]"> 
    232257 <xsl:text>&#xA;</xsl:text> 
    233  <xsl:text> [</xsl:text><xsl:value-of select="@xl:href"/> <xsl:text> </xsl:text><xsl:value-of select="."/> <xsl:text>]</xsl:text> 
     258 <xsl:text> [</xsl:text><xsl:value-of select="@xl:href"/> <xsl:text>BBB </xsl:text><xsl:value-of select="."/><xsl:text>]</xsl:text> 
    234259</xsl:template> 
    235260 
     
    252277<xsl:template match="d:link[@xl:href]"> 
    253278<xsl:variable name="link"> 
    254  <xsl:choose> 
    255   <xsl:when test="contains(@xl:href,'firststeps.html')"> 
    256    <xsl:text>wiki:FirstSteps</xsl:text> 
    257   </xsl:when> 
    258   <xsl:when test="contains(@xl:href,'all_plots.html')"> 
    259    <xsl:text>wiki:AllPlots</xsl:text> 
    260   </xsl:when> 
    261   <xsl:when test="contains(@xl:href,'faqsaxo.html')"> 
    262    <xsl:text>wiki:FaqSaxo</xsl:text> 
    263   </xsl:when> 
    264   <xsl:when test="contains(@xl:href,'getsaxo.html')"> 
    265    <xsl:text>wiki:GetSaxo</xsl:text> 
    266   </xsl:when> 
    267   <xsl:when test="contains(@xl:href,'infoupdatecm.html')"> 
    268    <xsl:text>wiki:InfoUpdateCm</xsl:text> 
    269   </xsl:when> 
    270   <xsl:when test="contains(@xl:href,'infoupdatekwd.html')"> 
    271    <xsl:text>wiki:InfoUpdateKwd</xsl:text> 
    272   </xsl:when> 
    273   <xsl:when test="contains(@xl:href,'mailing.html')"> 
    274    <xsl:text>wiki:Mailing</xsl:text> 
    275   </xsl:when> 
    276   <xsl:when test="contains(@xl:href,'mini_notice.html')"> 
    277    <xsl:text>wiki:MiniNotice</xsl:text> 
    278   </xsl:when> 
    279   <xsl:when test="contains(@xl:href,'tiplink.html')"> 
    280    <xsl:text>wiki:TipLink</xsl:text> 
    281   </xsl:when> 
    282   <xsl:when test="contains(@xl:href,'updatesaxo.html')"> 
    283    <xsl:text>wiki:UpdateSaxo</xsl:text> 
    284   </xsl:when> 
    285   <xsl:when test="contains(@xl:href,'whatissaxo.html')"> 
    286    <xsl:text>wiki:WhatisSaxo</xsl:text> 
    287   </xsl:when> 
    288   <xsl:when test="contains(@xl:href,'whatsnew.html')"> 
    289    <xsl:text>wiki:WhatsNew</xsl:text> 
    290   </xsl:when> 
    291   <xsl:when test="contains(@xl:href,'websaxo.html')"> 
    292    <xsl:text>wiki:WikiStart</xsl:text> 
    293   </xsl:when> 
     279  <xsl:choose> 
    294280  <xsl:when test="contains(@xl:href,'../../')"> 
    295281   <xsl:text>source:/trunk/SRC/</xsl:text><xsl:value-of select="substring-after(@xl:href,'../../')"/> 
     
    317303 
    318304<xsl:template match="d:email"> 
    319 <xsl:text>[mailto:</xsl:text><xsl:value-of select="."/> <xsl:text> </xsl:text><xsl:value-of select="."/> <xsl:text>]</xsl:text> 
     305<xsl:text>[mailto:</xsl:text><xsl:value-of select="."/> <xsl:text>DDD </xsl:text><xsl:value-of select="."/> <xsl:text>]</xsl:text> 
    320306</xsl:template> 
    321307 
Note: See TracChangeset for help on using the changeset viewer.