From: Ralph Hartley (hartley_at_aic.nrl.navy.mil)
Date: Fri Feb 09 2001 - 14:58:11 CET
Received: (from mdom_at_localhost) by karto.ethz.ch (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id OAA06204 for cavexml-outgoing; Fri, 9 Feb 2001 14:54:32 +0100 Received: from sun0.aic.nrl.navy.mil (sun0.aic.nrl.navy.mil [132.250.84.10]) by karto.ethz.ch (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id OAA06200 for <cavexml_at_cartography.ch>; Fri, 9 Feb 2001 14:54:26 +0100 Received: from aic.nrl.navy.mil (pc31.aic.nrl.navy.mil [132.250.84.181]) by sun0.aic.nrl.navy.mil (8.9.3+Sun/8.9.3) with ESMTP id IAA22239 for <cavexml_at_cartography.ch>; Fri, 9 Feb 2001 08:55:05 -0500 (EST) Message-ID: <3A83F773.8030104@aic.nrl.navy.mil> Date: Fri, 09 Feb 2001 08:58:11 -0500 From: Ralph Hartley <hartley_at_aic.nrl.navy.mil> User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i686; en-US; m18) Gecko/20010124 X-Accept-Language: en To: cavexml_at_cartography.ch Subject: Re: defaulting units for measurements References: <20010208231656.TBRY24947.t21mta03-app.talk21.com_at_t21mtaV-lrs> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-cavexml_at_karto.baug.ethz.ch Precedence: bulk Reply-To: cavexml_at_cartography.ch
martinl_at_talk21.com wrote:
>> On Thu, 8 Feb 2001, Ralph Hartley wrote:
>>
>> <property from=<station name="1"\> > <!-- Syntax for an element as value of a field? --!>
>> <property to=<station name="2"\> >
>>
>> Excuse me? The above aren't even wellformed XML.
>>
>> I'm having trouble telling what was actually intended...
>
>
> How about:
> <property from_station="1"/>
> <property to_station="2"/>
OK, but with ">" not "/>". There is a </property>.
> or
> <property name="from"><station name="1"/></property >
> <property name="to"><station name="2"/></property >
That doesn't work. The whole idea of the property element was to provide
default attributes for whatever it encloses.
> <property from_station="1" to_station="2"/>
Almost ok (without the "/"), it would be legal, but in my example the
from and to ended at different places. The "left" measurement needs the
"to_station" but an "up" measurement doesn't (but would ignore it so it
wouldn't really matter even in my example).
> Maybe we all need to study a few XML references - the basic rules are pretty easy
Pure laziness I'm afraid (also real work sometimes interferes).
Ralph
This archive was generated by hypermail 2b30 : Thu Mar 01 2001 - 18:00:00 CET