Page 1 of 1

QNames as attribute values in RNC

Posted: Thu May 15, 2008 11:21 am
by PaulHermans
Dear,

If I have

Code: Select all


element creator {
(attribute scheme {"overheid:A"},
("a" |
"b" |
"c" ))
|
(attribute scheme {"overheid:B"},
("d" |
"e" |
"f" ))
}
Oxygen 9.2 acts as expected.
After choosing an attribute value for attribute scheme, I do get the correct list of allowed values.

If the datatype is changed to a QName

Code: Select all

element creator {
(attribute scheme {xsd:QName "overheid:A"},
("a" |
"b" |
"c" ))
|
(attribute scheme {xsd:QName "overheid:B"},
("d" |
"e" |
"f" ))
}
whatever attribute value has been chosen Oxygen 9.2 offers the full value list ("a", "b", "c", "d", "e", "f").


Paul

Re: QNames as attribute values in RNC

Posted: Mon May 19, 2008 3:36 pm
by george
Hi Paul,

Thanks for reporting this problem.
It looks like we do not get correctly the QName value when we derive the pattern to obtain the value proposals inside the element. I will record this and we will look to see what can be done.

Best Regards,
George

Re: QNames as attribute values in RNC

Posted: Thu Jul 24, 2008 10:11 am
by PaulHermans
Hi George,

Any news on this one yet?

I see that the behavior in 9.3 is still the same as in 9.2.


Regards,

Paul

Re: QNames as attribute values in RNC

Posted: Tue Aug 26, 2008 5:29 pm
by george
Hi Paul,

Sorry for the delay.
We identified the problem and fixed it in the current development stream. The issue was that we did not took into account the namespace declarations and these were important when we have QName values as the values were not correctly matched. The fix will be available in the next oXygen release.

Best Regards,
George

Re: QNames as attribute values in RNC

Posted: Tue Aug 26, 2008 6:48 pm
by PaulHermans
Great,


Thanks.

Re: QNames as attribute values in RNC

Posted: Sun May 03, 2009 4:55 pm
by PaulHermans
George,

I still have problems with this in the latest version 10.2.


Regards,


Paul

Re: QNames as attribute values in RNC

Posted: Mon May 04, 2009 8:57 pm
by george
Hi Paul,

Make sure the namespace is defined, I just tested with the following samples and it worked ok:

Code: Select all


namespace overheid = "http://www.example.com/test"
element creator {
(attribute scheme {xsd:QName "overheid:A"},
("a" |
"b" |
"c" ))
|
(attribute scheme {xsd:QName "overheid:B"},
("d" |
"e" |
"f" ))
}

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="test.rnc" type="compact"?>
<creator xmlns:overheid = "http://www.example.com/test" scheme=""/>
Best Regards,
George

Re: QNames as attribute values in RNC

Posted: Mon May 04, 2009 8:58 pm
by george
Sorry, disregard the message above, I need to take another look at this and I will get back.

Regards,
George

Re: QNames as attribute values in RNC

Posted: Mon May 04, 2009 9:01 pm
by george
Ok, I double tested with the above example and works ok. Please test with that and see if you encounter any issues. If you have problems with a different sample please post that or a reduced version of it that still shows the problem.

Best Regards,
George

Re: QNames as attribute values in RNC

Posted: Tue May 05, 2009 2:37 pm
by PaulHermans
Indeed, the small example works, but not my larger schema.
I'll try to figure out what's different and come back later.

Re: QNames as attribute values in RNC

Posted: Fri May 08, 2009 8:50 am
by PaulHermans
Follow-up has been sent to support@oxygenxml.com.

Regards,


Paul

Re: QNames as attribute values in RNC

Posted: Fri May 08, 2009 12:25 pm
by george
Thanks Paul,

I was not been able to reproduce a problem with those schemas (as I just replied to you). Maybe you can send over also a sample XML document and indicate where you see the problem with that?

Best Regards,
George