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
5 omit-xml-declaration="no"
\r
9 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
\r
10 doctype-system="http://www.w3.org/TR/html4/loose.dtd"
\r
12 <xsl:template match="/">
\r
13 <xsl:apply-templates/>
\r
16 <xsl:template match="comic">
\r
17 <html xmlns:v="urn:schemas-microsoft-com:vml">
\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
28 <xsl:if test="@subtitle">
\r
29 <xsl:value-of select="concat(@episode,' | ')"/>
\r
31 <xsl:value-of select="@title" />
\r
32 <xsl:if test="@author">
\r
33 <xsl:value-of select="concat(' | ',@author)"/>
\r
36 <link rel='index' title='index | pettanR' href='http://pettanr.sourceforge.jp/index.html' />
\r
37 <link rel='start' title='pettanR' href='http://pettanr.sourceforge.jp/' />
\r
38 <link rel="stylesheet" type="text/css" href="../stylesheets/common.css" />
\r
39 <link rel="stylesheet" type="text/css" href="pettanr.css" />
\r
42 <div id="general-content">
\r
43 <div id="outer-wrapper">
\r
46 <div class="base-content-width" style="position:relative;">
\r
47 <h1><a href="http://pettanr.sourceforge.jp/">pettanR</a></h1>
\r
48 <div id="global-navi">
\r
49 <noscript id="noscript-alert">You need to have JavaScript enabled.</noscript>
\r
54 <div id="inner-wrapper" class="base-content-width">
\r
56 <div id="breadcrumb"><a href="index.html">テスト インデックス</a> > xml テスト</div>
\r
57 <h2><xsl:value-of select="@title" /></h2>
\r
58 <h3><xsl:value-of select="@episode" /></h3>
\r
59 <p class='author'>author:<xsl:value-of select="@author" /></p>
\r
60 <div id="panelContainer">
\r
61 <xsl:attribute name="style">
\r
62 <xsl:value-of select="concat('width:',@w,'px;')"/>
\r
65 <xsl:apply-templates/>
\r
72 <div id="footer-content"><!-- #BeginLibraryItem "/Library/footer.lbi" -->
\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
86 <li><a href="../test/index.html">Test Index</a></li>
\r
90 <div class="footer-item-wrapper">
\r
91 <div class="footer-item">
\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
101 <div class="footer-item-wrapper">
\r
102 <div class="footer-item">
\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
108 <h2>Ajax contents</h2>
\r
110 <li><a href="jp.xml">help | jp</a></li>
\r
114 <div class="footer-item-wrapper" style="width:170px;">
\r
115 <div class="footer-item" style="padding-right:0;">
\r
120 <li><a href="../diary/itozyun.xml">itozyun's diary</a></li>
\r
128 <div id="copyright">Copyright (c) <xsl:value-of select="/comic/@author" />, comic publishing system 'pettanR' is powered by pettanR team.</div>
\r
129 </div><!-- #EndLibraryItem --></div>
\r
130 <script type="text/javascript" src="../javascripts/common.js"></script>
\r
135 <xsl:template match="panel">
\r
136 <div class="panel-wrapper">
\r
137 <xsl:for-each select=".">
\r
138 <div class="panel">
\r
139 <xsl:variable name="height" select="concat('height:',@h,'px;')" />
\r
140 <xsl:variable name="bgcolor" select="concat('background-color:',@bgcolor,';')" />
\r
141 <xsl:attribute name="style">
\r
142 <xsl:value-of select="concat($height,$bgcolor)"/>
\r
144 <xsl:apply-templates/>
\r
147 <xsl:for-each select="./picture">
\r
148 <xsl:if test="@name">
\r
150 <div class="tooltip-container">
\r
151 <xsl:comment><![CDATA[[if lte IE 6]><a href="#"><table><tr><td><![endif]]]></xsl:comment>
\r
152 <img src="4x4.gif" class="image-shadow"><!-- 当初divで書いていたら、ie5.5~8で正しくレンダリングできない。なぜかDomが狂う、、、xsl:attribute name="style"が頭にきたせい? -->
\r
153 <xsl:attribute name="width">
\r
154 <xsl:value-of select="@w"/>
\r
156 <xsl:attribute name="height">
\r
157 <xsl:value-of select="@h"/>
\r
159 <xsl:attribute name="style">
\r
160 <xsl:value-of select="concat('left:',@x,'px;','top:',@y,'px;')"/>
\r
163 <dl class="tooltip">
\r
164 <xsl:attribute name="style">
\r
165 <xsl:value-of select="concat('margin-left:',position(),'9px;left:',/comic/@w,'px;','top:',@y,'px;')"/><!-- 要素が完全に重なることを防ぐためにposition()で要素のindexを取ってmargin-leftしている -->
\r
168 <dd><xsl:value-of select="@name" /></dd>
\r
170 <dd><xsl:value-of select="@author" /></dd>
\r
172 <dd><xsl:value-of select="@site" /></dd>
\r
174 <xsl:comment><![CDATA[[if lte IE 6]></td></tr></table></a><![endif]]]></xsl:comment>
\r
182 <xsl:template match="picture">
\r
183 <xsl:for-each select=".">
\r
185 <xsl:attribute name="src">
\r
186 <xsl:value-of select="@url"/>
\r
188 <xsl:attribute name="width">
\r
189 <xsl:value-of select="@w"/>
\r
191 <xsl:attribute name="height">
\r
192 <xsl:value-of select="@h"/>
\r
194 <xsl:variable name="left" select="concat('left:',@x,'px;')" />
\r
195 <xsl:variable name="top" select="concat('top:',@y,'px;')" />
\r
196 <xsl:attribute name="style">
\r
197 <xsl:value-of select="concat($left,$top)"/>
\r
203 <xsl:template match="balloon">
\r
204 <xsl:for-each select=".">
\r
206 <xsl:variable name="type">
\r
207 <xsl:if test="contains(@type,'0')">../system_pictures/_w</xsl:if>
\r
208 <xsl:if test="contains(@type,'1')">../system_pictures/think</xsl:if>
\r
210 <xsl:attribute name="src">
\r
211 <xsl:value-of select="concat($type,@tail,'.gif')"/>
\r
213 <xsl:attribute name="width">
\r
214 <xsl:value-of select="@w"/>
\r
216 <xsl:attribute name="height">
\r
217 <xsl:value-of select="@h"/>
\r
219 <xsl:variable name="left" select="concat('left:',@x,'px;')" />
\r
220 <xsl:variable name="top" select="concat('top:',@y,'px;')" />
\r
221 <xsl:attribute name="style">
\r
222 <xsl:value-of select="concat($top,$left)"/>
\r
226 <div class="speach">
\r
227 <xsl:variable name="width" select="concat('width:',@w,'px;')" />
\r
228 <xsl:variable name="height" select="concat('height:',@h,'px;')" />
\r
229 <xsl:variable name="left2" select="concat('left:',@x,'px;')" />
\r
230 <xsl:variable name="top2" select="concat('top:',@y,'px;')" />
\r
231 <xsl:variable name="fontsize">
\r
232 <xsl:if test="@size">
\r
233 <xsl:value-of select="concat('font-size:',@size,'px;')"/>
\r
236 <xsl:variable name="fontbold">
\r
237 <xsl:if test="@bold">font-weight:bold;</xsl:if>
\r
239 <xsl:attribute name="style">
\r
240 <xsl:value-of select="concat($width,$height,$top2,$left2,$fontsize,$fontbold)"/>
\r
242 <xsl:comment><![CDATA[[if lte IE 7]><table><tr><td><![endif]]]></xsl:comment>
\r
244 <xsl:apply-templates/>
\r
246 <xsl:comment><![CDATA[[if lte IE 7]></td></tr></table><![endif]]]></xsl:comment>
\r