auto-complete token values and whitespace

Having trouble installing Oxygen? Got a bug to report? Post it all here.
stefan.eissing
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

Code: Select all

  element e {
xsd:token "string1"
| xsd:token "string2"
| xsd:token "string11"
Autocompletion in Oxygen works, when the element is empty, like in:

Code: Select all


  <e>|</e>  <!-- offers all choices -->
<e>string1|</e> <!-- offers "string1" and "string11" -->
('|' is the cursor)

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 -->
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...
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: auto-complete token values and whitespace

Post by adrian »

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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
stefan.eissing
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.
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: auto-complete token values and whitespace

Post by Radu »

Hi,

Just to update this thread, the issue should be fixed in Oxygen 17.0.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply