form controls using attribute @xml:id
-
- Posts: 16
- Joined: Sat Jul 28, 2012 11:41 am
form controls using attribute @xml:id
Hi
I want to display an attribute @xml:id in a form control.
How should I deal with the xml namespace ?
My css code :
element {
oxy_combobox(edit, "@xml:id", columns, 20);
}
it displays an empty combobox...
Thanks for the help !
Best
Emmanuelle
I want to display an attribute @xml:id in a form control.
How should I deal with the xml namespace ?
My css code :
element {
oxy_combobox(edit, "@xml:id", columns, 20);
}
it displays an empty combobox...
Thanks for the help !
Best
Emmanuelle
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: form controls using attribute @xml:id
Post by alex_jitianu »
Hello,
First of all it's important to know what Oxygen version are you using? Prior to version 15.2, property edit was not viewed as a qualified name. If the attribute has a namespace, you had to give the name or QName of the attribute just like it appeared in the XML instance. In order for the CSS snippet you provided to work, the XML had to be :. If you are using a different prefix for the attribute in the XML document, it wont work. Can you please verify if this is the situation you are facing?
Starting with version 15.2 the value of property edit is treated as a QName and it is resolved using the namespace context from the CSS. So you must have a namespace declaration for prefix xml:
I've tested in a TEI P5 document both with Oxygen versions 14.2 and 16.0. The attribute was edited as expected in both cases (with the aforementioned details/restrictions). Perhaps you can send us some sample files on our support list so that we can reproduce the issue.
Best regards,
Alex
First of all it's important to know what Oxygen version are you using? Prior to version 15.2, property edit was not viewed as a qualified name. If the attribute has a namespace, you had to give the name or QName of the attribute just like it appeared in the XML instance. In order for the CSS snippet you provided to work, the XML had to be :
Code: Select all
<element xml:id="id"/>
Starting with version 15.2 the value of property edit is treated as a QName and it is resolved using the namespace context from the CSS. So you must have a namespace declaration for prefix xml:
Code: Select all
@namespace xml "http://www.w3.org/XML/1998/namespace";
element {
oxy_combobox(edit, "@xml:id", columns, 20);
}
Best regards,
Alex
-
- Posts: 16
- Joined: Sat Jul 28, 2012 11:41 am
Re: form controls using attribute @xml:id
Hi
I'm using Oxygen editor 16. Works fine with the namespace context from the CSS (that's what was missing in my files). Do you still want me to send test files ?
thanks a lot
Best
emmanuelle
I'm using Oxygen editor 16. Works fine with the namespace context from the CSS (that's what was missing in my files). Do you still want me to send test files ?
thanks a lot
Best
emmanuelle
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: form controls using attribute @xml:id
Post by alex_jitianu »
Hello,
I don't think the sample files are necessary anymore. I was asking them in the event that none of suggestions helped...
Best regards,
Alex
I don't think the sample files are necessary anymore. I was asking them in the event that none of suggestions helped...
Best regards,
Alex
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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