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?

5 comments
Comment actions Permalink

Not reproducible here. Could you provide sample file to reproduce the problem?

0
Comment actions Permalink

IDE doesn't show any problems for this fragment: http://i.imgur.com/ZpSVkb1.png.

0
Comment actions Permalink

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?

0

Please sign in to leave a comment.