Re: Control characters in serialisation

On Tuesday 09 May 2023 15:10:11 (+02:00), Norm Tovey-Walsh wrote:



> Steven Pemberton 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="
"/>
>

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



That's what I produce too, but John produces 


<data attr="&#10;"/>
So I guess it's worth discussing.


Steven


>

> > 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:31:19 UTC