[CREATE] assets library

Tor Lillqvist tml at iki.fi
Wed Sep 26 00:49:39 PDT 2007


> > <space name="RGB">
> >   <color name="blue"><r>0.0</r><g>0.0</g><b>1.0</b></color>
> > </space>
> >
> > It might look verborragic..but then...why go XML anyway?

I am not an XML expert either, but isn't the above in principle wrong?
If the colour space name is the value of an attribute, that then means
that the format in principle should work for any random colour space.
Then how can there be elements (which after all should be predefined
in some DTD or whatever) called r, g and b? Wouldn't a more correct
form be (even more verbose) like:

<space name="RGB">
  <color name="blue">
    <component name="R" value="0" />
    <component name="G" value="0" />
    <component name="B" value="1" />
  <color>
</space>

or a bit less verbose:

<space name="RGB">
  <color name="blue">0 0 1</color>
</space>

--tml


More information about the CREATE mailing list