do I need to associate an xml file to edit an xslt file?
Answered
I'm editing an `xsl[t]` file and when I use `<xsl:template match="/rootNode">`, IntelliJ says that "rootNode" is an unknown element. This makes sense, however, I feel like it should be smarter about it. Should I specify an example xml that I'm working against so it can understand the current structure? How do I make it happy again?
Please sign in to leave a comment.
Not reproducible here. Could you provide sample file to reproduce the problem?
https://gist.github.com/anonymous/8df09b60a99d9c2c0883475d2e010289
IDE doesn't show any problems for this fragment: http://i.imgur.com/ZpSVkb1.png.
What I'm asking is, on line 18 (for example), it says "unknown element name 'children'". Is there a way to provide an example xml so that it knows what 'children' is, and what's context is? Would that inform the code hinting for finding nodes or attributes?
Alt+Enter, Edit File Associations:
Please see https://www.jetbrains.com/help/idea/2016.2/file-associations.html for details.