Software Freedom Law Center

root/tags/went-live-on-2006-01-20/selectxpath.xsl

Revision 13, 6.4 kB (checked in by orion, 3 years ago)

trying for more browser compatibility with sarissa

  • Property svn:executable set to
Line 
1 <!-- Copyright (C) 2005   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="/">
31     <html>
32       <head>
33         <title><xsl:value-of select="//head/title"/></title>
34         <script type="text/javascript" src="stet.js"/>
35         <script type="text/javascript" language="javascript">
36 window.onload = initPage();
37 </script>
38
39         <link rel="stylesheet" type="text/css" href="stet.css"/>
40       </head>
41       <body onkeypress="checkKeyPressed(event);" bgcolor="#FFFFFF">
42 <div id="topbar" class="topbar">
43 <span id="statustext" class="statustext">Loading comments.  If you're still reading this, it's a strong indication that we do not properly support your browser yet.  You may need to <a href="/comments/email.html">email your comments</a> instead, or try another recent Gecko-based browser.</span>   <span id="querydiv" style="display:none"></span>
44           <span id="login" class="login"></span>
45 </div>
46       <div class="portlet" id="portlet-dogear">
47         <div class="portletBody">
48           <img alt="" src="http://gplv3.fsf.org/dogear.png" />
49         </div>
50       </div>
51
52    <h1 id="portal-logo">
53      <a href="http://gplv3.fsf.org" accesskey="1">GPLv3</a>
54 </h1>
55
56     <ul id="portal-globalnav">
57         <li class="plain">
58             <a href="http://gplv3.fsf.org">Home</a></li>
59         <li class="selected">
60             <a href="http://gplv3.fsf.org/comments/">Comments</a></li>
61         <li class="plain">
62             <a href="http://gplv3.fsf.org/wiki/">Wiki</a></li>
63         <li class="plain">
64             <a href="http://gplv3.fsf.org/press">Press</a></li>
65     </ul>
66
67 <ul id="portal-personaltools">
68 </ul>
69          
70
71
72         <div id="maintext">
73           <xsl:apply-templates/>
74         </div>
75         <!--        <div id="noteify">
76           <span id="newNoteDomPathTxt" class="newNoteDomPathTxt">empty</span>
77           <input id="newNoteDomPath" name="newNoteDomPath" type="hidden" value="dompath"/><br/>
78           <span id="newNoteSelectionTxt" class="newNoteSelectionTxt">empty</span>
79           <input id="newNoteSelection" name="newNoteSelection" type="hidden" value="selection"/><br/>
80
81           <textarea id="newNoteText" name="newNoteText" rows="20" cols="20"/>
82         </div> -->
83       </body>
84     </html>
85   </xsl:template>
86
87
88
89   <xsl:template match="//head">
90     <section id="title"><h1><p id="title.0"><sent id="title.0.0"><xsl:value-of select="title"/></sent></p></h1>
91     <p id="title.1"><sent id="title.1.0"><xsl:value-of select="pubdate"/></sent></p>
92     <p id="status.0"><sent id="status.0.0"><strong><xsl:value-of select="status"/></strong></sent></p>
93     <p id="copyright.0"><sent id="copyright.0.0">Copyright (C) <xsl:value-of select="copyright/year"/>
94    
95     <xsl:text> </xsl:text>
96     <xsl:value-of select="copyright/holder"/>
97     <br/>
98     <xsl:value-of select="legalnotice/address/street"/>
99     <xsl:text> </xsl:text>
100     <xsl:value-of select="legalnotice/address/city"/>
101     <xsl:text> </xsl:text>
102     <xsl:value-of select="legalnotice/address/state"/>
103     <xsl:text> </xsl:text>
104     <xsl:value-of select="legalnotice/address/postcode"/>
105     <xsl:text> </xsl:text>
106     <xsl:value-of select="legalnotice/address/country"/>
107     <br/> <br/>
108     <xsl:value-of select="legalnotice/p"/>
109     </sent></p>
110     </section>   
111
112   </xsl:template>
113  
114   <xsl:template match="//body">
115     <p><a href="javascript:XpathSel()">select some text and then type "c" to submit comments.</a></p>
116 <!--    <p>Toggle display of <a href="javascript:toggle('add')">additions</a> | <a href="javascript:toggle('del')">deletions</a> [none yet on these documents]</p> -->
117
118     <xsl:for-each select="section">
119       <section id="{@id}" name="{@id}">
120        <p class="sectTitle" id="{@id}.0"><sent id="{@id}.0.0"><xsl:value-of select="title"/></sent></p>
121        <p class="sectTitle sub" id="{@id}.0.0.0"><sent id="{@id}.0.0.0.0"><xsl:value-of select="subtitle"/></sent></p>
122         <xsl:for-each select="p">
123           <p id="{@id}" name="{@id}">
124             <xsl:for-each select="sent">
125               <sent id="{@id}" name="{@id}">
126                 <xsl:apply-templates select='node()|@*' />
127                 <xsl:text>  </xsl:text>
128               </sent>
129             </xsl:for-each>
130             <xsl:if test="orderedlist/listitem/p">
131               <ol type="a">
132                 <xsl:for-each select="orderedlist/listitem/p">
133                   <li>
134                     <xsl:for-each select="sent">
135                       <xsl:apply-templates select='node()|@*' />
136                       <!-- <sent id="{@id}">
137                         <xsl:copy-of select="del|add"/>
138                         <xsl:value-of select="."/>                     
139                       </sent> -->
140                      
141                     </xsl:for-each>
142                   </li>
143                 </xsl:for-each>
144               </ol>
145             </xsl:if>
146           </p>
147         </xsl:for-each>
148       </section>
149     </xsl:for-each>
150
151   </xsl:template>
152
153 <xsl:template match="node()|@*">
154   <xsl:copy>
155     <xsl:apply-templates select="node()|@*" />
156   </xsl:copy>
157 </xsl:template>
158
159 <xsl:template match="del|add">
160   <em class="{name(.)}" reason="{@reason}">
161     <xsl:value-of select="."/>
162   </em>
163 </xsl:template>
164
165 <xsl:template match="//sent[@id='terms.0.p2.s1']">
166   <span class="highlight"><xsl:value-of select="."/></span>
167 </xsl:template>
168
169
170 </xsl:stylesheet>
171
Note: See TracBrowser for help on using the browser.

SFLC Main Page

[frdm] Support SFLC