You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@creadur.apache.org by "Claude Warren (Jira)" <ji...@apache.org> on 2025/10/02 15:43:00 UTC
[jira] [Commented] (RAT-488) stylesheet doesn't support the nested "file" element.
[ https://issues.apache.org/jira/browse/RAT-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18024301#comment-18024301 ]
Claude Warren commented on RAT-488:
-----------------------------------
There have been some changes in the area for 0.17
First, the "stylesheet" child element is deprecated in favour of "outputStyle" attribute.
Currently, neither take a file, but do take a string.
<stylesheet>${src-dir}/../../../rat-output.xsl</stylesheet>
or
<rat:report outputStyle="${src-dir}/../../../rat-output.xsl">
should work. The later does not emit a deprecation warning.
Second, the format of the XML has changed. There is an output xsd: [https://github.com/apache/creadur-rat/blob/master/apache-rat-core/src/main/resources/org/apache/rat/rat-report.xsd]
As well as documentation on the 0.17 documentation development site: [https://creadur.apache.org/rat017/index.html]
The major changes to the XML are
* A resource may now have multiple detected licenses.
* more RAT version information is available.
* media type, encoding, and a directory flag are available for resources.
* A timestamp attribute is included in the "rat-report" root element.
* there is a "statistics" element that contains counts for the various statistics as well as the count for each license category, license name, and document type.
As the new documentation ([https://creadur.apache.org/rat017/apache-rat-tasks/ant_options.html)] states the "outputStyle" value can be a well known name as shown at the bottom of the above mentioned document. We do not have an HTML style sheet and would appreciate one. If you would contribute yours we could add it as the well know name "html".
I know this is a rather big change, but it positions us to make our first version 1 release and make it easier to develop more options in the future. We would greatly appreciate any early feedback on 0.17
> stylesheet doesn't support the nested "file" element.
> -----------------------------------------------------
>
> Key: RAT-488
> URL: https://issues.apache.org/jira/browse/RAT-488
> Project: Apache Rat
> Issue Type: Bug
> Reporter: Gavin McDonald
> Priority: Major
>
> Hi
>
> I cant find what has changed in RAT but the tests on our projects in ci2.apache.org (buildbot) no longer work since updating from 0.14 to 0.16.1
>
> {noformat}
> /home/buildslave/slave/rat-buildfiles/openoffice.xml:33: stylesheet doesn't support the nested "file" element.{noformat}
> The documentation still lists this as valid in an example.
> Here is what we use and have always used for 15+ years:-
>
> {noformat}
> <rat:report xmlns:rat="antlib:org.apache.rat.anttasks"
> format="styled" reportFile="${src-dir}/../rat-output.html">
> <stylesheet>
> <file file="${src-dir}/../../../rat-output.xsl"/>
> </stylesheet>
> <fileset dir="${src-dir}">
> <excludesfile name="${src-dir}/main/rat-excludes"/>
> <exclude name=".buildbot-sourcedata"/>
> </fileset>
> </rat:report>{noformat}
> Any ideas?
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)