Jindřich Mynarz
Jindřich Mynarz

Reputation: 1613

Serialize to canonical XML with Saxon

Is it possible to configure Saxon's Serializer to produce canonical XML?

I found that by default it can produce markup that is not in line with the canonical XML; e.g., self-closing element tags. I checked the available serialization properties, but I haven't found any that seem relevant to canonicalization.

Upvotes: 1

Views: 209

Answers (1)

Michael Kay
Michael Kay

Reputation: 163488

This feature will be present in Saxon 9.9 (via the Serialization extension property saxon:canonical="yes") but I'm afraid you'll have to wait for it. In the meantime you have to put the output through a separate canonicalizer.

Upvotes: 1

Related Questions