xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
[XOM-interest] XOM Canonicalization: whitespace outside document element
- From: Michael Kay <mike AT saxonica.com>
- To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
- Subject: [XOM-interest] XOM Canonicalization: whitespace outside document element
- Date: Tue, 10 Apr 2018 17:19:14 +0100
If I canonicalize the document
<?xml-stylesheet type="text/xsl" href="bills.xsl"?>
<Bills/>
I would expect the result
<?xml-stylesheet type="text/xsl" href="bills.xsl"?><Bills></Bills>
But XOM gives me
<?xml-stylesheet type="text/xsl" href="bills.xsl"?>
<Bills></Bills>
That is, it retains the newline after the processing instruction.
The specification (https://www.w3.org/TR/xml-c14n11/#DataModel) says
Whitespace outside of the root document element MUST be discarded.
Is this a bug?
Michael Kay
Saxonica
-
[XOM-interest] XOM Canonicalization: whitespace outside document element,
Michael Kay, 04/10/2018
- Re: [XOM-interest] XOM Canonicalization: whitespace outside document element, Michael Kay, 04/10/2018
Archive powered by MHonArc 2.6.24.