-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtc-norm.xsl
More file actions
35 lines (35 loc) · 1.21 KB
/
tc-norm.xsl
File metadata and controls
35 lines (35 loc) · 1.21 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.1" xmlns="http://www.tei-c.org/ns/1.0" xmlns:tei="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="tei">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<!-- Couper les notes de Paul Fièvre -->
<xsl:template match="tei:sp/tei:note"/>
<!--
<xsl:template match="node()" mode="copynote"/>
<xsl:template name="copynote" mode="copynote" match="tei:note">
<xsl:if test="local-name(preceding-sibling::*[1]) = 'note'">
<xsl:for-each select="preceding-sibling::*[1]">
<xsl:apply-templates select="." mode="copynote"/>
</xsl:for-each>
</xsl:if>
<xsl:if test="self::tei:note">
<xsl:text> </xsl:text>
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:if>
</xsl:template>
<xsl:template match="tei:l">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates/>
<xsl:call-template name="copynote"/>
</xsl:copy>
</xsl:template>
-->
</xsl:transform>