Re: Control characters in serialisation

Steven Pemberton <steven.pemberton@cwi.nl> writes:
> Following on from Norm's mail about Encoding NL, Line separator etc
> (which readers of this mailing list may not have seen since it is a
> Git issue).
>
> What do we expect from this ixml?
>
> 	data: @attr.
> 	attr: +#a.

I expect

<data attr="&#xA;"/>

because an XML parser will normalize an unescaped #a into a space.

> And in general from any control characters in attributes.
> And what if anything should we say in the spec?

I suggest that we point to the XQuery and XSLT Serialization
Recommendation provides a lot of detail about how to serialize XML.

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh
Saxonica

Received on Tuesday, 9 May 2023 13:13:19 UTC