auto-complete token values and whitespace
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 4
- Joined: Tue Oct 28, 2014 12:46 pm
auto-complete token values and whitespace
Post by stefan.eissing »
I have a XML document accompanied by a Relax NG schema that adds several tokens as choices for element values, as in
Autocompletion in Oxygen works, when the element is empty, like in:
('|' is the cursor)
However my customer likes to use whitespace, which is fine with tokens, however the autocompletion no longer offers suggestions:
Anything I can do to make auto-complete work with leading/trailing whitespace for tokens? Adding patterns does not help, as those do not work in autocomplete at all. My understanding of "token" is that this whitespace should be ignored...
Code: Select all
element e {
xsd:token "string1"
| xsd:token "string2"
| xsd:token "string11"
Code: Select all
<e>|</e> <!-- offers all choices -->
<e>string1|</e> <!-- offers "string1" and "string11" -->
However my customer likes to use whitespace, which is fine with tokens, however the autocompletion no longer offers suggestions:
Code: Select all
<e> |</e> <!-- offers nothing -->
<e> str|</e> <!-- offers nothing -->
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: auto-complete token values and whitespace
Hello Stefan,
Your understanding is correct. Unfortunately this is yet another bug.
The content completion mechanism from Oxygen also considers the leading whitespaces as part of the item, even though for xsd:token they are not significant. This is the reason the items are filtered from the list of proposals (thus no suggestions are left).
I've submitted this to our issue tracking tool to be resolved in a future update. We will notify this thread when it is fixed.
I don't see a workaround for this issue.
Regards,
Adrian
Your understanding is correct. Unfortunately this is yet another bug.
The content completion mechanism from Oxygen also considers the leading whitespaces as part of the item, even though for xsd:token they are not significant. This is the reason the items are filtered from the list of proposals (thus no suggestions are left).
I've submitted this to our issue tracking tool to be resolved in a future update. We will notify this thread when it is fixed.
I don't see a workaround for this issue.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 4
- Joined: Tue Oct 28, 2014 12:46 pm
Re: auto-complete token values and whitespace
Post by stefan.eissing »
Thanks Adrian for opening a ticket on this.
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