Next in thread → Next in month →

Re: [xml-dev] Don’t create elements with simple content and attributes

From
Rick Jelliffe <>
To
John Cowan <>, xml-dev <>
Date
2018-10-03T00:24:03Z
ID
<>
Thread
Re: [xml-dev] Don’t create elements with simple content and attributes
1. Element name (lifting)

<CostInEuro>234</CostInEuro>

2. Attribute

<Cost currency="Euro">234</Cost>

3. Attribute reference  

<Cost currency="xyz">234</Cost>
...
<Currency id="xyz">Euro</Currency>

4. Container

<Cost
<Amount>234</Amount>
<Currency>Euro</Currency>
</Cost>

Regards
Rick

On Wed, 3 Oct. 2018, 00:18 John Cowan, <[email protected]> wrote:


On Mon, Oct 1, 2018 at 11:01 PM Rick Jelliffe <[email protected]> wrote:

What is the pattern? XNL syntax provides four levels of differentiation: element names, attributes, reference attributes and container names.

Can you elaborate on the last two?  (Also, I assume XNL is a typo for XML.)

--
John Cowan          http://vrici.lojban.org/~cowan        [email protected]
"Make a case, man; you're full of naked assertions, just like Nietzsche."
"Oh, i suffer from that, too.  But you know, naked assertions or GTFO."
                        --heard on #scheme, sorta
Next in thread → Next in month →