Support arbitrary legalnotice content and inject correct text when role='rpc'

Change-Id: I942729c86d639fd3a6a9bac7fbbc3811e6c58a8a
This commit is contained in:
David Cramer
2014-05-22 10:19:40 -05:00
parent 85cf2eb6ba
commit a89dbe354d

View File

@@ -78,6 +78,12 @@
<xsl:when test="@role = 'apache2'">
<xsl:call-template name="Apache2LegalNotice"/>
</xsl:when>
<xsl:when test="@role = 'rpc'">
<xsl:call-template name="RPCLegalNotice"/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
@@ -189,6 +195,49 @@
</d:para>
</xsl:if>
</xsl:template>
<xsl:template name="RPCLegalNotice">
<xsl:if test="@role = 'rpc'" xmlns="http://docbook.org/ns/docbook">
<para><xsl:value-of select="/*/d:info/d:abstract"/>
The document is for informational purposes only and
is provided “AS IS.” </para>
<para>RACKSPACE MAKES NO REPRESENTATIONS OR WARRANTIES OF
ANY KIND, EXPRESS OR IMPLIED, AS TO THE ACCURACY OR
COMPLETENESS OF THE CONTENTS OF THIS DOCUMENT AND
RESERVES THE RIGHT TO MAKE CHANGES TO SPECIFICATIONS
AND PRODUCT/SERVICES DESCRIPTION AT ANY TIME WITHOUT
NOTICE. RACKSPACE SERVICES OFFERINGS ARE SUBJECT TO
CHANGE WITHOUT NOTICE. USERS MUST TAKE FULL
RESPONSIBILITY FOR APPLICATION OF ANY SERVICES
MENTIONED HEREIN. EXCEPT AS SET FORTH IN RACKSPACE
GENERAL TERMS AND CONDITIONS AND/OR CLOUD TERMS OF
SERVICE, RACKSPACE ASSUMES NO LIABILITY WHATSOEVER,
AND DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY,
RELATING TO ITS SERVICES INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. </para>
<para>Except as expressly provided in any written license
agreement from Rackspace, the furnishing of this
document does not give you any license to patents,
trademarks, copyrights, or other intellectual
property. </para>
<para>Rackspace, Rackspace logo, Fanatical Support®, and
OpenCenter are either registered trademarks or
trademarks of Rackspace US, Inc. in the United States
and/or other countries. OpenStack is either a
registered trademark or trademark of the OpenStack
Foundation in the United States and/or other
countries. </para>
<para>Third-party trademarks and tradenames appearing in
this document are the property of their respective
owners. Such third-party trademarks have been printed
in caps or initial caps and are used for referential
purposes only. We do not intend our use or display of
other companies tradenames, trademarks, or service
marks to imply a relationship with, or endorsement or
sponsorship of us by, these other companies. </para>
</xsl:if>
</xsl:template>
<xsl:template name="CCLegalNotice">
<xsl:if test="starts-with(string(@role),'cc-')">