Files
openide/plugins/xpath/xpath-lang/resources/inspectionDescriptions/HardwiredNamespacePrefix.html
Anna Kozlova e00ddff9a4 [settings] inject Powered By message to inspections/intentions descriptions (IDEABKL-4320; IDEA-284338)
GitOrigin-RevId: 690e89ce022e87bf675c07a3b60d27817a0072e5
2022-07-14 16:00:36 +00:00

13 lines
429 B
HTML

<html>
<body>
Reports comparisons of the <code>name()</code> function with a string that contains a colon (<code>:</code>). Such usages
usually indicate a hardcoded namespace prefix in the comparison. As a result, the code will break when run against XML that
uses another prefix for the same namespace.
<p><b>Example:</b></p>
<pre><code>
&lt;xsl:if test="name() = 'xlink:href'">...&lt;xsl:if>
</code></pre>
</body>
</html>