PCDATA

Geir Ove Gronmo geirog at falch.no
Wed May 7 10:14:27 BST 1997


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="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>, so:
>
><CML>\n<XVAR>\nThis is a variable\n</XVAR>\n</CML>
>     11      2222222222222222222222       33
>
>Three pieces of PCDATA. 

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

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

<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ønmo  ------------------
  Falch Infotek as, Stanseveien 21, 0902 Oslo, Norway
      Phone: +47 22 90 27 36 Fax: +47 22 90 25 99
 [grove at 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 at ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa at ic.ac.uk)




More information about the Xml-dev mailing list