Serialization

There has been a change to the mechanism whereby a ContentHandler that is nominated to handle the result tree can indicate that it is prepared to handle output that is well-balanced, but not well-formed (for example, if it contains more than one element node as a child of the document root). A new attribute saxon:require-well-formed is available on xsl:output, with values "yes" or "no". The default is "no". If the value is set to "yes", and a user-written ContentHandler is supplied to receive the results of the transformation, then Saxon will report an error rather than sending a non-well-formed stream of SAX events to the ContentHandler. {saxon72, error231}

The XML output method now outputs a tab character appearing in an attribute value as 	, to prevent it being normalized when the document is re-parsed.{type035}