Re: ixml must produce well-formed XML

On 03/03/2025 08:46, Norm Tovey-Walsh wrote:
> Hello,
>
> I think this is additional fodder for our discussion of “serialization”.
>
> I wonder if we should allow an ixml processor to produce a single text node as a result? According to a recent bug report[1], both ixampl and xmq fail to detect that this grammar violates D01 and D06:
>
> -number = -~[N]*, [N]+, ending.
> -ending = | -~[N], -~[]*.
>
> Input: abc123yyy

jωiXML <https://github.com/johnlumley/jwiXML> produces an error, as the 
spec requires:

<ixml xmlns:ixml="http://invisiblexml.org/NS" ixml:state="failed" ixml:error-code="D06">
A text node may not be the final parse result: '1'</ixml>

-- 
*John Lumley* MA PhD CEng FIEE
john@saxonica.com

Received on Tuesday, 4 March 2025 13:58:15 UTC