<xs:key> and <xs:keyref> support?
Posted: Thu Mar 24, 2005 9:48 pm
Hey,
I'm using <xs:key> and <xs:keyref> in my schema to link elements together. In my XML file, everything validates ok (ie: I get an error if keys aren't unique or if I reference a nonexistant key), but I thought oXygen was supposed to give me a list with possible values for a key reference, like it does with enumerations. Is this not supported? Did I miss a checkbox somewhere? I tried using the xs:ID and xs:IDREF datatypes before and had the same problem. Validates/errors properly, but no list in the editor.
As an aside, oXygen did provide the list when I was writing the schema. When I wrote the <xs:keyref> tag, it gave me a list of the <xs:key> tags I created.
-Kyle
I'm using <xs:key> and <xs:keyref> in my schema to link elements together. In my XML file, everything validates ok (ie: I get an error if keys aren't unique or if I reference a nonexistant key), but I thought oXygen was supposed to give me a list with possible values for a key reference, like it does with enumerations. Is this not supported? Did I miss a checkbox somewhere? I tried using the xs:ID and xs:IDREF datatypes before and had the same problem. Validates/errors properly, but no list in the editor.
As an aside, oXygen did provide the list when I was writing the schema. When I wrote the <xs:keyref> tag, it gave me a list of the <xs:key> tags I created.
-Kyle