Software Freedom Law Center

root/tags/went-live-on-2006-03-14/selectxpath.xsl

Revision 51, 6.7 kB (checked in by orion, 3 years ago)

release intensity highlighting

  • Property svn:executable set to
Line 
1 <!-- Copyright (C) 2005, 2006   Software Freedom Law Center, Inc.
2 --   Author: Orion Montoya <orion@mdcclv.com>
3 --
4 -- This software gives you freedom; it is licensed to you under version
5 -- 3 of the GNU Affero General Public License, along with the
6 -- additional permission in the following paragraph.
7 --
8 -- This notice constitutes a grant of such permission as is necessary
9 -- to combine or link this software, or a modified version of it, with
10 -- Request Tracker (RT), published by Jesse Vincent and Best Practical
11 -- Solutions, LLC, or a derivative work of RT, and to copy, modify, and
12 -- distribute the resulting work.  RT is licensed under version 2 of
13 -- the GNU General Public License.
14 --
15 -- This software is distributed WITHOUT ANY WARRANTY, without even the
16 -- implied warranties of MERCHANTABILITY and FITNESS FOR A PARTICULAR
17 -- PURPOSE.  See the GNU Affero General Public License for further
18 -- details.
19 -- 
20 -- You should have received a copy of the GNU Affero General Public
21 -- License, version 3, and the GNU General Public License, version 2,
22 -- along with this software.  If not, see <http://www.gnu.org/licenses/>.
23 -->
24 <?xml version="1.0" encoding="utf-8"?>
25 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
26   version="1.0">
27
28   <xsl:output method="html"/>
29
30   <xsl:template match="/gpl">
31     <html>
32       <head>
33         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
34         <title><xsl:value-of select="//head/title"/></title>
35         <script type="text/javascript" src="stet.js"/>
36         <script type="text/javascript" language="javascript">
37 window.onload = initPage();
38 </script>
39
40         <link rel="stylesheet" type="text/css" href="stet.css"/>
41       </head>
42       <body onkeypress="checkKeyPressed(event);" bgcolor="#FFFFFF">
43 <div id="topbar" class="topbar">
44 <span id="statustext" class="statustext">Loading comments.  If you're still reading this after about 15 seconds, we do not completely support your browser yet.  We abjectly apologize for not yet supporting Konqueror, and thank you for your continued patience.  If you don't mind clicking through a bunch of javascript alerts, you could <a href="http://gplv3.fsf.org/comments/konqueror">peek at our Konqueror progress</a>.  You'll still need to <a href="/comments/email.html">email your comments</a> instead, or try another recent Gecko-based browser.  But you can <a href="http://gplv3.fsf.org/comments/rt/readsay.html?Query=%20'CF.NoteUrl'%20LIKE%20'gplv3-draft-1'%20&amp;Order=DESC">browse</a> and <a href="http://gplv3.fsf.org/comments/rt/changeshown.html?came_from=rt/readsay.html">search</a> comments on any browser.</span>      <span id="querydiv" style="display:none"></span>
45           <span id="login" class="login"></span>
46 </div>
47       <div class="portlet" id="portlet-dogear">
48         <div class="portletBody">
49           <img alt="" src="http://gplv3.fsf.org/dogear.png" />
50         </div>
51       </div>
52
53    <h1 id="portal-logo">
54      <a href="http://gplv3.fsf.org" accesskey="1">GPLv3</a>
55 </h1>
56
57     <ul id="portal-globalnav">
58         <li class="plain">
59             <a href="http://gplv3.fsf.org">Home</a></li>
60         <li class="selected">
61             <a href="http://gplv3.fsf.org/comments/">Comments</a></li>
62         <li class="plain">
63             <a href="http://gplv3.fsf.org/wiki/">Wiki</a></li>
64         <li class="plain">
65             <a href="http://gplv3.fsf.org/press">Press</a></li>
66         <li id="portaltab-support" class="plain">
67             <a href="http://gplv3.fsf.org/support">Support</a></li>
68     </ul>
69
70 <ul id="portal-personaltools">
71 </ul>
72          
73
74
75         <div id="maintext">
76           <xsl:apply-templates/>
77         </div>
78
79 <!--    <div id="bottombar">
80         <a href="stet-latest.tar.gz">get the latest source code for this comment system</a>
81         </div>   -->
82       </body>
83     </html>
84   </xsl:template>
85
86
87
88   <xsl:template match="//head">
89     <section id="title"><h1><p id="title.0"><sent id="title.0.0"><xsl:value-of select="title"/></sent></p></h1>
90     <p id="title.1"><sent id="title.1.0"><xsl:value-of select="pubdate"/></sent></p>
91     <p id="status.0"><sent id="status.0.0"><strong><xsl:value-of select="status"/></strong></sent></p>
92     <p id="copyright.0"><sent id="copyright.0.0">Copyright (C) <xsl:value-of select="copyright/year"/>
93    
94     <xsl:text> </xsl:text>
95     <xsl:value-of select="copyright/holder"/>
96     <br/>
97     <xsl:value-of select="legalnotice/address/street"/>
98     <xsl:text> </xsl:text>
99     <xsl:value-of select="legalnotice/address/city"/>
100     <xsl:text> </xsl:text>
101     <xsl:value-of select="legalnotice/address/state"/>
102     <xsl:text> </xsl:text>
103     <xsl:value-of select="legalnotice/address/postcode"/>
104     <xsl:text> </xsl:text>
105     <xsl:value-of select="legalnotice/address/country"/>
106     <br/> <br/>
107     <xsl:value-of select="legalnotice/p"/>
108     </sent></p>
109     </section>   
110
111   </xsl:template>
112  
113   <xsl:template match="//body">
114     <p><a href="javascript:XpathSel()">select some text and then type "c" to submit comments.</a></p>
115 <!--    <p>Toggle display of <a href="javascript:toggle('add')">additions</a> | <a href="javascript:toggle('del')">deletions</a> [none yet on these documents]</p> -->
116
117     <xsl:for-each select="section">
118       <section id="{@id}" name="{@id}">
119        <p class="sectTitle" id="{@id}.0"><sent id="{@id}.0.0"><xsl:value-of select="title"/></sent></p>
120        <p class="sectTitle sub" id="{@id}.0.0.0"><sent id="{@id}.0.0.0.0"><xsl:value-of select="subtitle"/></sent></p>
121         <xsl:for-each select="p">
122           <p id="{@id}" name="{@id}">
123             <xsl:for-each select="sent">
124               <sent id="{@id}" name="{@id}">
125                 <xsl:apply-templates select='node()|@*' />
126                 <xsl:text>  </xsl:text>
127               </sent>
128             </xsl:for-each>
129             <xsl:if test="orderedlist/listitem/p">
130               <ol type="a">
131                 <xsl:for-each select="orderedlist/listitem/p">
132                   <li>
133                     <xsl:for-each select="sent">
134                       <xsl:apply-templates select='node()|@*' />
135                       <!-- <sent id="{@id}">
136                         <xsl:copy-of select="del|add"/>
137                         <xsl:value-of select="."/>                     
138                       </sent> -->
139                      
140                     </xsl:for-each>
141                   </li>
142                 </xsl:for-each>
143               </ol>
144             </xsl:if>
145           </p>
146         </xsl:for-each>
147       </section>
148     </xsl:for-each>
149
150   </xsl:template>
151
152 <xsl:template match="node()|@*">
153   <xsl:copy>
154     <xsl:apply-templates select="node()|@*" />
155   </xsl:copy>
156 </xsl:template>
157
158 <xsl:template match="del|add">
159   <em class="{name(.)}" reason="{@reason}">
160     <xsl:value-of select="."/>
161   </em>
162 </xsl:template>
163
164 <xsl:template match="//sent[@id='terms.0.p2.s1']">
165   <span class="highlight"><xsl:value-of select="."/></span>
166 </xsl:template>
167
168
169 </xsl:stylesheet>
170
Note: See TracBrowser for help on using the browser.

SFLC Main Page

[frdm] Support SFLC