~ubuntu.cat/ubuntaires/ajuda

« back to all changes in this revision

Viewing changes to intrepid/teamstuff/docbook2moin/admonitions.xslt

  • Committer: Arnau Alcázar Lleopart
  • Date: 2009-07-17 11:09:35 UTC
  • Revision ID: arnau@alcalleop.net-20090717110935-gnslz4lobcm7wj8y
Afegit la traducció de la intrepid

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
3
 
 
4
<!-- XSLT for db2mm
 
5
    This file is part of db2mm, see db2mm.xslt for details
 
6
 
 
7
    Copyright 2005, 2006 by Jeff Schering (jeffschering@gmail.com)
 
8
        Copyright 2006 by Mikko Virkkilä (mvirkkil@cc.hut.fi)
 
9
 
 
10
    This program is free software; you can redistribute it and/or modify
 
11
    it under the terms of the GNU General Public License as published by
 
12
    the Free Software Foundation; either version 2 of the License, or
 
13
    (at your option) any later version.
 
14
 
 
15
    This program is distributed in the hope that it will be useful,
 
16
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
    GNU General Public License for more details.
 
19
 
 
20
    You should have received a copy of the GNU General Public License
 
21
    along with this program; if not, write to the Free Software
 
22
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
23
 
 
24
  
 
25
-->
 
26
 
 
27
<!--
 
28
### Admonitions ###
 
29
-->
 
30
 
 
31
 
 
32
<xsl:template match="note|tip|warning|caution|important">
 
33
 <xsl:text>[[Admonition("</xsl:text>
 
34
  <xsl:value-of select="local-name()"/><xsl:text>"</xsl:text>
 
35
  <xsl:apply-templates select="title"/>
 
36
  <xsl:apply-templates select="para"/>
 
37
  <xsl:text>)]]</xsl:text>
 
38
</xsl:template>
 
39
 
 
40
<xsl:template match="caution/title|important/title|note/title|tip/title|warning/title">
 
41
  <xsl:text>, title="</xsl:text>
 
42
  <xsl:value-of select="text()"/>
 
43
  <xsl:text>"</xsl:text>
 
44
</xsl:template>
 
45
 
 
46
 
 
47
<xsl:template match="caution/para|important/para|note/para|tip/para|warning/para">
 
48
  <xsl:text>, text="</xsl:text>
 
49
  <xsl:call-template name="inlinetext"/>
 
50
  <xsl:text>"</xsl:text>
 
51
</xsl:template>
 
52
 
 
53
</xsl:stylesheet>
 
54
 
 
55