Page 1 of 1

XSLT: autocompletion bug

Posted: Fri Aug 21, 2009 4:46 pm
by luchm
Using Oxygen xml 10.3.0, Eclipse version, create a new XSLT file and paste the following code:

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs"
version="2.0">

<xsl:template match="/">
<xsl:variable name="a">
<xsl:variable name="b" select="1"/>
<xsl:sequence select="2 * $b"/>
</xsl:variable>
<xsl:sequence select=""/>
</xsl:template>
</xsl:stylesheet>
Now,put your cursor in the empty 'select' attribute, enter a $ and press ctrl+enter to have the autocompletion options poping up. Two options appear: $a and $b. Yet, only a is valid: choosing b produces a compilation error.

Re: XSLT: autocompletion bug

Posted: Fri Aug 21, 2009 5:05 pm
by sorin_ristache
Hello,

Thank you for reporting the bug. Autocompletion displays all local variables of current template but it should display only the variables in scope at the cursor location. We will fix that.


Thank you,
Sorin

Re: XSLT: autocompletion bug

Posted: Fri Aug 21, 2009 5:30 pm
by luchm
Thank you.