CETEIcean 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/CETEI.js +5 -5
- package/tutorial_en/README.md +7 -3
- package/tutorial_ja/README.md +202 -0
- package/tutorial_ja/css/tei.css +8 -0
- package/tutorial_ja/example/css/tei.css +98 -0
- package/tutorial_ja/example/index.html +36 -0
- package/tutorial_ja/example/index_ja.html +47 -0
- package/tutorial_ja/fpn-washington.xml +9893 -0
- package/tutorial_ja/js/CETEI.js +871 -0
- package/tutorial_ja/meros.xml +675 -0
- package/.vscode/settings.json +0 -6
- package/test/P5.css +0 -362
- package/test/tcw20.html +0 -960
- package/test/tcw22.xml +0 -468
- package/tutorial_es/Ruy_Diaz-La_Argentina_Manuscrita.tei.xml +0 -11579
- package/xslt/make-CETEIcean-3.xsl +0 -81
@@ -1,81 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
3
|
-
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
4
|
-
xmlns:t="http://www.tei-c.org/ns/1.0"
|
5
|
-
xmlns:eg="http://www.tei-c.org/ns/Examples"
|
6
|
-
exclude-result-prefixes="t eg xs"
|
7
|
-
version="3.0">
|
8
|
-
|
9
|
-
<xsl:output method="html" version="5" indent="no"/>
|
10
|
-
|
11
|
-
<!-- Simple XSLT that turns TEI into HTML Custom Elements inside an HTML <div>, with
|
12
|
-
the Javascript to run CETEIcean and apply any relevant behaviors. The resulting
|
13
|
-
<div> will need to be embedded in an HTML document that links to a CETEI.js and
|
14
|
-
any CSS needed to style the output. The first template could be modified to
|
15
|
-
generate a full HTML page. -->
|
16
|
-
|
17
|
-
<xsl:template match="/">
|
18
|
-
<html>
|
19
|
-
<head>
|
20
|
-
<meta charset="UTF-8"/>
|
21
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
22
|
-
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
|
23
|
-
<link rel="icon" href="img/lisanalhal.jpg"/>
|
24
|
-
<title>Jara'id: A Chronology Of Arabic Periodicals (1800-1929)</title>
|
25
|
-
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous"/>
|
26
|
-
<link rel="stylesheet" href="css/teiIndex.css"/>
|
27
|
-
<script src="js/bootstrap.bundle.js"></script>
|
28
|
-
<script src="js/CETEI.js"></script>
|
29
|
-
<script src="js/behaviors.js">></script>
|
30
|
-
</head>
|
31
|
-
<body>
|
32
|
-
<div><xsl:text>
|
33
|
-
</xsl:text>
|
34
|
-
<xsl:apply-templates select="node()|comment()"/><xsl:text>
|
35
|
-
</xsl:text>
|
36
|
-
<script type="text/javascript">
|
37
|
-
var c = new CETEI();
|
38
|
-
c.els = [<xsl:value-of select="t:elementList(/)"/>];
|
39
|
-
c.els.push("egXML");
|
40
|
-
c.applyBehaviors();
|
41
|
-
</script>
|
42
|
-
</div>
|
43
|
-
</body>
|
44
|
-
</html>
|
45
|
-
</xsl:template>
|
46
|
-
|
47
|
-
<xsl:template match="@*|comment()">
|
48
|
-
<xsl:copy><xsl:apply-templates select="node()|@*|comment()"/></xsl:copy>
|
49
|
-
</xsl:template>
|
50
|
-
|
51
|
-
<xsl:template match="*[namespace-uri(.) = 'http://www.tei-c.org/ns/1.0']">
|
52
|
-
<xsl:element name="tei-{lower-case(local-name(.))}" >
|
53
|
-
<xsl:if test="namespace-uri(parent::*) != namespace-uri(.)"><xsl:attribute name="data-xmlns"><xsl:value-of select="namespace-uri(.)"/></xsl:attribute></xsl:if>
|
54
|
-
<xsl:if test="@xml:id">
|
55
|
-
<xsl:attribute name="id"><xsl:value-of select="@xml:id"/></xsl:attribute>
|
56
|
-
</xsl:if>
|
57
|
-
<xsl:if test="@xml:lang">
|
58
|
-
<xsl:attribute name="lang"><xsl:value-of select="@xml:lang"/></xsl:attribute>
|
59
|
-
</xsl:if>
|
60
|
-
<xsl:attribute name="data-origname"><xsl:value-of select="local-name(.)"/></xsl:attribute>
|
61
|
-
<xsl:if test="@*">
|
62
|
-
<xsl:attribute name="data-origatts">
|
63
|
-
<xsl:for-each select="@*">
|
64
|
-
<xsl:value-of select="name(.)"/>
|
65
|
-
<xsl:if test="not(position() = last())"><xsl:text> </xsl:text></xsl:if>
|
66
|
-
</xsl:for-each>
|
67
|
-
</xsl:attribute>
|
68
|
-
</xsl:if>
|
69
|
-
<xsl:for-each select="@*[namespace-uri() = '']">
|
70
|
-
<xsl:copy-of select="."/>
|
71
|
-
</xsl:for-each>
|
72
|
-
<xsl:apply-templates select="node()|comment()|processing-instruction()"/>
|
73
|
-
</xsl:element>
|
74
|
-
</xsl:template>
|
75
|
-
|
76
|
-
<xsl:function name="t:elementList">
|
77
|
-
<xsl:param name="doc"/>
|
78
|
-
<xsl:for-each select="distinct-values($doc//*[namespace-uri(.) = 'http://www.tei-c.org/ns/1.0']/local-name())">"<xsl:value-of select="."/>"<xsl:if test="position() != last()">,</xsl:if></xsl:for-each>
|
79
|
-
</xsl:function>
|
80
|
-
|
81
|
-
</xsl:stylesheet>
|