[
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
|