Input list for xs:keyref

Are you missing a feature? Request its implementation here.
Uli
Posts: 11
Joined: Wed Jan 30, 2008 5:50 pm

Input list for xs:keyref

Post by Uli »

Hello,

Oxygen should provide an input list for fields
which are referenced via xs:keyref.
With ID and IDREF it works.

Additionally, Oxygen should jump to the error field and not
only behind the document on an Keyref validation error.
See picture.
Image

Regards, Uli
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Input list for xs:keyref

Post by sorin_ristache »

Hello,
Uli wrote:Oxygen should provide an input list for fields which are referenced via xs:keyref. With ID and IDREF it works.
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 jump to the error field and not only behind the document on an Keyref validation error. See picture.
Image
The error is not clear from the screenshot. Can you point more exactly to the schema fragment and the XML fragment of the error?


Regards,
Sorin
Uli
Posts: 11
Joined: Wed Jan 30, 2008 5:50 pm

Re: Input list for xs:keyref

Post by Uli »

sorin wrote:
Uli wrote:Oxygen should provide an input list for fields which are referenced via xs:keyref. With ID and IDREF it works.
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?
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.
sorin wrote:
Uli wrote:Oxygen should jump to the error field and not only behind the document on an Keyref validation error. See picture.
Image
The error is not clear from the screenshot. Can you point more exactly to the schema fragment and the XML fragment of the error?
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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Input list for xs:keyref

Post by sorin_ristache »

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.
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: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.
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.


Regards,
Sorin
Post Reply