Statistics
| Revision:

root / tmp / org.txm.core / res / org / txm / xml / xsl / tei / latex2 / textcrit.xsl @ 187

History | View | Annotate | Download (3 kB)

1
<?xml version="1.0" encoding="utf-8"?>
2
<xsl:stylesheet 
3
                xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
4
                xmlns:rng="http://relaxng.org/ns/structure/1.0"
5
                xmlns:tei="http://www.tei-c.org/ns/1.0"
6
                xmlns:teix="http://www.tei-c.org/ns/Examples"
7
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
8
                exclude-result-prefixes="a rng tei teix"
9
                version="2.0">
10
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl" scope="stylesheet" type="stylesheet">
11
      <desc>
12
         <p>
13
    TEI stylesheet
14
    dealing with elements from the
15
      textcrit module, making LaTeX output.
16
      </p>
17
         <p>This software is dual-licensed:
18

    
19
1. Distributed under a Creative Commons Attribution-ShareAlike 3.0
20
Unported License http://creativecommons.org/licenses/by-sa/3.0/ 
21

    
22
2. http://www.opensource.org/licenses/BSD-2-Clause
23
		
24
All rights reserved.
25

    
26
Redistribution and use in source and binary forms, with or without
27
modification, are permitted provided that the following conditions are
28
met:
29

    
30
* Redistributions of source code must retain the above copyright
31
notice, this list of conditions and the following disclaimer.
32

    
33
* Redistributions in binary form must reproduce the above copyright
34
notice, this list of conditions and the following disclaimer in the
35
documentation and/or other materials provided with the distribution.
36

    
37
This software is provided by the copyright holders and contributors
38
"as is" and any express or implied warranties, including, but not
39
limited to, the implied warranties of merchantability and fitness for
40
a particular purpose are disclaimed. In no event shall the copyright
41
holder or contributors be liable for any direct, indirect, incidental,
42
special, exemplary, or consequential damages (including, but not
43
limited to, procurement of substitute goods or services; loss of use,
44
data, or profits; or business interruption) however caused and on any
45
theory of liability, whether in contract, strict liability, or tort
46
(including negligence or otherwise) arising in any way out of the use
47
of this software, even if advised of the possibility of such damage.
48
</p>
49
         <p>Author: See AUTHORS</p>
50
         <p>Copyright: 2011, TEI Consortium</p>
51
      </desc>
52
   </doc>
53

    
54
  <doc xmlns="http://www.oxygenxml.com/ns/doc/xsl">
55
      <desc>
56
         <p>Process element app</p>
57
         <p>Process tei:lem and tei:rdg within tei:app; first, first, rudimentary attempt. Sends lots of information
58
    to a footnote. If a tei:lem is not found, the first tei:rdg is used as the base text. Witness sigils in attribute
59
    wit are assumed all to start with # (this should be parametrized).</p>
60
      </desc>
61
   </doc>
62
   <xsl:template name="appReading">
63
     <xsl:param name="lemma"/>
64
     <xsl:param name="lemmawitness"/>
65
     <xsl:param name="readings"/>
66
     <xsl:text>\edtext{</xsl:text>
67
     <xsl:value-of select="$lemma"/>
68
     <xsl:text>}{\Afootnote{</xsl:text>
69
     <xsl:copy-of select="$readings"/>
70
     <xsl:text>}}</xsl:text>
71
   </xsl:template>
72
</xsl:stylesheet>