xsl variable containing '.' autocompletion

Having trouble installing Oxygen? Got a bug to report? Post it all here.
scaillib
Posts: 2
Joined: Thu Apr 27, 2006 1:56 pm

xsl variable containing '.' autocompletion

Post by scaillib »

Hello,

When editing XSLT source code (1.0) with the standalone editor (7.1 build 2006030214), and trying to manipulate parameters/variables whose name contain '.':

Code: Select all


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:call-template name="test">
<xsl:with-param name="my.test.param.1" select="'1'"/>
<xsl:with-param name="my.test.param.2" select="'2'"/>
</xsl:call-template>
</xsl:template>
<xsl:template name="test">
<xsl:param name="my.test.param.1"/>
<xsl:param name="my.test.param.2"/>
<test>
<xsl:value-of select="concat($my.test.param.1, '-', $my.)"/>
</test>
</xsl:template>
</xsl:stylesheet>
after $my. the autocompletion no more work, I mean it is providing the default xpath autocompletion list (name, ancestor-or-self:: ...) but not the list of params/variables starting with my. .

Is there any config I can change in order to let the . be considered as part of the variable name?

Thanks a lot for your great product!
Sylvain
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

Usually the '.' character represents the context node in an XPath expression and it ends the content completion. In your case it is a part of the name of an XSLT variable and it should not end content completion. We will improve handling of variable names in a future version. Until then the content completion helps you to insert such a variable name in the editor panel only if you select the variable name in the popup window using the arrow keys and press Enter before typing the '.' character.

Regards,
Sorin
Post Reply