Page 1 of 1

Support for accidentally missing out $ on variable reference

Posted: Thu Jan 25, 2007 1:46 pm
by inigo
Many, many times, I've had my stylesheets break because I've done something like:

<xsl:variable name="something">this</xsl:variable>
<xsl:value-of select="something"/>

which doesn't do what I intended because I really meant "$something",

I'd like Oxygen to highlight when I've accessed an element with the same name as a variable or parameter that's within scope. This isn't necessarily an error, so shouldn't be marked as one, but is very likely to be so there should be a warning.

Inigo

Posted: Thu Feb 01, 2007 5:00 pm
by sorin_ristache
Hello,

XSLT processors do not check such situations but oXygen could check this as an additional step after the stylesheet is validated by the XSLT processor. We will consider your request.


Thank you,
Sorin