PureXML/Sources
Mihaela Mihaljevic 445412b105
fix(xslt): name the html output method doctype HTML, not the element name (closes output40/48/60) (#259)
* fix(xslt): name the html output method doctype HTML, not the element name

XSLT 1.0 16.2: for the html output method the name following <!DOCTYPE should
be HTML or html, not the document element name (which is the xml method's rule,
16.1). The serializer used the document element name for both methods, so
method=html with a non-html root element (e.g. <root>) emitted
<!DOCTYPE root PUBLIC ...> instead of <!DOCTYPE HTML PUBLIC ...>.

Closes Apache Xalan conformance cases output40, output48, output60.

* fix(xslt): emit no html doctype when the result has no element

Addresses the doctype critic finding: a doctype precedes the first element
(16.2), so a text-only result must emit none even for the html method. The
fixed HTML name made the existing no-element guard unreachable; restore it by
guarding on the document element before choosing the name.
2026-06-24 02:29:26 +02:00
..
Canonical
Catalog
Emitting XSLT/XPath conformance: close 68 Apache Xalan cases (#254) 2026-06-24 00:13:14 +02:00
HTML fix(html): do not escape < in an attribute value in the html output method (#258) 2026-06-24 02:16:20 +02:00
Model XSLT/XPath conformance: close 68 Apache Xalan cases (#254) 2026-06-24 00:13:14 +02:00
Parsing
Pattern
Regex
Schema
Stream
Validation
XInclude
XPath XSLT/XPath conformance: close 68 Apache Xalan cases (#254) 2026-06-24 00:13:14 +02:00
XPointer
XSLT fix(xslt): name the html output method doctype HTML, not the element name (closes output40/48/60) (#259) 2026-06-24 02:29:26 +02:00
API.swift
Lint.swift
PureXML.swift
QuickFix.swift