[
Lists Home |
Date Index |
Thread Index
]
<length length-uom="mm">200</length>
It means I think that it is redundant,
But that is relative to several issues.
The question is, how much validation do
you need by structure from the parser? The GI
tells you it is a length. Does your
app need to know it? If so, then sure,
different attributes work just fine.
There are several alternatives and one
is to pack the information into the
att name (a morph solution) as you have done.
What kind of schema do you want to use
and how do you want to express constraints?
len
-----Original Message-----
From: Krakow Patrice [mailto:Patrice.Krakow@SCA.com]
Hello,
Yes, imagine something like
<length length-uom="mm">200</length>
Did you reply that you prefer
<length uom="...">
<weight uom="...">
?
If yes, it means that you do not care to a "length" measured in "kg"?
-----Original Message-----
From: Krakow Patrice [mailto:Patrice.Krakow@SCA.com]
What do you prefer?
<length length-uom="...">
<weight weight-uom="...">
where length-uom=m|mm and weight-uom=kg|g
|