XSLT: autocompletion bug
Posted: Fri Aug 21, 2009 4:46 pm
Using Oxygen xml 10.3.0, Eclipse version, create a new XSLT file and paste the following code:
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.
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>