Re: PCDATA

Geir Ove Gronmo (geirog@falch.no)
ed, 7 May 1997 09:14:33 +0100


At 02:13 07.05.97 +0100, Tim Bray wrote:
>At 01:21 AM 5/7/97 GMT, Peter Murray-Rust wrote:
>>How many PCDATA elements would be expected in the file?
><?XML VERSION=3D"1.0"?>
><!DOCTYPE CML>
><CML>
><XVAR>
>This is a variable
></XVAR>
></CML>
>
>Let's flatten that. Clearly there can't be any PCDATA before <CML>, s=
o:
>
><CML>\n<XVAR>\nThis is a variable\n</XVAR>\n</CML>
> 11 2222222222222222222222 33
>
>Three pieces of PCDATA.=20

Should this also be true if the XML-SPACE attribute is set to DEFAULT f=
or
the CML element?

What would be the result of the following cases? Should there also be t=
hree
pieces of PCDATA, since PCDATA can be an empty string? ([16]=A0PCData::=
=3D [^<&]*)

<CML><XVAR>\nThis is a variable\n</XVAR></CML>

And what about this one:

<CML><XVAR></XVAR></CML>

This is probably some pretty stupid questions, but ... :')

</Gr0ve>

------------------ Geir Ove Gr=F8nmo ------------------
Falch Infotek as, Stanseveien 21, 0902 Oslo, Norway
Phone: +47 22 90 27 36 Fax: +47 22 90 25 99
[grove@falch.no | http://www.falch.no/people/geirog]
-------------------------------------------------------

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo@ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@ic.ac.uk)