1

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.

Jindřich Mynarz
  • 1,563
  • 1
  • 16
  • 31

1 Answers1

1

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.

Michael Kay
  • 156,231
  • 11
  • 92
  • 164