OSDN Git Service

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