OSDN Git Service

a4b5d20e384a6822187581ac82ecf3152445aeff
[pettanr/clientJs.git] / 0.5.x / wiki / wiki.xsl
1 <?xml version="1.0" encoding="utf-8"?>\r
2 <xsl:stylesheet version="1.0"\r
3   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
4   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"\r
5   xmlns="http://www.w3.org/1999/xhtml"\r
6   xmlns:rss="http://purl.org/rss/1.0/"\r
7   xmlns:dc="http://purl.org/dc/elements/1.1/"\r
8   xmlns:content="http://purl.org/rss/1.0/modules/content/"\r
9   exclude-result-prefixes="rdf rss dc content"\r
10 >\r
11     <xsl:output \r
12         omit-xml-declaration="no" \r
13         encoding="utf-8" \r
14         method="html" \r
15         version="1.0" \r
16         doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" \r
17         doctype-system="http://www.w3.org/TR/html4/loose.dtd" \r
18         indent="yes" />\r
19         \r
20 <xsl:template match="rdf:RDF">\r
21   <html xmlns:v="urn:schemas-microsoft-com:vml">\r
22   <head>\r
23                         <meta http-equiv="content-type" content="text/html; charset=UTF-8" />\r
24                         <meta http-equiv="Content-Style-Type" content="text/css" />\r
25                         <meta http-equiv="imagetoolbar" content="no" />\r
26                         <meta name="description">\r
27                                 <xsl:attribute name="content">\r
28                                         <xsl:value-of select="rss:channel/rss:description" />\r
29                                 </xsl:attribute>\r
30                         </meta>\r
31                         <title><xsl:value-of select="rss:channel/rss:title"/></title>\r
32                         \r
33                         <link rel="stylesheet" href="../stylesheets/common.css" type="text/css" />\r
34                         <link rel="stylesheet" href="wiki.css" type="text/css" />\r
35   </head>\r
36   <body>\r
37                         <div id="general-content">\r
38                                 <div id="outer-wrapper">\r
39                                         \r
40                                         <div id="header">\r
41                                                 <div class="base-content-width" style="position:relative;">\r
42                                                         <h1><a href="../index.html"><xsl:value-of select="rss:channel/rss:title"/></a></h1>\r
43                                                         <div id="global-navi">\r
44                                                                 <noscript id="noscript-alert">You need to have JavaScript enabled.</noscript>\r
45                                                         </div>\r
46                                                 </div>\r
47                                         </div>\r
48                                         \r
49                                         <div id="inner-wrapper" class="base-content-width">                                             \r
50                                                 <div id="wiki-container" class="clearfix">\r
51                                                         <ul id="page-navi-container">\r
52                                                                 <li id="page-total">\r
53                                                                         <xsl:value-of select="count(rss:item)"/> pages\r
54                                                                         <span id="boot-time"></span>\r
55                                                                 </li>\r
56                                                                 <xsl:for-each select="./rss:item">\r
57                                                                         <xsl:variable name="index" select="position()"/>\r
58                                                                         <xsl:variable name="top" select="25*$index"/>\r
59                                                                         <li class="page-navi">\r
60                                                                                 <a>\r
61                                                                                         <xsl:attribute name="href">\r
62                                                                                                 <xsl:value-of select="concat('#page',$index)"/>\r
63                                                                                         </xsl:attribute>        \r
64                                                                                         <xsl:value-of select="rss:title"/>\r
65                                                                                 </a>\r
66                                                                         </li>                                                                           \r
67                                                                 </xsl:for-each>\r
68                                                         </ul>\r
69                                                         <div id="page-body-container">\r
70                                                                 <xsl:for-each select="./rss:item">\r
71                                                                         <div class="page-wrapper">\r
72                                                                                 <xsl:variable name="index" select="position()"/>\r
73                                                                                 <xsl:variable name="top" select="25*$index"/>\r
74                                                                                 <xsl:attribute name="id">\r
75                                                                                         <xsl:value-of select="concat('page',$index)"/>\r
76                                                                                 </xsl:attribute>\r
77 \r
78                                                                                 <div class="page-header clearfix">\r
79                                                                                         <span class="page-title"><xsl:value-of select="rss:title"/></span>\r
80                                                                                         <span class="page-date"><xsl:value-of select="substring(dc:date, 1, 10)" /></span>\r
81                                                                                 </div>\r
82                                                                                 \r
83                                                                                 <div class="page-body main clearfix">\r
84                                                                                         <xsl:value-of select="content:encoded" disable-output-escaping="yes"/>\r
85                                                                                 </div>\r
86                                                                                 <a class="jump-to-top">\r
87                                             <xsl:attribute name="href">\r
88                                                 <xsl:value-of select="concat('#page',$index)"/>\r
89                                             </xsl:attribute>\r
90                                             top\r
91                                                                                 </a>\r
92                                                                         </div>\r
93                                                                 </xsl:for-each>\r
94                                                         </div>\r
95                                                 </div>\r
96                                         </div>\r
97                                         \r
98                                 </div>\r
99                         </div>\r
100 \r
101         \r
102                         <div id="footer-content">\r
103                                 <!-- #BeginLibraryItem "/Library/footer.lbi" -->\r
104                                 <div id="footer">\r
105                                                 <div id="footer-item-container" class="base-content-width clearfix">\r
106                                                                 <div class="footer-item-wrapper">\r
107                                                                                 <div class="footer-item">\r
108                                                                                                 <h2>ぺったんR にようこそ</h2>\r
109                                                                                                 <ul>\r
110                                                                                                                 <li>サンプル</li>\r
111                                                                                                                 <li>ぺったんRの特徴</li>\r
112                                                                                                                 <li>沿革</li>\r
113                                                                                                 </ul>\r
114                                                                                                 <h2>Test</h2>\r
115                                                                                                 <ul>\r
116                                                                                                                 <li><a href="../test/index.html">Test Index</a></li>\r
117                                                                                                 </ul>\r
118                                                                                 </div>\r
119                                                                 </div>\r
120                                                                 <div class="footer-item-wrapper">\r
121                                                                                 <div class="footer-item">\r
122                                                                                                 <h2>ドキュメント</h2>\r
123                                                                                                 <ul>\r
124                                                                                                                 <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForAuthors" rel="me" target="_blank">作家向けドキュメント</a></li>\r
125                                                                                                                 <li>絵師向けドキュメント</li>\r
126                                                                                                                 <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForDevelopers" rel="me" target="_blank">開発者向けドキュメント</a></li>\r
127                                                                                                                 <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForWebmasters" rel="me" target="_blank">編集長向けドキュメント</a></li>\r
128                                                                                                 </ul>\r
129                                                                                 </div>\r
130                                                                 </div>\r
131                                                                 <div class="footer-item-wrapper">\r
132                                                                                 <div class="footer-item">\r
133                                                                                                 <h2>プロトタイプ</h2>\r
134                                                                                                 <ul>\r
135                                                                                                                 <li><a href="http://pettanr.heroku.com/" rel="me" target="_blank">pettanr.heroku.com</a></li>\r
136                                                                                                                 <li><a href="../work.html" rel="console">ユーザーコンソール</a></li>\r
137                                                                                                 </ul>\r
138                                                                                                 <h2>Ajax contents</h2>\r
139                                                                                                 <ul>\r
140                                                                                                                 <li><a href="../help/jp.xml">help | jp</a></li>\r
141                                                                                                 </ul>\r
142                                                                                 </div>\r
143                                                                 </div>\r
144                                                                 <div class="footer-item-wrapper" style="width:170px;">\r
145                                                                                 <div class="footer-item" style="padding-right:0;">\r
146                                                                                                 <h2>ぺったんRチーム</h2>\r
147                                                                                                 <ul>\r
148                                                                                                                 <li>わたしたちについて</li>\r
149                                                                                                                 <li>ミッション</li>\r
150                                                                                                                 <li><a href="../diary/itozyun.xml">itozyun's diary</a></li>\r
151                                                                                                                 <li>個人情報保護方針</li>\r
152                                                                                                                 <li>作品の取り扱い</li>\r
153                                                                                                                 <li>お問い合わせ</li>\r
154                                                                                                 </ul>\r
155                                                                                 </div>\r
156                                                                 </div>\r
157                                                 </div>\r
158                                                 <div id="copyright">Copyright (c) 2011-2012 pettanR team, some rights reserved.</div>\r
159                                 </div>\r
160                                 <!-- #EndLibraryItem -->\r
161                         </div>\r
162                         \r
163                         <script type="text/javascript" src="wiki.js"></script>\r
164                         <script type="text/javascript" src="../javascripts/common.js"></script>\r
165                 </body>\r
166         </html>\r
167 </xsl:template>\r
168 \r
169 </xsl:stylesheet>