Attribute completion does not show xsi:type
Are you missing a feature? Request its implementation here.
-
- Posts: 97
- Joined: Tue Apr 22, 2008 9:31 am
Attribute completion does not show xsi:type
I write the XML element and then use cntrl-space to bring up the attribute list, it does not show Schema-Instance attributes that were defined in the XML document element with xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance".
I would like this as a feature. There would be many ways of implementing it.
1. Have an option in the Preferences to add in the 'extra' attributes. (Not everyone will want to see them).
2. Press 'cntrl-space' a second time to bring up the extended list of attributes. Pressing 'Esc' cancels the attribute list (as normal).
3. At least on typing a namespace + colon, eg 'xsi:', allow the completion of the attributes in this namespace.
I would like this as a feature. There would be many ways of implementing it.
1. Have an option in the Preferences to add in the 'extra' attributes. (Not everyone will want to see them).
2. Press 'cntrl-space' a second time to bring up the extended list of attributes. Pressing 'Esc' cancels the attribute list (as normal).
3. At least on typing a namespace + colon, eg 'xsi:', allow the completion of the attributes in this namespace.
-
- Posts: 97
- Joined: Tue Apr 22, 2008 9:31 am
Re: Attribute completion does not show xsi:type
The first part of the XML document that I am editing is:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<Message xmlns="http://www.ibm.com/industries/ifw" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.ibm.com/industries/ifw ifw.xsd" version="1.1">
...
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Attribute completion does not show xsi:type
Post by sorin_ristache »
Hello,
Thank you for your request. We will consider adding an option in the Preferences for listing xsi:type as a possible attribute in a document validated against an XML Schema. The content completion window with the possible attribute values displayed after inserting this attribute in the XML document will have to list all the types defined in the XML Schema of the document.
Regards,
Sorin
Thank you for your request. We will consider adding an option in the Preferences for listing xsi:type as a possible attribute in a document validated against an XML Schema. The content completion window with the possible attribute values displayed after inserting this attribute in the XML document will have to list all the types defined in the XML Schema of the document.
Regards,
Sorin
-
- Posts: 26
- Joined: Wed Jun 26, 2013 1:08 am
Re: Attribute completion does not show xsi:type
Post by avanlooveren »
Has there been any progress on this? Ultimately, I would like a user in Author mode to be prompted with the allowable sub-types to select from when adding an element. Any advice is very welcome.
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Attribute completion does not show xsi:type
Hi,
This thread was mostly about showing xsi:type as an attribute in the Text editing mode.
For the Author editing mode you could probably use our Java-based API to add an AuthorDocumentFilter:
http://www.oxygenxml.com/InstData/Edito ... ilter.html
You would use the filter to detect cases in which the user has inserted an element and ask the user for the value of the xsi:type.
Have you already created Java-based customizations for your custom XML vocabulary?
You would need to create an ExtensionsBundle:
http://www.oxygenxml.com/doc/ug-oxygen/ ... undle.html
which has a method called:
http://www.oxygenxml.com/InstData/Edito ... ener%28%29
Such an extension state listener receives events when the XML is opened in the Author editing mode and can add the filter to the current document controller.
We can give you more details if you decide to follow this route.
Regards,
Radu
This thread was mostly about showing xsi:type as an attribute in the Text editing mode.
For the Author editing mode you could probably use our Java-based API to add an AuthorDocumentFilter:
http://www.oxygenxml.com/InstData/Edito ... ilter.html
You would use the filter to detect cases in which the user has inserted an element and ask the user for the value of the xsi:type.
Have you already created Java-based customizations for your custom XML vocabulary?
You would need to create an ExtensionsBundle:
http://www.oxygenxml.com/doc/ug-oxygen/ ... undle.html
which has a method called:
http://www.oxygenxml.com/InstData/Edito ... ener%28%29
Such an extension state listener receives events when the XML is opened in the Author editing mode and can add the filter to the current document controller.
We can give you more details if you decide to follow this route.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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