OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: PCDATA

[ Lists Home | Date Index | Thread Index ]
  • From: Norbert Mikula <nmikula@edu.uni-klu.ac.at>
  • To: Peter Murray-Rust <Peter@ursus.demon.co.uk>
  • Date: Wed, 7 May 1997 16:20:42 +0200 (MET DST)

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@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@ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@ic.ac.uk)


  • References:
    • Re: PCDATA
      • From: Peter@ursus.demon.co.uk (Peter Murray-Rust)



 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS