On 1 Aug 2003, Cyrille Chepelov wrote:
> Le Fri, Aug 01, 2003, à 01:44:47AM -0500, Lars Clausen a écrit:
>> On 1 Aug 2003, Krzysztof Foltman wrote:
>>> Alan Horkan wrote:
>>>
>>>> True False
>>>>
>>> Or <point x="3" y="2" directions="north,south,west">
>>>
>>> (overriding _whole_ default set of directions for that point)
>>
>> I'd like to do that, except it's a bad idea to have XML attributes that
>> themselves have structure to them.  Then we'll need an extra little
>> parser for the attribute, which defeats the purpose of XML.
>
> then how about:
>       <point x="3" y="2">
>               <north/>
>               <south/>
>               <west/>
>       </point>
>
> and priorities become a matter of adding <north priority="2"/> should
> that become important.

That's actually fairly compact.  For some reason I always try to put data
into attributes -- this looks much better.

-Lars

-- 
Lars Clausen (http://shasta.cs.uiuc.edu/~lrclause)| Hårdgrim of Numenor
"I do not agree with a word that you say, but I   |----------------------------
will defend to the death your right to say it."   | Where are we going, and
    --Evelyn Beatrice Hall paraphrasing Voltaire  | what's with the handbasket?
_______________________________________________
Dia-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://www.lysator.liu.se/~alla/dia/faq.html
Main page at http://www.lysator.liu.se/~alla/dia

Reply via email to