Input list for xs:keyref
Posted: Wed Feb 13, 2008 3:33 pm
The list displayed for the attribute refer of a xs:keyref element displays the values of the attribute name of xs:key elements that are already defined in the XML Schema. Do you talk about other input list?Uli wrote:Oxygen should provide an input list for fields which are referenced via xs:keyref. With ID and IDREF it works.
The error is not clear from the screenshot. Can you point more exactly to the schema fragment and the XML fragment of the error?
Yes, i talk about the list which should provided in the XML File.sorin wrote:The list displayed for the attribute refer of a xs:keyref element displays the values of the attribute name of xs:key elements that are already defined in the XML Schema. Do you talk about other input list?Uli wrote:Oxygen should provide an input list for fields which are referenced via xs:keyref. With ID and IDREF it works.
If i have a key/keyref pair the keyrefs in the xml file are checked against the keys. If i have inserted a value in the keyref field which is not defined as key, the decribed error occurs. Thats ok. But now Oxygen shouls jump to the wrong keyref field.
Thank you for the details. The values of the fields defined as components of an xs:key are not listed in the content completion window for fields defined as components of an xs:keyref. We will consider implementing that in a future version.Uli wrote:Yes, i talk about the list which should provided in the XML File.
This list should contain all values which are inputted in the xs:key defined fields.
If the field of the keyref specifies an XML element I see that the location of the error is the end tag of the XML element with the error which is an ancestor of the XML element specified in the keyref. If I use xs:ID and xs:IDREF instead of xs:key and xs:keyref the location of the error is exact. It points to the field defined as xs:IDREF that does not contain an xs:ID value. We will try to report a more exact location for xs:key/xs:keyref too.Uli wrote:If i have a key/keyref pair the keyrefs in the xml file are checked against the keys. If i have inserted a value in the keyref field which is not defined as key, the decribed error occurs. Thats ok. But now Oxygen shouls jump to the wrong keyref field.