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

Re: Re: Where does the "nothing left but toolkits" myth come f


where does pi come from
On Sun, 6 Feb 2005 19:56:22 -0600, Kenneth Stephen
<marvin.the.paranoid@g...> wrote:

> 

> 
>    I dont understand how PI's can reduce
> portability. It seems to me that PI's are intended to achieve the
> opposite effect : if additional knowledge (than is visible to a basic
> XML processor) is visible to an XML application specific processor,
> then the PI serves as a signal to activate the application level
> processor. This doesnt change any the semantics of the data w.r.t.
> non-application specific data.

There are a couple of potential interop problems that PI's can open. 
One is that applications can ignore PI's that they don't understand
(*processors* have to pass them on to an app, but apps may not round
trip them).  Or at least this was true in SGML days; apps tended to
step on each others' PIs.

I don't remember specifically why they were forbidden in SOAP, but I
think it was to avoid the possibility of "secret handshakes" between a
service requester and provider that aren't described by the
schema/WSDL contract.  One big use of PIs (again in SGML days, I
haven't touched them for some time!) was for an app to communicate
with itself or its partners some information that coudn't be put in
elements or attributes without violating the schema. That's convenient
for everyone, and not a problem if it is just describing some  bit
application state that is irrelevant in the greater scheme of things,
but in Web services that could be mis-used in a way that inhibits
interop.  For example, if a service implemented a formal service
contract but didn't understand a PI that the client used to specify
something important, it would not respond the same way as another
implementation of the same service contract did.  SOAP nipped that
scenario in the bud by forbidding PIs altogether.

So, properly used a PI does not change the data semantics, but as with
everything else, XML Doesn't Care. and PIs give people rope with when
they have cheerfully hanged themselves.  Of course, they also provide
plenty of rope to tie up loose ends, e.g. letting an instance offer
hints about what stylesheet to use to display it.

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.