XSLT autocomplete

Here should go questions about transforming XML with XSLT and FOP.
dsxsfs
Posts: 6

XSLT autocomplete

Thu Jan 12, 2017 3:40 pm

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: 2388

Re: XSLT autocomplete

Thu Jan 12, 2017 6:14 pm

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

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 0 guests