From: Lady <redacted>
Date: Sat, 6 Jan 2024 04:44:09 +0000 (-0500)
Subject: Explicitly declare UTF-8 output for all transforms
X-Git-Tag: 0.2.3^0
X-Git-Url: https://git.ladys.computer/Shushe/commitdiff_plain/d627a5222e6649e8c359395febcfc093580b51f1

Explicitly declare UTF-8 output for all transforms

This prevents needless character escaping when building the parser and
transforms.
---

diff --git a/lib/catalog2parser.xslt b/lib/catalog2parser.xslt
index 0da26b8..f35fbc1 100644
--- a/lib/catalog2parser.xslt
+++ b/lib/catalog2parser.xslt
@@ -34,4 +34,5 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
 			</xslt:template>
 		</xslt:transform>
 	</template>
+	<output method="xml" encoding="UTF-8"/>
 </transform>
diff --git a/lib/catalog2transform.xslt b/lib/catalog2transform.xslt
index aa490af..3339062 100644
--- a/lib/catalog2transform.xslt
+++ b/lib/catalog2transform.xslt
@@ -146,4 +146,5 @@ If a copy of the M·P·L was not distributed with this file, You can obtain one
 			<xslt:output method="xml" encoding="UTF-8" cdata-section-elements="html:script html:style html:textarea"/>
 		</xslt:transform>
 	</template>
+	<output method="xml" encoding="UTF-8"/>
 </transform>