QNames as attribute values in RNC

This should cover W3C XML Schema, Relax NG and DTD related problems.
PaulHermans
Posts: 82
Location: Belgium

QNames as attribute values in RNC

Thu May 15, 2008 11:21 am

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

Re: QNames as attribute values in RNC

Mon May 19, 2008 3:36 pm

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
Location: Belgium

Re: QNames as attribute values in RNC

Thu Jul 24, 2008 10:11 am

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

Re: QNames as attribute values in RNC

Tue Aug 26, 2008 5:29 pm

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
Location: Belgium

Re: QNames as attribute values in RNC

Tue Aug 26, 2008 6:48 pm

Great,


Thanks.
Paul
PaulHermans
Posts: 82
Location: Belgium

Re: QNames as attribute values in RNC

Sun May 03, 2009 4:55 pm

George,

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


Regards,


Paul
Paul
george
Site Admin
Posts: 2100

Re: QNames as attribute values in RNC

Mon May 04, 2009 8:57 pm

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

Re: QNames as attribute values in RNC

Mon May 04, 2009 8:58 pm

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

Re: QNames as attribute values in RNC

Mon May 04, 2009 9:01 pm

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
Location: Belgium

Re: QNames as attribute values in RNC

Tue May 05, 2009 2:37 pm

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
Location: Belgium

Re: QNames as attribute values in RNC

Fri May 08, 2009 8:50 am

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

Regards,


Paul
Paul
george
Site Admin
Posts: 2100

Re: QNames as attribute values in RNC

Fri May 08, 2009 12:25 pm

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

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 1 guest