← Prev in month ← Prev in thread
Next in thread → Next in month →

Typed keys

From
James Clark <>
Date
2001-04-30T03:28:02+00:00
ID
013801c0d125$31366f20$
Thread
Typed keys
If an ID/IDREF replacement mechanism, is it sufficient to consider keys to
be strings or do we need to give them a datatype that controls when they are
considered equal?

For example,

<doc>
<foo>
   <bar>1</bar>
   ...
</foo>
<foo>
  <bar>01</bar>
  ...
</foo>
</doc>

Suppose within doc, foo elements are uniquely identified by their bar
children.  Do we need to be able to say that bar is of type xsd:int and so
that the above example is an error, because "1" and "01" are the same
integer even though they are different strings?

James
← Prev in month ← Prev in thread
Next in thread → Next in month →