summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/latex-web-companion/xmlstyle/sectionexa.xsl
blob: e9029d4aa0ab5dbeee84cf13ccbae551cd35f445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?xml version='1.0'?>
<xsl:stylesheet
 version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 result-ns="">
<xsl:template match="/">
  <xsl:text>(*root*)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/*root*)</xsl:text>
</xsl:template>
<xsl:template match="*" priority="-1">
  <xsl:text>(*)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/*)</xsl:text>
</xsl:template>
<xsl:template match="par">
  <xsl:text>(T1)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/T1)</xsl:text>
</xsl:template>
<xsl:template match="par[@ident]" priority="1"> 
  <xsl:text>(T2)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/T2)</xsl:text>
</xsl:template>
<xsl:template match="par[@ident='first']" priority="2">
  <xsl:text>(T3)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/T3)</xsl:text>
</xsl:template>
<xsl:template match="section[@sectid='S2']
              /par[@ident='normal' and @id='special']" priority="3">
  <xsl:text>(T4)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/T4)</xsl:text>
</xsl:template>
<xsl:template match="section[position()=last()]">
  <xsl:text>(P1)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/P1)</xsl:text>
</xsl:template>
<xsl:template match="section[position()>1]/par[position()=1]" priority="3">
  <xsl:text>(P2)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/P2)</xsl:text>
</xsl:template>
<xsl:template match="author">
  <xsl:text>(A1)</xsl:text>
  <xsl:text>author   1: </xsl:text>
  <xsl:text>(/A1)</xsl:text>
  <xsl:apply-templates/>
</xsl:template>
<xsl:template match="author[position()=last()]" priority="1">
  <xsl:text>(A2)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/A2)</xsl:text>
</xsl:template>
<xsl:template 
  match="stitle[contains(text(),'First')]" priority="1">
  <xsl:text>(WD)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/WD)</xsl:text>
</xsl:template>
<xsl:template match="emph[position()=1 and position()=last()]" priority="2">
  <xsl:text>(E1)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/E1)</xsl:text>
</xsl:template>
<xsl:template match="emph[not(position()=1 and position()=last())]" priority="2">
  <xsl:text>(E2)</xsl:text>
  <xsl:apply-templates/>
  <xsl:text>(/E2)</xsl:text>
</xsl:template>
</xsl:stylesheet>