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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Well-established uses of processing instructions?

[ Lists Home | Date Index | Thread Index ]

Vladimir Gapeyev wrote:
 > On Sun, 8 May 2005, Bill Humphries wrote:
 >
 >>Wouldn't <?php ... ?> be the most widely deployed?
 >
 > Would it be fair to say that this one is a neat hack rather than a "true"
 > use of PI?

No. As long as the PIs have identifiers and appear in well-formed 
documents, they're no more hacks than any others.

 > For a PHP processor, <?...?> would be as good as any other
 > quoting delimiter, e.g. <%...%>, but the former makes it possible to use
 > PHP-ignorant XML editors to write PHP scripts.  The PHP processor itself
 > does not care whether text outside <?...?> is XML (correct me if this is
 > wrong!),

You're right. But other processors of PHP documents may.

 > and <?...?>-peppered text is not intended for processing by
 > anything but a PHP engine (and, well, those editors).

A PI intended for only one application is still a PI.

Bob Foster





 

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

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