Re: > in attribute values; decimal character reference

On Wed, Sep 5, 2012 at 8:23 AM, Daniel Sullivan <dsullivan@danal.com> wrote:

> Right, and you have the option of contorting things so you can use > there
> too.
>

True, but you have the gotcha of accidentally introducing a ]]> when
comparing a nested array. ;)

More seriously, escaping is always a pain, and it always bites someone, but
it's also inevitable in most languages.  With the added constraint of XML
compatibility, I think the full symmetry of banning < and > throughout is
best.  This will inconvenience people, but so will other aspects of
anything derived from XML.  I think simplicity of the rules is a worth
trade-off.

--Uche



> -----Original Message-----
> From: David Carlisle [mailto:davidc@nag.co.uk]
> Sent: Wednesday, September 05, 2012 10:22 AM
> To: Daniel Sullivan
> Cc: public-microxml@w3.org
> Subject: Re: > in attribute values; decimal character reference
>
> On 05/09/2012 14:23, Daniel Sullivan wrote:
> > <box test="length&gt;1"/>
>
> yes but in xml you get the same issues in element content
>
> <script>
>     length > 1
> </script>
>
> is OK but
>
>
> <script>
>     length < 1
> </script>
>
> is not.  In micro-xml the current proposal is not to allow the element
> form, so the question is whether it is less confusing to not allow the
> attribute form either,
>
> David
>
> ________________________________________________________________________
> The Numerical Algorithms Group Ltd is a company registered in England and
> Wales with company number 1249803. The registered office is:
> Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
>
> This e-mail has been scanned for all viruses by Star. The service is
> powered by MessageLabs.
> ________________________________________________________________________
>
>


-- 
Uche Ogbuji                       http://uche.ogbuji.net
Founding Partner, Zepheira        http://zepheira.com
http://wearekin.org
http://www.thenervousbreakdown.com/author/uogbuji/
http://copia.ogbuji.net
http://www.linkedin.com/in/ucheogbuji
http://twitter.com/uogbuji

Received on Wednesday, 5 September 2012 15:23:04 UTC