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

Re: Processing instructions (was XSchema: Sections 5.0 and 5.1)

  • From: Paul Prescod <papresco@t...>
  • To: xml-dev@i...
  • Date: Fri, 25 Sep 1998 08:58:10 -0500

Re: Processing instructions (was XSchema: Sections 5.0 and 5.1)
Michael Kay wrote:
> 
> That gives me the opportunity to ask a question that's been
> bugging me for a while.
> 
> I'm designing a document type. Is there any circumstance
> when you would advise me to use a Processing Instruction
> rather than an empty element with attributes? I can't think
> of one myself, but I'm sure the XML designers must have had
> something in mind.

Processing instructions are more for the use of people who are NOT
document type designers. Let's say your XML-smart HTTP server has a
replacement function for doing server-side variable includes (e.g. time,
date, last modified). Obviously that function cannot be tied to any
particular document type, because they can't force one document type on
all of their users. So they could specify it as a processing instruction
instead. The PI is "invisible" to DTD validation and thus doesn't
interfere with the doctype.

That was why namespaces originally used processing instructions. They
weren't supposed to interfere with document types (beyond the problems
with the prefixes, etc.). That's also why XML's own declarations are often
processing instructions.

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

How many of the Congresspeople who voted for the CDA do you suppose
also voted to release the report that reads like a borderline por-
nographic dime-store romance written by a Texas preacher's son?
	- Keith Dawson, TBTF 
		http://www.tbtf.com/archive/09-14-98.html
		http://www.tbtf.com/resource/hypocrites.html

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto: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.