XSL tag attribute with name 'for' has value flagged as unresolved symbol

When entering a custom XML namespace tag, if the word 'for' is used for an attribute name, it's value will be flagged as an unresolved symbol. For example, in the (contrived) code below:

    

     ]]>


the value forValue of attribute for in the gml:someTag tag will be flagged as an unresolved symbol. Perhaps IDEA thinks that attribute name 'for' is some kind of reserved word - but as far as I'm aware, it's legitimate here and it works OK with our XSLT processor.

Is this an IDEA parsing bug, or am I and our XSLT processor mistaken in thinking that this code is valid ?

2 comments
Comment actions Permalink

Hello Dave,

this is a bug in IDEA that tries to resolve the value of the for-attribute as the ID of another
element. Please see http://www.jetbrains.net/jira/browse/IDEA-19937

Sascha

When entering a custom XML namespace tag, if the word 'for' is used for an attribute name, it's value will be flagged as an unresolved symbol. For example, in the (contrived) code below:

     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>     xmlns:gml="http://www.foobar.com/namespaces/foo-gml">
> 
>     
> 
>      ]]>


the value forValue of attribute for in the gml:someTag tag will be flagged as an unresolved symbol. Perhaps IDEA thinks that attribute name 'for' is some kind of reserved word - but as far as I'm aware, it's legitimate here and it works OK with our XSLT processor.

Is this an IDEA parsing bug, or am I and our XSLT processor mistaken in thinking that this code is valid ?

0
Comment actions Permalink

Thanks for the update, Sascha.

0

Please sign in to leave a comment.