Autocompletion: Attributes list
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
Autocompletion: Attributes list
Post by sebastienlavandier »
Hi,
I work with the author component.
I created a button/action for add an specific attribute to a specific node.
Now, I want list all the possible "ID" (all the alredy referenced ID) in a list like It's do when I write a new attribute in text/author mode.
Could you help me ?
Thanks in advance for you r help.
Sébastien
I work with the author component.
I created a button/action for add an specific attribute to a specific node.
Now, I want list all the possible "ID" (all the alredy referenced ID) in a list like It's do when I write a new attribute in text/author mode.
Could you help me ?
Thanks in advance for you r help.
Sébastien
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Autocompletion: Attributes list
Hi Sébastien,
You can run XPaths over the entire document using API like this:
ro.sync.ecss.extensions.api.AuthorDocumentController.evaluateXPath(String, boolean, boolean, boolean)
So you can run an XPath which lists all IDs in the document and then add them to a list which is presented to the user.
Regards,
Radu
You can run XPaths over the entire document using API like this:
ro.sync.ecss.extensions.api.AuthorDocumentController.evaluateXPath(String, boolean, boolean, boolean)
So you can run an XPath which lists all IDs in the document and then add them to a list which is presented to the user.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 124
- Joined: Tue May 29, 2012 5:42 pm
Re: Autocompletion: Attributes list
Post by sebastienlavandier »
I can't implemented an existing action to access to the Oxygen list ?
Sébastien
Sébastien
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Autocompletion: Attributes list
Hi,
You could also try something like this:
Regards,
Radu
You could also try something like this:
Code: Select all
AuthorSchemaManager sm = authorAccess.getDocumentController().getAuthorSchemaManager();
AuthorElement currentElement = ....;
WhatPossibleValuesHasAttributeContext ctxt = sm.createWhatPossibleValuesHasAttributeContext(currentElement, "id");
List<CIValue> vals = sm.whatPossibleValuesHasAttribute(ctxt);
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
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