Problems with XQuery code completion
Posted: Tue Jul 12, 2016 4:06 pm
I am using oXygen 18 and want to create XQuery files, so open a new document selecting type XQuery and start typing, the query I want to write is
so I start typing the opening and it is completed to which is fine so far, but I would like the caret to be inside of the element and not after the end tag.
Is there any way to configure the XQuery editor to position the caret inside of an element when it has added an end tag?
Then I go on and add the curly braces and start typing the code inside it, only when I want to type the inner start tag of the "item" element i.e. have typed
the editor completes that to
and directly underlines the "(1 to 5) ! </root>" as as syntax error "XPST0003: Unmatched XML end tag".
So that really is the wrong approach to code completion, inside the curly braces there should be no attempt to close an element outside of the curly braces.
Is there any way to change the XQuery code editor settings to prevent it from throwing in the unwanted "</root>" start tag?
I want to type the "<item>" start tag there undisturbed and have it completed by an end tag "</item>".
Code: Select all
<root>
{
(1 to 5) ! <item>{.}</item>
}
</root>
Code: Select all
<root>
Code: Select all
<root></root>
Is there any way to configure the XQuery editor to position the caret inside of an element when it has added an end tag?
Then I go on and add the curly braces and start typing the code inside it, only when I want to type the inner start tag of the "item" element i.e. have typed
Code: Select all
<root>
{
(1 to 5) ! <
}
</root>
Code: Select all
<root>
{
(1 to 5) ! </root>
}
</root>
So that really is the wrong approach to code completion, inside the curly braces there should be no attempt to close an element outside of the curly braces.
Is there any way to change the XQuery code editor settings to prevent it from throwing in the unwanted "</root>" start tag?
I want to type the "<item>" start tag there undisturbed and have it completed by an end tag "</item>".