annotate summa/bilingual/fixup_e.xsl @ 137:de4b1e200500 default tip

from https://archive.org/details/AquinasLexicon/mode/2up
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 03 May 2025 22:47:32 +0100
parents 77921d86a058
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
1 <?xml version='1.0'?>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
2 <!DOCTYPE doc SYSTEM "../../../../lib/xml/xsl.dtd" >
54
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
3 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xmlns:x="http://www.w3.org/1999/xhtml" exclude-result-prefixes="x" xmlns="http://www.w3.org/1999/xhtml">
17
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
4
54
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
5 <xsl:output method="xhtml"/>
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
6
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
7 <xsl:template match="x:p[not(text())]"/><!-- These mess up the count later -->
17
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
8
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
9 <xsl:template match="node()|@*">
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
10 <xsl:copy>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
11 <xsl:apply-templates select="node()|@*"/>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
12 </xsl:copy>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
13 </xsl:template>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
14
54
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
15 <xsl:template match="x:div[@class='div3']">
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
16 <!-- Doc elt.
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
17 Collect the splayed out questions at the beginning of each Question
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
18 (Loses some empty <a...> at the beginning -->
17
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
19 <xsl:copy>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
20 <xsl:apply-templates select="@*"/>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
21 <xsl:text>&#10;</xsl:text>
54
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
22 <xsl:apply-templates select="x:h3"/>
17
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
23 <xsl:text>&#10;</xsl:text>
54
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
24 <div class="div4">
17
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
25 <xsl:text>&#10;</xsl:text>
54
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
26 <xsl:apply-templates select="x:p"/>
17
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
27 <xsl:text>&#10;</xsl:text>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
28 </div>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
29 <xsl:text>&#10;</xsl:text>
54
77921d86a058 towards new format, pipeline
ht
parents: 17
diff changeset
30 <xsl:apply-templates select="x:div"/>
17
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
31 </xsl:copy>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
32 </xsl:template>
2bff41f49349 automated grouping, Question 13 merged
ht
parents:
diff changeset
33 </xsl:stylesheet>