Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ repos:
files: \.(asm|asp|bas|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xsd|xslt?|ya?ml)$|^main/accessibility/.*$|^main/afms/.*$|^main/animations/.*$|^main/apache-commons/.*$|^test/testgui/.*$
- id: trailing-whitespace
description: trims trailing whitespace
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|ya?ml)$
files: (m|M)akefile$|\.(asm|asp|bas|bat|c|cl|cmd|common|component|cpp|cxx|dtd|dxp|el|h|hrc|hxx|idl|in|ini|java|js|lst|m|m4|map|md|mk|mm|mod|pas|php|pl|pm|pmk|py|rc|rdf|rng|s|sdi|sh|src|template|ulf|vbs|xba|xcs|xcu|xdl|xhp|xlb|xmi|xml|xsd|xslt?|ya?ml)$
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.1
Expand Down
14 changes: 7 additions & 7 deletions ext_libraries/ratscan/scan/rat-output-to-html.xsl
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">

<!--***********************************************************
*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*
***********************************************************-->

<!-- This style sheet converts any rat-report.xml file. -->
Expand Down Expand Up @@ -73,7 +73,7 @@ caption {color:blue;text-align:left;}
<h1>Rat Report</h1>
<p>This HTML version (yes, it is!) is generated from the RAT xml reports using Saxon9B. All the outputs required are displayed below, similar to the .txt version.
This is obviously a work in progress; and a prettier, easier to read and manage version will be available soon</p>
<div class="center">
<div class="center">
<table id="rat-reports summary" cellspacing="0" summary="A snapshot summary of this rat report">
<caption>
Table 1: A snapshot summary of this rat report.
Expand Down Expand Up @@ -150,7 +150,7 @@ Table 1: A snapshot summary of this rat report.
<hr/>

<h3>Printing headers for files without AL header...</h3>

<xsl:for-each select="descendant::resource[header-type/@name=&quot;?????&quot;]">

<h4><xsl:value-of select="@name"/></h4>
Expand All @@ -166,7 +166,7 @@ Table 1: A snapshot summary of this rat report.
<xsl:apply-templates select="license-approval"/>
<xsl:apply-templates select="type"/> -->

</xsl:template>
</xsl:template>

<xsl:template match="resource">
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,63 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************
*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*
***********************************************************-->

<xsl:stylesheet version="1.0"
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">

<xsl:output method = "html"
media-type = "text/html"
indent = "yes"
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
omit-xml-declaration = "yes"
standalone = "yes" />

<xsl:include href="../layout.xsl"/>


<!-- =============================
HTML BODY
================================== -->

<xsl:template name="body">
<xsl:call-template name="title"/>
<xsl:call-template name="toc"/>
</xsl:template>


<xsl:template name="toc">
<!--
@ pre toc HTML here
-->

<xsl:apply-templates select="/session/content/document"/>

<!--
@ post toc HTML here
-->

</xsl:template>
<!-- also when using groups, in the end it comes

<!-- also when using groups, in the end it comes
to this template, which is called for each document -->
<xsl:template match="document">
<xsl:variable name="i" select="position() - 1"/>
Expand All @@ -81,31 +81,31 @@
</div>
</div>
</xsl:template>





<xsl:template name="document-group">
<xsl:param name="group"/>

<!-- @ pre group code here -->

<!-- - - -->

<xsl:variable name="count" select="(position() - 1) * $group + 1"/>

<xsl:for-each select="/session/content/document[$count &lt;= position() and position() &lt; ($count + $group)]">

<xsl:apply-templates select="."/>

</xsl:for-each>

<!-- @ post group code here -->

<!-- - - -->

</xsl:template>


<xsl:template name="title">
<!--
@ Pre title HTML code here
Expand All @@ -119,6 +119,6 @@
</div>
</div>
</xsl:template>


</xsl:stylesheet>
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************
*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*
***********************************************************-->

<xsl:stylesheet version="1.0"
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">

Expand All @@ -30,7 +30,7 @@
doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
omit-xml-declaration = "yes"
standalone = "yes" />


<!-- =============================
ROOT
Expand All @@ -43,13 +43,13 @@
<xsl:call-template name="frameset"/>
</html>
</xsl:template>


<!-- =============================
HTML FRAMES
================================== -->


<xsl:template name="frameset">
<frameset rows="*,281" cols="*" framespacing="0" frameborder="NO" border="0">
<frame src="mainframe.html" name="mainframe"/>
Expand All @@ -59,14 +59,14 @@
<body>
</body>
</xsl:template>


<!-- =============================
HTML HEAD

this section should not be changed
================================== -->

<xsl:template name="head">
<head>
<title>
Expand All @@ -87,5 +87,5 @@

</head>
</xsl:template>

</xsl:stylesheet>
Loading