Statistics
| Revision:

root / tmp / org.txm.core / res / org / txm / xml / xsl / tei / tite / tite-acdc.xsl @ 187

History | View | Annotate | Download (1.9 kB)

1
<xsl:stylesheet
2
 xmlns="http://www.tei-c.org/ns/1.0"
3
 xmlns:tei="http://www.tei-c.org/ns/1.0"
4
 xmlns:tite="http://www.tei-c.org/ns/tite/1.0"
5
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
6
 exclude-result-prefixes="xsl tei"    
7
 version="1.0">
8

    
9
<xsl:template name="b">
10
  <hi rend="bold">
11
    <xsl:apply-templates 
12
	select="@*|*|text()|comment()|processing-instruction"/>  
13
  </hi>
14
</xsl:template>
15

    
16
<xsl:template name="i">
17
  <hi rend="italic">
18
    <xsl:apply-templates 
19
	select="@*|*|text()|comment()|processing-instruction"/>  
20
  </hi>
21
</xsl:template>
22

    
23
<xsl:template name="ul">
24
  <hi rend="underline">
25
    <xsl:apply-templates 
26
	select="@*|*|text()|comment()|processing-instruction"/>  
27
  </hi>
28
</xsl:template>
29

    
30
<xsl:template name="sup">
31
  <hi rend="sup">
32
    <xsl:apply-templates 
33
	select="@*|*|text()|comment()|processing-instruction"/>  
34
  </hi>
35
</xsl:template>
36

    
37
<xsl:template name="sub">
38
  <hi rend="sub">
39
    <xsl:apply-templates 
40
	select="@*|*|text()|comment()|processing-instruction"/>  
41
  </hi>
42
</xsl:template>
43

    
44
<xsl:template name="smcap">
45
  <hi rend="smcap">
46
    <xsl:apply-templates 
47
	select="@*|*|text()|comment()|processing-instruction"/>  
48
  </hi>
49
</xsl:template>
50

    
51
<xsl:template name="ornament">
52
  <figure place="inline">
53
    <xsl:apply-templates 
54
	select="@*"/>
55
    <xsl:choose>
56
      <xsl:when test="*">
57
	<xsl:apply-templates 
58
	    select="*|comment()|processing-instruction"/>  
59
      </xsl:when>
60
      <xsl:when test="string-length(.)&gt;0">
61
	<p>
62
	<xsl:apply-templates 
63
	    select="text()|comment()|processing-instruction"/>  
64
	</p>
65
      </xsl:when>
66
      <xsl:otherwise>
67
	<xsl:apply-templates 
68
	    select="comment()|processing-instruction"/>  
69
      </xsl:otherwise>
70
    </xsl:choose>
71
  </figure>
72
</xsl:template>
73

    
74
<xsl:template name="cols">
75
  <milestone unit="cols">
76
    <xsl:apply-templates 
77
	select="@*|*|text()|comment()|processing-instruction"/>  
78
  </milestone>
79
</xsl:template>
80

    
81
</xsl:stylesheet>