QNames as attribute values in RNC
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- 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
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
whatever attribute value has been chosen Oxygen 9.2 offers the full value list ("a", "b", "c", "d", "e", "f").
Paul
If I have
Code: Select all
element creator {
(attribute scheme {"overheid:A"},
("a" |
"b" |
"c" ))
|
(attribute scheme {"overheid:B"},
("d" |
"e" |
"f" ))
}
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" ))
}
Paul
Paul
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: QNames as attribute values in RNC
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
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
-
- 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
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
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: QNames as attribute values in RNC
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
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
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
-
- 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
I still have problems with this in the latest version 10.2.
Regards,
Paul
Paul
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: QNames as attribute values in RNC
Hi Paul,
Make sure the namespace is defined, I just tested with the following samples and it worked ok:
Best Regards,
George
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=""/>
George
George Cristian Bina
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: QNames as attribute values in RNC
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
Best Regards,
George
George Cristian Bina
-
- 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.
I'll try to figure out what's different and come back later.
Paul
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: QNames as attribute values in RNC
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
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
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service