From: Maxim.Mossienko Date: Mon, 28 Sep 2009 16:47:20 +0000 (+0400) Subject: Merge branch 'master' of git.labs.intellij.net:idea/community X-Git-Tag: 92.18~258 X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=commitdiff_plain;h=45ef4f400c5ece21b5eb2409309fd5ce376e6241;hp=c171aa592bed2fea03a8ffd9e25e69249e75170f Merge branch 'master' of git.labs.intellij.net:idea/community --- diff --git a/plugins/xpath/xpath-lang/src/inspectionDescriptions/CheckNodeTest.html b/plugins/xpath/xpath-lang/src/inspectionDescriptions/CheckNodeTest.html new file mode 100644 index 000000000000..caf7d1775c9f --- /dev/null +++ b/plugins/xpath/xpath-lang/src/inspectionDescriptions/CheckNodeTest.html @@ -0,0 +1,38 @@ + + + + + + +

+ This inspection checks whether any element/attribute names that are used in XPath-expressions are actually part of an + associated XML file or are defined in a referenced schema. This helps to avoid problems caused by typos in + XPath-expressions that would otherwise occur when running the script and may even then not be recognized immediately. +

+ +

Example:

+ +

+ <xsl:template match="h:txtarea" /> +

+ +

+ If the prefix "h" is bound to the XHTML namespace, the inspection will flag this part of the match-expression as an + unknown element name because the correct name of the element is "textarea". +

+ + + + +