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

Re: Using processing instructions as transaction semantics

  • From: Lars Marius Garshol <larsga@g...>
  • To: xml-dev@X...
  • Date: 19 May 2000 10:43:16 +0200

using processing instructions


* Chris Barney
| 
| What does the group think of using processing instructions as
| transaction semantics vs. using elements
 
Processing instructions sound like the wrong thing to me. They are
mainly for things that do not fit in any schema/DTD, but rather cut
across all schemas/DTDs. The xml-stylesheet PI is a typical example.
Another (although rather ugly) example might be the PI used by a
certain SGML editor to indicate where the cursor was.

The name processing instruction may have lead you astray here, since
it does not refer to transactions or anything like them. Instead,
processing instructions were originally intended to be used in SGML
documents (where all presentation had been stripped in favour of
structure) for those cases where presentational hints to the
formatting software were needed.

With time they have come to be used as a sort of generic ignorable
syntax extension, and that is what they should really be regarded as.
If you can use elements or attributes, don't use processing
instructions. 

| Does either approach have noticeable advantages/disadvantages?

PIs have the disadvantage that they live outside all schemas and DTDs,
which means that you cannot constrain their use except through the use
of BNF and prose.

--Lars M.


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.