Ok, cool, so as long as we don't do something stupid like add <?php= then
we are XML-clean.  Well, in the language anyway.  People could still write
<?php echo "?>"?> I suppose.

-Rasmus

On Fri, 26 Apr 2002 [EMAIL PROTECTED] wrote:

> From: http://www.w3.org/TR/2000/REC-xml-20001006#sec-pi
>
> [16]  PI       ::=    '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>'
> [17]  PITarget ::=    Name - (('X' | 'x') ('M' | 'm') ('L' | 'l'))
>
>  [3]  S        ::=    (#x20 | #x9 | #xD | #xA)+
>  [2]  Char     ::=    #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | 
>[#x10000-#x10FFFF]
>
> Meaning that between <?php and ?> everytning is allowed but '?>'.
>
> Derick
>
> On Fri, 26 Apr 2002, J Smith wrote:
>
> > Are you positive about that? I would have assumed so, too, but it passes
> > both the Sablotron and Xerces XML processors without so much as a warning.
> >
> > J
> >
> >
> > Rasmus Lerdorf wrote:
> >
> > >> <?php if ($foo > $bar)
> > >> ...
> > >> ?>
> > >>
> > >> Is this valid XML?
> > >
> > > No, this is technically invalid XML.  You would have to write it as:
> > >
> > >   <?php if ($foo &gt; $bar)
> > >
> > > But sheez... That's just way too ugly, you can work around it and there
> > > are other examples out there of people breaking this rule. Doing <?php= is
> > > a much more flagrant violation in my opinion.
> > >
> > > -Rasmus
> >
> >
> > --
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
> -----------------------------------------------------------------------
>                  Did I help you? Consider a gift:
>       http://www.amazon.co.uk/exec/obidos/registry/SLCB276UZU8B
> -----------------------------------------------------------------------
>               PHP: Scripting the Web - [EMAIL PROTECTED]
>                 All your branches are belong to me!
>             SRM: Script Running Machine - www.vl-srm.net
> -----------------------------------------------------------------------
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to