OSDN Git Service

building XDocument..
[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/site.css" />\r
36                         <link rel="stylesheet" type="text/css" href="../stylesheets/peta.common.css" />\r
37                         <link rel="stylesheet" type="text/css" href="../stylesheets/system.css" />\r
38                 </head>\r
39                 <body>\r
40                         <div id="general-content">\r
41                                 <div id="outer-wrapper">\r
42                                         \r
43                                         <div id="header">\r
44                                                 <div class="base-content-width" style="position:relative;">\r
45                                                         <h1><a href="http://pettanr.sourceforge.jp/">pettanR</a></h1>\r
46                                                         <div id="global-navi">\r
47                                                                 <noscript id="noscript-alert">You need to have JavaScript enabled.</noscript>\r
48                                                         </div>\r
49                                                 </div>\r
50                                         </div>\r
51                                         \r
52                                         <div id="inner-wrapper" class="base-content-width">\r
53                                                 <div id="main">\r
54                                                         <h2><xsl:value-of select="@title" /></h2>\r
55                                                         <dl class="dl-table clearfix">\r
56                                                                 <dt>author</dt>\r
57                                                                 <dd><xsl:value-of select="@author" /></dd>\r
58                                                                 <dt>description</dt>\r
59                                                                 <dd><xsl:value-of select="@description" /></dd>\r
60                                                                 <dt>published</dt>\r
61                                                                 <dd><xsl:value-of select="@published" /></dd>\r
62                                                                 <dt>updated</dt>\r
63                                                                 <dd><xsl:value-of select="@direction" /></dd>\r
64                                                         </dl>\r
65                                                         \r
66                                                         <xsl:apply-templates/>\r
67                                                 </div>\r
68                                         </div>\r
69                                 </div>\r
70                         </div>\r
71                         \r
72                         <div id="footer-content"><!-- #BeginLibraryItem "/Library/footer.lbi" -->\r
73 \r
74         <div id="footer">\r
75             <div id="footer-item-container" class="base-content-width clearfix">\r
76                 <div class="footer-item-wrapper">\r
77                     <div class="footer-item">\r
78                         <h2>ぺったんR にようこそ</h2>\r
79                         <ul>\r
80                             <li>サンプル</li>\r
81                             <li>ぺったんRの特徴</li>\r
82                             <li>沿革</li>\r
83                         </ul>\r
84                         <h2>Test</h2>\r
85                         <ul>\r
86                             <li><a href="../test/index.html">Test Index</a></li>\r
87                         </ul>\r
88                     </div>\r
89                 </div>\r
90                 <div class="footer-item-wrapper">\r
91                     <div class="footer-item">\r
92                         <h2>ドキュメント</h2>\r
93                         <ul>\r
94                             <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForAuthors" rel="me" target="_blank">作家向けドキュメント</a></li>\r
95                             <li>絵師向けドキュメント</li>                                                     \r
96                             <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForDevelopers" rel="me" target="_blank">開発者向けドキュメント</a></li>\r
97                             <li><a href="http://sourceforge.jp/projects/pettanr/wiki/ForWebmasters" rel="me" target="_blank">編集長向けドキュメント</a></li>\r
98                         </ul>\r
99                     </div>\r
100                 </div>\r
101                 <div class="footer-item-wrapper">\r
102                     <div class="footer-item">\r
103                         <h2>プロトタイプ</h2>\r
104                         <ul>\r
105                             <li><a href="http://pettanr.heroku.com/" rel="me" target="_blank">pettanr.heroku.com</a></li>\r
106                             <li><a href="../work.html" rel="console">ユーザーコンソール</a></li>\r
107                         </ul>\r
108                         <h2>Ajax contents</h2>\r
109                         <ul>\r
110                             <li><a href="../help/jp.xml">help | jp</a></li>\r
111                         </ul>\r
112                     </div>\r
113                 </div>\r
114                 <div class="footer-item-wrapper" style="width:170px;">\r
115                     <div class="footer-item" style="padding-right:0;">\r
116                         <h2>ぺったんRチーム</h2>\r
117                         <ul>\r
118                             <li>わたしたちについて</li>\r
119                             <li>ミッション</li>\r
120                             <li><a href="itozyun.xml">itozyun's diary</a></li>\r
121                             <li>個人情報保護方針</li>\r
122                             <li>作品の取り扱い</li>\r
123                             <li>お問い合わせ</li>\r
124                         </ul>\r
125                     </div>\r
126                 </div>\r
127             </div>\r
128             <div id="copyright">Copyright (c) 2011-2012 pettanR team, some rights reserved.</div>\r
129         </div><!-- #EndLibraryItem --></div>\r
130                         <script type="text/javascript" src="../javascripts/common.js"></script>\r
131                 </body>\r
132         </html>\r
133 </xsl:template>\r
134 \r
135     <xsl:template match="entry">\r
136                 <xsl:for-each select=".">\r
137                         <h3><xsl:value-of select="@pubdate"/></h3>\r
138                         <pre><xsl:apply-templates/></pre>\r
139                 </xsl:for-each>         \r
140     </xsl:template>\r
141 \r
142 </xsl:stylesheet>