mirror of
https://github.com/moparisthebest/xeps
synced 2024-12-21 23:28:51 -05:00
XSL cleanup for improved readability
git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@2628 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
parent
7e6267c04f
commit
1f99b925b1
2
xep.ent
2
xep.ent
@ -217,7 +217,7 @@ THE SOFTWARE.
|
||||
|
||||
<!ENTITY LEGALNOTICE "
|
||||
<legal>
|
||||
<copyright>This XMPP Extension Protocol is copyright (c) 1999 - 2009 by the XMPP Standards Foundation (XSF).</copyright>
|
||||
<copyright>This XMPP Extension Protocol is copyright (c) 1999 - 2009 by the <link url='http://xmpp.org/'>XMPP Standards Foundation</link> (XSF).</copyright>
|
||||
<permissions>Permission is hereby granted, free of charge, to any person obtaining a copy of this specification (the "Specification"), to make use of the Specification without restriction, including without limitation the rights to implement the Specification in a software program, deploy the Specification in a network service, and copy, modify, merge, publish, translate, distribute, sublicense, or sell copies of the Specification, and to permit persons to whom the Specification is furnished to do so, subject to the condition that the foregoing copyright notice and this permission notice shall be included in all copies or substantial portions of the Specification. Unless separate permission is granted, modified works that are redistributed shall not contain misleading information regarding the authors, title, number, or publisher of the Specification, and shall not claim endorsement of the modified works by the authors, any organization or project to which the authors belong, or the XMPP Standards Foundation.</permissions>
|
||||
<warranty>## NOTE WELL: This Specification is provided on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. In no event shall the XMPP Standards Foundation or the authors of this Specification be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the Specification or the implementation, deployment, or other use of the Specification. ##</warranty>
|
||||
<liability>In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall the XMPP Standards Foundation or any author of this Specification be liable for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising out of the use or inability to use the Specification (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if the XMPP Standards Foundation or such author has been advised of the possibility of such damages.</liability>
|
||||
|
81
xep.xsl
81
xep.xsl
@ -89,10 +89,11 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
<body>
|
||||
<!-- TITLE -->
|
||||
<h1>XEP-<xsl:value-of select='/xep/header/number' />:<xsl:text> </xsl:text><xsl:value-of select='/xep/header/title' /></h1>
|
||||
<p>Copyright (c) 1999 - 2009 <a href='http://xmpp.org/'>XMPP Standards Foundation</a>. See <a href='#legal'>Legal Notices</a>.</p>
|
||||
<!-- ABSTRACT -->
|
||||
<p><xsl:value-of select='/xep/header/abstract'/></p>
|
||||
<!-- NOTICE -->
|
||||
<hr />
|
||||
<p><xsl:value-of select='/xep/header/abstract'/></p>
|
||||
<!-- DEPLOYABILITY -->
|
||||
<xsl:variable name='thestatus' select='/xep/header/status'/>
|
||||
<xsl:variable name='thetype' select='/xep/header/type'/>
|
||||
<xsl:if test='$thestatus = "Active" and $thetype = "Historical"'>
|
||||
@ -146,9 +147,22 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
<xsl:if test='$thestatus = "Retracted"'>
|
||||
<p style='color:red'>WARNING: This document has been retracted by the author(s). Implementation of the protocol described herein is not recommended. Developers desiring similar functionality should implement the protocol that supersedes this one (if any).</p>
|
||||
</xsl:if>
|
||||
<!-- TABLE OF CONTENTS -->
|
||||
<hr />
|
||||
<xsl:call-template name='processTOC' />
|
||||
<!-- END FRONT MATTER -->
|
||||
<!-- BEGIN XEP CONTENTS -->
|
||||
<hr />
|
||||
<xsl:apply-templates select='/xep/section1'/>
|
||||
<!-- END XEP CONTENTS -->
|
||||
<!-- BEGIN APPENDICES -->
|
||||
<hr />
|
||||
<a name='appendices'></a>
|
||||
<h2>Appendices</h2>
|
||||
<hr />
|
||||
<!-- XEP INFO -->
|
||||
<h2>Document Information</h2>
|
||||
<a name='appendix-docinfo'></a>
|
||||
<h3>Appendix A: Document Information</h3>
|
||||
<p class='indent'>
|
||||
Series: <a href='http://www.xmpp.org/extensions/'>XEP</a><br />
|
||||
Number: <xsl:value-of select='/xep/header/number'/><br />
|
||||
@ -253,16 +267,25 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</p>
|
||||
<hr />
|
||||
<!-- AUTHOR INFO -->
|
||||
<h2>Author Information</h2>
|
||||
<a name='appendix-authorinfo'></a>
|
||||
<h3>Appendix B: Author Information</h3>
|
||||
<div class='indent'>
|
||||
<xsl:apply-templates select='/xep/header/author'/>
|
||||
</div>
|
||||
<hr />
|
||||
<!-- LEGAL NOTICES -->
|
||||
<a name='appendix-legal'></a>
|
||||
<h3>Appendix C: Legal Notices</h3>
|
||||
<xsl:apply-templates select='/xep/header/legal'/>
|
||||
<hr />
|
||||
<!-- XMPP NOTICE -->
|
||||
<a name='appendix-xmpp'></a>
|
||||
<h3>Appendix D: Relation to XMPP</h3>
|
||||
<p class='indent'>The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.</p>
|
||||
<hr />
|
||||
<!-- DISCUSSION VENUE -->
|
||||
<h2>Discussion Venue</h2>
|
||||
<a name='appendix-discuss'></a>
|
||||
<h3>Appendix E: Discussion Venue</h3>
|
||||
<xsl:variable name='discuss.count' select='count(/xep/header/discuss)'/>
|
||||
<xsl:variable name='discuss.venue' select='count(/xep/header/discuss)'/>
|
||||
<xsl:if test='$discuss.count=1'>
|
||||
@ -291,29 +314,22 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<p class='indent'>Errata may be sent to <<a href='mailto:editor@xmpp.org'>editor@xmpp.org</a>>.</p>
|
||||
<!-- XMPP NOTICE AND CONFORMANCE TERMS-->
|
||||
<!-- (we don't put these on Procedural XEPs) -->
|
||||
<xsl:if test='$thetype = "Standards Track" or $thetype = "Historical" or $thetype = "Informational"'>
|
||||
<h2>Relation to XMPP</h2>
|
||||
<p class='indent'>The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 3920) and XMPP IM (RFC 3921) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.</p>
|
||||
<h2>Conformance Terms</h2>
|
||||
<p class='indent'>The following keywords as used in this document are to be interpreted as described in <a href='http://www.ietf.org/rfc/rfc2119.txt'>RFC 2119</a>: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".</p>
|
||||
</xsl:if>
|
||||
<!-- TABLE OF CONTENTS -->
|
||||
<hr />
|
||||
<xsl:call-template name='processTOC' />
|
||||
<!-- XEP CONTENTS -->
|
||||
<!-- CONFORMANCE TERMS-->
|
||||
<a name='appendix-conformance'></a>
|
||||
<h3>Appendix F: Requirements Conformance</h3>
|
||||
<p class='indent'>The following requirements keywords as used in this document are to be interpreted as described in <a href='http://www.ietf.org/rfc/rfc2119.txt'>RFC 2119</a>: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".</p>
|
||||
<hr />
|
||||
<xsl:apply-templates select='/xep/section1'/>
|
||||
<!-- NOTES -->
|
||||
<hr />
|
||||
<h2><a name="notes"></a>Notes</h2>
|
||||
<a name="appendix-notes"></a>
|
||||
<h3>Appendix G: Notes</h3>
|
||||
<div class='indent'>
|
||||
<xsl:apply-templates select='//note' mode='endlist'/>
|
||||
</div>
|
||||
<!-- REVISION HISTORY -->
|
||||
<hr />
|
||||
<h2><a name="revs"></a>Revision History</h2>
|
||||
<a name="appendix-revs"></a>
|
||||
<h3>Appendix H: Revision History</h3>
|
||||
<div class='indent'>
|
||||
<xsl:apply-templates select='/xep/header/revision'/>
|
||||
</div>
|
||||
@ -339,10 +355,16 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
<xsl:template name='processTOC'>
|
||||
<h2>Table of Contents</h2>
|
||||
<div class='indent'>
|
||||
<p>
|
||||
<xsl:apply-templates select='//section1' mode='toc'/>
|
||||
<br /><a href="#notes">Notes</a>
|
||||
<br /><a href="#revs">Revision History</a>
|
||||
<p><xsl:apply-templates select='//section1' mode='toc'/></p>
|
||||
<p><a href='#appendices'>Appendices</a>
|
||||
<br />    <a href="#appendix-docinfo">A: Document Information</a>
|
||||
<br />    <a href="#appendix-authorinfo">B: Author Information</a>
|
||||
<br />    <a href="#appendix-legal">C: Legal Notices</a>
|
||||
<br />    <a href="#appendix-xmpp">D: Relation to XMPP</a>
|
||||
<br />    <a href="#appendix-discuss">E: Discussion Venue</a>
|
||||
<br />    <a href="#appendix-conformance">F: Requirements Conformance</a>
|
||||
<br />    <a href="#appendix-notes">G: Notes</a>
|
||||
<br />    <a href="#appendix-revs">H: Revision History</a>
|
||||
</p>
|
||||
</div>
|
||||
</xsl:template>
|
||||
@ -404,19 +426,18 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match='legal'>
|
||||
<h2>Legal Notices</h2>
|
||||
<div class='indent'>
|
||||
<h3>Copyright</h3>
|
||||
<h4>Copyright</h4>
|
||||
<xsl:apply-templates select='/xep/header/legal/copyright'/>
|
||||
<h3>Permissions</h3>
|
||||
<h4>Permissions</h4>
|
||||
<xsl:apply-templates select='/xep/header/legal/permissions'/>
|
||||
<h3>Disclaimer of Warranty</h3>
|
||||
<h4>Disclaimer of Warranty</h4>
|
||||
<span style='font-weight: bold'>
|
||||
<xsl:apply-templates select='/xep/header/legal/warranty'/>
|
||||
</span>
|
||||
<h3>Limitation of Liability</h3>
|
||||
<h4>Limitation of Liability</h4>
|
||||
<xsl:apply-templates select='/xep/header/legal/liability'/>
|
||||
<h3>IPR Conformance</h3>
|
||||
<h4>IPR Conformance</h4>
|
||||
<xsl:apply-templates select='/xep/header/legal/conformance'/>
|
||||
</div>
|
||||
</xsl:template>
|
||||
|
Loading…
Reference in New Issue
Block a user