Have just checked the XML spec - and tags can't start with a number as
a character, so unfortunately erix's version won't work.

Also, just thinking it through - tags which vary their names (i.e. we
don't know whether the first child of <matrix> would be <1> or <2> or
<99>, or whether any given element <1> would have children or not)
make it harder for the XSL transform and also for creating a
validating schema (if you wanted to do so).

Sorry, Erix, didn't want to pick on you! Just trying to put words on
why I was uncomfortable with your version... :-)

Cheers,
  Ian

On 6/8/06, Ian Thomas <[EMAIL PROTECTED]> wrote:
> <matrix>
>  <row values="1,2,3,4"/>
>  <row values="4,2,5,4"/>
>  <row values="1,1,3,9"/>
>  <row values="9,2,3,1"/>
> </matrix>
>
> (I'm afraid I don't like erix's use of numbers as tag names - in fact,
> I'm not convinced it's legal XML...)
>
> or possibly just a string of numbers:
> <matrix>
> 1,2,3,4,
> 4,2,5,4,
> 1,1,3,9,
> 9,2,3,1
> </matrix>
> ... and leave it up to the coder how to format it - but I think this
> version is too error-prone (very easy to miss off a comma, for
> example).
>
> Cheers,
>   Ian

_______________________________________________
swfmill mailing list
swfmill@osflash.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Reply via email to