PCDATA
Norbert Mikula
nmikula at edu.uni-klu.ac.at
Wed May 7 16:22:22 BST 1997
On Wed, 7 May 1997, 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>
I was running NXP with :
<?XML VERSION="1.0"?>
<!DOCTYPE CML>
<CML>
<XVAR>
A variable
</XVAR>
</CML>
and the result was :
<CML>
"
"
<XVAR>
"
A variable
"
</XVAR>
"
"
</CML>
(\n is passed along to the application since the parser
dosn't know what else to do with it.)
I also used the example with a simple DTD :
<?XML VERSION="1.0"?>
<!DOCTYPE CML [
<!ELEMENT CML (XVAR)*>
<!ELEMENT XVAR (#PCDATA)>
]>
<CML>
<XVAR>
A variable
</XVAR>
</CML>
and the result was :
<CML>
<XVAR>
"
A variable
"
</XVAR>
</CML>
-> the whitespace inside CML was recognized to be markup
only.
Best regards,
Norbert H. Mikula
=====================================================
= SGML, XML, DSSSL, Intra- & Internet, AI, Java
=====================================================
= mailto:nmikula at edu.uni-klu.ac.at
= http://www.edu.uni-klu.ac.at/~nmikula
=====================================================
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