QNames as attribute values in RNC

This should cover W3C XML Schema, Relax NG and DTD related problems.
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

QNames as attribute values in RNC

Post 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
Paul
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: QNames as attribute values in RNC

Post 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
George Cristian Bina
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: QNames as attribute values in RNC

Post 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
Paul
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: QNames as attribute values in RNC

Post 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
George Cristian Bina
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: QNames as attribute values in RNC

Post by PaulHermans »

Great,


Thanks.
Paul
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: QNames as attribute values in RNC

Post by PaulHermans »

George,

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


Regards,


Paul
Paul
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: QNames as attribute values in RNC

Post 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
George Cristian Bina
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: QNames as attribute values in RNC

Post by george »

Sorry, disregard the message above, I need to take another look at this and I will get back.

Regards,
George
George Cristian Bina
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: QNames as attribute values in RNC

Post 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
George Cristian Bina
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: QNames as attribute values in RNC

Post 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.
Paul
PaulHermans
Posts: 82
Joined: Sat Jan 13, 2007 5:39 pm
Location: Belgium

Re: QNames as attribute values in RNC

Post by PaulHermans »

Follow-up has been sent to support@oxygenxml.com.

Regards,


Paul
Paul
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: QNames as attribute values in RNC

Post 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
George Cristian Bina
Post Reply