Re: Stations are primary

From: John Halleck (John.Halleck@utah.edu)
Date: Wed Mar 07 2001 - 18:16:01 CET


On Wed, 7 Mar 2001, Ralph Hartley wrote:

> [...]

> > On the other hand, element order must be preserved (from XML spec,
> > attributes maybe). If the 'from' and 'to' were removed you would
> > basically have the two line format.
> > <survey>
> > <station name="A1" ID="00001"/>
> > <shot>
> > <azi value="33.3"/>
> > <distance value="10.2"/>
> > <inclination value="-3.3"/>
> > </shot>
> > <station name="A2" ID="00002"/>
> > </survey>
>
>
> I don't like this, but I don't know that it violates any of my
> principles. The XML spec says nothing about the importance of ordering
> between elements of the same type.

  Excuse me?

  Any XML tool that shuffled the order of elements would distroy
  documents. Paragraph elements can't be reordered, as an example.
  It is not hard to come up with other examples.

> We could define it to be significant,
> assuming existing XML tools always preserve the order (Does anyone know
> if they do?). I would prefer to define CaveXML so that the order is NOT
> considered meaningful, only the nesting structure is.

  Well, that wrecks any documentation I put in.

> The problem is
> that different order are useful for different purposes, so I would like
> to be able to reorder them for the task at hand.
>
> > FWIW, you can bring this thread back to the list.
>
>
> OK
>
> Ralph Hartley
>
>
>



This archive was generated by hypermail 2b30 : Mon Apr 02 2001 - 18:00:00 CEST