Page 1 of 1

XSLT autocomplete

Posted: Thu Jan 12, 2017 3:40 pm
by dsxsfs
Hi,

I'm editing an XSL file which is linked with an XML file through a scenario.

The autocomplete doesn't seem to work correctly. When I try to add an <xsl:for-each> or <xsl:value-of> element, the autocomplete will suggest the root element from the XML document, but no deeper elements when I hit the 'slash' key.

Furthermore, when I'm in a for-each loop, drag a node from the XSLT/XQuery input window to the editor and select 'value-of', it selects the absolute path of the node, rather than the path relative to the context node.

Is there any way to fix this?

Thanks.

Re: XSLT autocomplete

Posted: Thu Jan 12, 2017 6:14 pm
by adrian
Hi,

What version and build of Oxygen are you using (Help > About)?

Check the namespaces from the XML file (especially second level elements). Oxygen's content completion (autocomplete) will not propose elements if they are from a namespace for which there is no declaration in the XSL. Declare the namespaces in the XSL, if that's the case.

If possible, please send us a pair of XML+XSL files and the scenario where you see the problem.
Send them to our support email address, support@oxygenxml.com.

Regards,
Adrian