summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2023-08-08 18:02:14 +0300
committerdefanor <defanor@uberspace.net>2023-08-08 18:08:54 +0300
commit00445262469de2eac7908dfbd5318b67a4345a6e (patch)
tree80128fa7d454031c962cdbef97b0ad657a958ed4
parentb7d04fb5f51312beb433cc1f5e9d76b8a8195ab2 (diff)
Set the priority for catch-all templates to -1
The default may be >= 0, see <https://www.w3.org/TR/1999/REC-xslt-19991116#dt-default-priority>.
-rw-r--r--tools/xml-notes-dump.xsl2
-rw-r--r--tools/xml-notes-limit.xsl2
-rw-r--r--tools/xml-notes-sort.xsl2
-rw-r--r--tools/xml-notes-to-atom.xsl2
-rw-r--r--tools/xml-to-html.xsl2
5 files changed, 5 insertions, 5 deletions
diff --git a/tools/xml-notes-dump.xsl b/tools/xml-notes-dump.xsl
index 79b9606..c1ba20b 100644
--- a/tools/xml-notes-dump.xsl
+++ b/tools/xml-notes-dump.xsl
@@ -16,7 +16,7 @@
</xsl:copy>
</xsl:template>
- <xsl:template match="node()" priority="0">
+ <xsl:template match="node()" priority="-1">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates />
diff --git a/tools/xml-notes-limit.xsl b/tools/xml-notes-limit.xsl
index 149cbd9..4b8a223 100644
--- a/tools/xml-notes-limit.xsl
+++ b/tools/xml-notes-limit.xsl
@@ -12,7 +12,7 @@
</xsl:copy>
</xsl:template>
- <xsl:template match="node()" priority="0">
+ <xsl:template match="node()" priority="-1">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates />
diff --git a/tools/xml-notes-sort.xsl b/tools/xml-notes-sort.xsl
index 9d6ac70..9a274ee 100644
--- a/tools/xml-notes-sort.xsl
+++ b/tools/xml-notes-sort.xsl
@@ -23,7 +23,7 @@
</xsl:copy>
</xsl:template>
- <xsl:template match="node()" priority="0">
+ <xsl:template match="node()" priority="-1">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates />
diff --git a/tools/xml-notes-to-atom.xsl b/tools/xml-notes-to-atom.xsl
index 3c1f07f..a33fb67 100644
--- a/tools/xml-notes-to-atom.xsl
+++ b/tools/xml-notes-to-atom.xsl
@@ -61,7 +61,7 @@
</entry>
</xsl:template>
- <xsl:template match="node()" priority="0">
+ <xsl:template match="node()" priority="-1">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates />
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index d6f4061..ef950b2 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -140,7 +140,7 @@
</xsl:copy>
</xsl:template>
- <xsl:template mode="body" match="@* | node()" priority="0">
+ <xsl:template mode="body" match="@* | node()" priority="-1">
<xsl:copy>
<xsl:copy-of select="@*" />
<xsl:apply-templates mode="body" />