ICU-20910 C API Change Report Tool updates

- This commit was used to generate ICU4C 65's report
- This commit was inadvertently left out of [ICU-20162]

Changes:
- fixup copyright messages
- code cleanup
- fix unreplaced '$rightVer' in born stable APIs
This commit is contained in:
Steven R. Loomis 2019-10-02 10:10:03 -07:00 committed by Steven R. Loomis
parent 081579544a
commit 24b3cf182e
4 changed files with 479 additions and 491 deletions

View file

@ -20,7 +20,7 @@
<xsl:param name="rightMilestone" />
<xsl:param name="leftMilestone" />
<xsl:param name="notFound" />
<xsl:param name="ourYear" />
<!-- <xsl:param name="ourYear" /> -->
<xsl:output method="html" version="4.0" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
@ -30,7 +30,7 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd"
<xsl:template match="/">
<html>
<xsl:comment>
Copyright © <xsl:value-of select="$ourYear" />: Unicode, Inc. and others.
Copyright © 2016 and later: Unicode, Inc. and others.
License &amp; terms of use: http://www.unicode.org/copyright.html
</xsl:comment>
<head>
@ -122,7 +122,10 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd"
-->
<p><i><font size="-1">Contents generated by StableAPI tool on <xsl:value-of select="$dateTime" /><br/>Copyright (C) <xsl:value-of select="$ourYear" />, International Business Machines Corporation, All Rights Reserved.</font></i></p>
<p><i><font size="-1">Contents generated by StableAPI tool on <xsl:value-of select="$dateTime" /><br/>
Copyright © 2017 and later: Unicode, Inc. and others.<br/>
License &amp; terms of use: http://www.unicode.org/copyright.html
</font></i></p>
</body>
</html>
</xsl:template>
@ -212,8 +215,8 @@ doctype-system="http://www.w3.org/TR/html4/loose.dtd"
</td>
</xsl:if>
<xsl:if test = "@rightStatus = 'Stable' and @rightVersion = $rightVer">
<td class='bornstable'>
<b title='A new API was introduced as stable in $rightVer.' class='bigwarn'>(Born Stable)</b>
<td class='bornstable'>
<b class='bigwarn'><xsl:attribute name="title">A new API was introduced as stable in <xsl:value-of select='$rightVer'/>.</xsl:attribute>(Born Stable)</b>
</td>
</xsl:if>
</tr>

View file

@ -1,17 +1,7 @@
<!--
* © 2017 and later: Unicode, Inc. and others.
* License & terms of use: http://www.unicode.org/copyright.html#License
-->
<!--
/*
*******************************************************************************
* Copyright (C) 2016 and later: Unicode, Inc. and others.
* License & terms of use: http://www.unicode.org/copyright.html
* Copyright (C) 2008-2013, International Business Machines Corporation and *
* others. All Rights Reserved. *
*******************************************************************************
* This is the XSLT for the API Report.
*/
© 2019 and later: Unicode, Inc. and others.
License & terms of use: http://www.unicode.org/copyright.html#License
This is the XSLT for the API Report, Markdown version
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="leftVer" />
@ -20,11 +10,12 @@
<xsl:param name="rightMilestone" />
<xsl:param name="leftMilestone" />
<xsl:param name="notFound" />
<xsl:param name="ourYear" />
<!-- <xsl:param name="ourYear" /> -->
<xsl:output method="text" indent="no" omit-xml-declaration="yes" />
<xsl:template match="/">
<!-- the generated file has a copyright of 2019 and following -->
<![CDATA[<!--]]>
Copyright © <xsl:value-of select="$ourYear" />: Unicode, Inc. and others.
Copyright © 2019 and later: Unicode, Inc. and others.
License &amp; terms of use: http://www.unicode.org/copyright.html
<![CDATA[-->]]>
@ -100,7 +91,7 @@ This section shows cases where the signature was "simplified" for the sake of co
Contents generated by StableAPI tool on <xsl:value-of select="$dateTime" />
Copyright (C) 2016-<xsl:value-of select="$ourYear" />, Unicode, Inc. and others.
Copyright © 2019 and later: Unicode, Inc. and others.
License &amp; terms of use: http://www.unicode.org/copyright.html
</xsl:template>

View file

@ -24,12 +24,12 @@
<xsl:param name="dateTime" />
<xsl:param name="nul" />
<xsl:param name="ourYear" />
<!-- <xsl:param name="ourYear" /> -->
<xsl:template match="/">
<xsl:comment>
Copyright © <xsl:value-of select="$ourYear" />: Unicode, Inc. and others.
Copyright © 2017 and later: Unicode, Inc. and others.
License &amp; terms of use: http://www.unicode.org/copyright.html
</xsl:comment>
<changeReport>