XSLT autocomplete

Here should go questions about transforming XML with XSLT and FOP.
dsxsfs
Posts: 7
Joined: Wed Jan 11, 2017 12:26 pm

XSLT autocomplete

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

Re: XSLT autocomplete

Post 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
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply