Error Loading stylesheet cpdhtml.xslt
We have recently migrated to the 6.25 pmd and we have also updated the latest version of the style sheet /pmd-src-6.25.0/pmd-core/etc/xslt/cpdhtml.xslt used in the cpd.
We execute the cpd by an ant target that includes the following tag:
<xslt in="${report}/cpd/report.xml" style="${sofcommon}/${mpdVersion}/etc/xslt/cpdhtml.xslt" out="${report}/cpd/report.html"/>
The problem is that now we get the following error message:
cpd:
[cpd] Starting run, minimumTokenCount is 100
[cpd] Tokenizing files
[cpd] Starting to analyze code
[cpd] Done analyzing code; that took 24 milliseconds
[cpd] Generating report
[xslt] Processing /scratch/workspace/gaia.Decoder/reports/cpd/report.xml to /scratch/workspace/gaia.Decoder/reports/cpd/report.html
[xslt] Loading stylesheet /scratch/workspace/common/pmd-bin-6.25.0/etc/xslt/cpdhtml.xslt
[xslt] : Error! line 4: Illegal attribute 'xpath-default-namespace'.
We are using openjdk version "11.0.5"
It looks like the error is related to the attribue xpath-default-namespace that is valid for xslt 2.0. The default namespace is not used for XPath 1.0 expressions.
I wonder if we should update any library in our system in order to property execute this style sheet.
We have locally fixed this issue removing the previous attribute, but we have checked that it is present in all the xslt files defined in pmd, and we are not sure whether this issue could affect the execution of other tasks.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4