2005-05-11 05:55:41 +00:00
|
|
|
<!--
|
2016-06-27 14:56:38 +10:00
|
|
|
- Copyright (C) 2005, 2007, 2009, 2015, 2016 Internet Systems Consortium, Inc. ("ISC")
|
2005-05-13 01:35:48 +00:00
|
|
|
-
|
2016-06-27 14:56:38 +10:00
|
|
|
- This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2005-05-11 05:55:41 +00:00
|
|
|
-->
|
|
|
|
|
2015-10-06 05:45:21 +00:00
|
|
|
<!-- $Id$ -->
|
|
|
|
|
2005-05-11 05:55:41 +00:00
|
|
|
<!-- Generate ISC copyright comments from Docbook copyright metadata. -->
|
|
|
|
|
2015-10-05 21:59:35 -07:00
|
|
|
<xsl:stylesheet version="1.0"
|
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
xmlns:db="http://docbook.org/ns/docbook">
|
2005-05-11 05:55:41 +00:00
|
|
|
|
|
|
|
<xsl:template name="isc.copyright.format">
|
|
|
|
<xsl:param name="text"/>
|
|
|
|
<xsl:value-of select="$isc.copyright.leader"/>
|
|
|
|
<xsl:value-of select="normalize-space(substring-before($text, ' '))"/>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<xsl:variable name="rest" select="substring-after($text, ' ')"/>
|
|
|
|
<xsl:if test="translate($rest, '	 ', '')">
|
|
|
|
<xsl:call-template name="isc.copyright.format">
|
|
|
|
<xsl:with-param name="text" select="$rest"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
2005-07-19 04:55:25 +00:00
|
|
|
<xsl:variable name="isc.copyright.text">
|
|
|
|
<xsl:text>
|
2016-07-21 17:00:44 +10:00
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2005-07-19 04:55:25 +00:00
|
|
|
</xsl:text>
|
|
|
|
</xsl:variable>
|
|
|
|
|
2005-05-11 05:55:41 +00:00
|
|
|
<xsl:variable name="isc.copyright">
|
|
|
|
<xsl:call-template name="isc.copyright.format">
|
|
|
|
<xsl:with-param name="text">
|
2016-12-07 10:49:55 +11:00
|
|
|
<xsl:for-each select="book/info/copyright | refentry/docinfo/copyright">
|
2005-05-11 05:55:41 +00:00
|
|
|
<xsl:text>Copyright (C) </xsl:text>
|
|
|
|
<xsl:call-template name="copyright.years">
|
2016-12-07 10:49:55 +11:00
|
|
|
<xsl:with-param name="years" select="year"/>
|
2005-05-11 05:55:41 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
<xsl:text> </xsl:text>
|
2016-12-07 10:49:55 +11:00
|
|
|
<xsl:value-of select="holder"/>
|
2015-10-05 21:59:35 -07:00
|
|
|
<xsl:value-of select="$isc.copyright.breakline"/>
|
2005-05-11 05:55:41 +00:00
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
</xsl:for-each>
|
2005-07-19 04:55:25 +00:00
|
|
|
<xsl:value-of select="$isc.copyright.text"/>
|
2005-05-11 05:55:41 +00:00
|
|
|
</xsl:with-param>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:variable>
|
|
|
|
</xsl:stylesheet>
|
|
|
|
|
2015-10-22 16:09:46 +11:00
|
|
|
<!--
|
2005-05-11 05:55:41 +00:00
|
|
|
- Local variables:
|
|
|
|
- mode: sgml
|
|
|
|
- End:
|
|
|
|
-->
|