Hi Eike,
On Fri, 2007-06-15 at 17:49 +0200, Eike Rathke wrote:
> Hi Kohei,
>
> On Wednesday, 2007-06-13 14:58:08 -0400, Kohei Yoshida wrote:
>
> >
> >
> > How should we interpret this? Is the leading whitespace significant in
> > this case, or not?
>
> It is, see ODF section 1.6 "White-Space Processing and EOL Handling".
Yes. When the above input is given, technically we should parse it as
0xA 0x20 0x20 0x20 0x20 0x20 0x20 Jown Doe
But my point was that the producer of that input probably may not have
intended to include those 0xA and 0x20's. This case may arise
especially when the XML input is hand-written or pre-processed by a XML
beautifier.
>
> > There is also a line break right after the opening
> > element. Should we take it, or not?
>
> Again yes. There would also be a line break before the closing element.
>
> > If we use an attribute for this, however, things are a little less
> > complicated, because (as I understand it) line breaks are not allowed in
> > an attribute, and if there is a leading and trailing whitespace in the
> > value, it is more explicit. For instance, given the following:
> >
> >