[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML QuotedCData question

  • From: "Norbert H. Mikula" <nmikula@e...>
  • To: lee@s...
  • Date: Mon, 10 Mar 1997 15:12:16 -0800

Re: XML QuotedCData question
lee@s... wrote:
> Most programming languages talk explicitly about tokenisation,
> or tokenization if you prefer :-), and in doing so explain how
> the sequence of tokens that a compiler (say) sees is derived from
> an input stream.  Usually, comments are stripped at this stage,
> and in languages such as C or SGML that have (in effect) macros,
> the macros are expanded at input time.

I don't think that C and SGML/XML use or rather can use the 
same principle of includes/macros.

C uses a pre-processor that resolves includes. Then the actual
compiler gets started without having to worry about includes
anymore. (To my understanding of things..)

For practical reasons, at least for XML processors for online
browsers, I think, we don't want to first do the include and then do 
the parsing, keeping all that stuff in memory while we do so.

Furthermore I see problems arise if we have the following scenario :

<!ENTITY %UnixSpecifics SYSTEM "http....">
<!ENTITY %DosSpecifics SYSTEM "http....">

<!ENTITY % Unix 'INCLUDE'>
<!ENTITY % Dos 'IGNORE'>

<![%Dos;[
%DosSpecifics;
]>
<![%Unix;[
%UnixSpecifics;
]>

Too much to do for a pre-processor, I guess, it can, or 
at least should, include the appropriate external 
entity only after it has parsed and resolved the content 
of %Dos and %Unix.

I am not sure whether I have addressed what you had in mind,
but I do believe that XML is too smart for a pre-processor,
thus we need other ways to look at PE resolving.

-- 
Best regards,
Norbert H. Mikula

=====================================================
= SGML, DSSSL, Intra- & Internet, AI, Java 
=====================================================
= mailto:nmikula@e... 
= 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@i... the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.