[pmd-devel] String literal contains HTML
A source code analyzer
Brought to you by:
adangel,
juansotuyo
From: Frank P. <fpe...@pa...> - 2014-12-03 20:33:43
|
Any suggestions for how to handle XSLT from xml to html when the xml contains something like the following? The String literal "</div>" appears 16 times in this file; the first occurrence is on line 182 More completely: <violation beginline="182" endline="182" begincolumn="21" endcolumn="28" rule="AvoidDuplicateLiterals" ruleset="String and StringBuffer" package="com.foo" class="Bar" method="foo" externalInfoUrl=" http://pmd.sourceforge.net/pmd-5.1.3/rules/java/strings.html#AvoidDuplicateLiterals" priority="3"> The String literal "</div>" appears 16 times in this file; the first occurrence is on line 182 </violation> Here is the resulting HTML: <a href=" http://pmd.sourceforge.net/pmd-5.1.3/rules/java/strings.html#AvoidDuplicateLiterals "> The String literal "</td></tr>" appears 4 times in this file; the first occurrence is on line 200 </a> |