Initial copyright metadata.
This commit is contained in:
@@ -20,13 +20,56 @@
|
|||||||
<xsl:value-of select="$subtitle"/>
|
<xsl:value-of select="$subtitle"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
<xsl:variable name="ccid">
|
||||||
|
<xsl:value-of select="substring-after(string(/*/d:info/d:legalnotice/@role),'cc-')"/>
|
||||||
|
</xsl:variable>
|
||||||
|
<xsl:variable name="ccidURL">
|
||||||
|
<xsl:text>http://creativecommons.org/licenses/</xsl:text>
|
||||||
|
<xsl:value-of select="$ccid"/>
|
||||||
|
<xsl:text>/3.0/legalcode</xsl:text>
|
||||||
|
</xsl:variable>
|
||||||
<fo:declarations>
|
<fo:declarations>
|
||||||
<x:xmpmeta xmlns:x="adobe:ns:meta/">
|
<x:xmpmeta xmlns:x="adobe:ns:meta/">
|
||||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||||
|
<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||||
|
xmlns:xapRights='http://ns.adobe.com/xap/1.0/rights/'
|
||||||
|
>
|
||||||
|
<xapRights:Marked>True</xapRights:Marked>
|
||||||
|
</rdf:Description>
|
||||||
<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||||
<!-- Dublin Core properties go here -->
|
<!-- Dublin Core properties go here -->
|
||||||
|
<dc:rights>
|
||||||
|
<rdf:Alt>
|
||||||
|
<rdf:li xml:lang="x-default">
|
||||||
|
<xsl:apply-templates mode="titlepage.mode" select="//d:copyright"/>
|
||||||
|
<xsl:if test="starts-with(string(/*/d:info/d:legalnotice/@role),'cc-')">
|
||||||
|
<xsl:text> Licensed to the public under Creative Commons Attribution </xsl:text>
|
||||||
|
<xsl:choose>
|
||||||
|
<xsl:when test="$ccid = 'by'" />
|
||||||
|
<xsl:when test="$ccid = 'by-sa'">
|
||||||
|
<xsl:text>ShareAlike</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="$ccid = 'by-nd'">
|
||||||
|
<xsl:text>NoDerivatives</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="$ccid = 'by-nc'">
|
||||||
|
<xsl:text>NonCommercial</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="$ccid = 'by-nc-sa'">
|
||||||
|
<xsl:text>NonCommercial ShareAlike</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="$ccid = 'by-nc-nd'">
|
||||||
|
<xsl:text>NonCommercial NoDerivatives</xsl:text>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:otherwise>
|
||||||
|
<xsl:message terminate="yes">I don't understand licence <xsl:value-of select="$ccid"/></xsl:message>
|
||||||
|
</xsl:otherwise>
|
||||||
|
</xsl:choose>
|
||||||
|
<xsl:text> 3.0 License</xsl:text>
|
||||||
|
</xsl:if>
|
||||||
|
</rdf:li>
|
||||||
|
</rdf:Alt>
|
||||||
|
</dc:rights>
|
||||||
<!-- Title -->
|
<!-- Title -->
|
||||||
<dc:title><xsl:value-of select="normalize-space($title)"/></dc:title>
|
<dc:title><xsl:value-of select="normalize-space($title)"/></dc:title>
|
||||||
|
|
||||||
@@ -67,7 +110,6 @@
|
|||||||
</dc:description>
|
</dc:description>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</rdf:Description>
|
</rdf:Description>
|
||||||
|
|
||||||
<rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
|
<rdf:Description rdf:about="" xmlns:pdf="http://ns.adobe.com/pdf/1.3/">
|
||||||
<!-- PDF properties go here -->
|
<!-- PDF properties go here -->
|
||||||
|
|
||||||
@@ -90,7 +132,16 @@
|
|||||||
<!-- Creator Tool -->
|
<!-- Creator Tool -->
|
||||||
<xmp:CreatorTool>Cloud API Docs Plugin</xmp:CreatorTool>
|
<xmp:CreatorTool>Cloud API Docs Plugin</xmp:CreatorTool>
|
||||||
</rdf:Description>
|
</rdf:Description>
|
||||||
|
<xsl:if test="starts-with(string(/*/d:info/d:legalnotice/@role),'cc-')">
|
||||||
|
<rdf:Description rdf:about=''
|
||||||
|
xmlns:cc='http://creativecommons.org/ns#'>
|
||||||
|
<xsl:element name="cc:license">
|
||||||
|
<xsl:attribute name="rdf:resource">
|
||||||
|
<xsl:value-of select="$ccidURL"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:element>
|
||||||
|
</rdf:Description>
|
||||||
|
</xsl:if>
|
||||||
</rdf:RDF>
|
</rdf:RDF>
|
||||||
</x:xmpmeta>
|
</x:xmpmeta>
|
||||||
</fo:declarations>
|
</fo:declarations>
|
||||||
|
|||||||
Reference in New Issue
Block a user