auto-complete token values and whitespace
Posted: Wed Oct 29, 2014 3:13 pm
				
				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 -->