Problems with XQuery code completion
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 102
- Joined: Tue Aug 19, 2014 12:04 pm
Problems with XQuery code completion
Post by Martin Honnen »
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>".
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Problems with XQuery code completion
Hello,
We will notify this thread when the issues are resolved.
Regards,
Adrian
No. But as far as I can tell the current behavior is not as intended. I've logged this bug to our issue tracking tool, to position the caret correctly, between the tags.Is there any way to configure the XQuery editor to position the caret inside of an element when it has added an end tag?
This is yet another bug. I've also logged this one to our issue tracking tool.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.
Yes, but it is a global option, so it means you are completely disabling the automatic tag closing feature everywhere else (including for XML editing), so I'm not sure if that's useful (Options > Preferences, Editor > Content Completion, "Auto close the last opened tag").Is there any way to change the XQuery code editor settings to prevent it from throwing in the unwanted "</root>" start tag?
We will notify this thread when the issues are resolved.
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
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