XSLT: autocompletion bug

Oxygen general issues.
luchm
Posts: 6
Joined: Thu Dec 04, 2008 7:52 pm

XSLT: autocompletion bug

Post 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.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: XSLT: autocompletion bug

Post 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
luchm
Posts: 6
Joined: Thu Dec 04, 2008 7:52 pm

Re: XSLT: autocompletion bug

Post by luchm »

Thank you.
Post Reply