Support for accidentally missing out $ on variable reference

Are you missing a feature? Request its implementation here.
inigo
Posts: 3
Joined: Fri Sep 29, 2006 11:14 am

Support for accidentally missing out $ on variable reference

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

Post 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
Post Reply