/[suikacvs]/webroot/chuubu/2002/seibutsu/nama-xhtml1.xslt
Suika

Contents of /webroot/chuubu/2002/seibutsu/nama-xhtml1.xslt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Wed May 5 23:54:06 2004 UTC (20 years, 11 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -0 lines
Updated

1 wakaba 1.1 <?xml version="1.0" encoding="iso-2022-jp"?>
2     <s:stylesheet
3     xmlns:s="http://www.w3.org/1999/XSL/Transform"
4     xmlns=""
5     xmlns:h1="http://www.w3.org/1999/xhtml"
6     xmlns:h2="http://www.w3.org/2002/06/xhtml2"
7     xmlns:d="http://suika.fam.cx/~wakaba/-temp/2004/04/21/nama#"
8     version="1.0">
9     <s:output
10     encoding="iso-2022-jp"
11     method="html"/>
12    
13     <s:template match="/d:diary">
14     <html>
15     <s:if test="@xml:lang">
16     <s:attribute name="lang"><s:value-of select="@xml:lang"/></s:attribute>
17     </s:if>
18     <head>
19     <title><s:apply-templates select="child::h2:h"/></title>
20     <meta name="author" content="$B$A$e!<$V9b9;$J$^$b$NIt(B" />
21     <link rev="made" href="mailto:chuubu@suika.fam.cx" />
22     <link rel="stylesheet" href="/s/default/xhtml1" media="all" />
23     <link rel="shortcut icon" href="/chuubu/favicon.ico" type="application/vnd.microsoft.icon" />
24 wakaba 1.2 <link rel="next" href="http://fuyuki.jugem.cc/" />
25 wakaba 1.1 </head>
26     <body>
27     <h1><s:apply-templates select="child::h2:h"/></h1>
28    
29     <s:apply-templates select="child::d:day"/>
30     </body>
31     </html>
32     </s:template>
33    
34     <s:template match="d:day">
35     <div class="section day">
36     <h2 id="D{@year}-{@month}-{@day}">
37     <s:value-of select="concat (@year, '$BG/(B', @month, '$B7n(B', @day, '$BF|(B')"/>
38     </h2>
39    
40     <div class="body">
41     <div class="main">
42     <s:apply-templates select="child::h2:section"/>
43     </div>
44    
45     <s:if test="child::d:comment">
46     <dl class="comments">
47     <s:apply-templates select="child::d:comment"/>
48     </dl>
49     </s:if>
50     </div>
51     </div>
52     </s:template>
53    
54     <s:template match="h2:section">
55     <div class="section">
56     <h3>
57     <s:apply-templates select="child::h2:h"/>
58     </h3>
59    
60     <div class="body">
61     <s:apply-templates select="child::*[not (local-name() = 'h' or local-name() = 'author')]"/>
62     </div>
63     </div>
64     </s:template>
65    
66     <s:template match="d:comment">
67     <dt><s:apply-templates select="child::d:author"/></dt>
68     <dd><s:apply-templates select="child::*[not (local-name() = 'author')]"/></dd>
69     </s:template>
70    
71     <s:template match="h2:p">
72     <p><s:apply-templates/></p>
73     </s:template>
74    
75     <s:template match="d:fig">
76     <div class="fig">
77     <div class="body"><s:apply-templates select="child::d:figBody"/></div>
78     <div class="caption"><s:apply-templates select="child::d:caption"/></div>
79     </div>
80     </s:template>
81    
82     <s:template match="h2:a">
83     <a href="{@href}" title="URI $B;2>H(B: &lt;{@href}>"><s:apply-templates/></a>
84     </s:template>
85    
86     <s:template match="h1:img">
87     <img src="{@src}" alt="{@alt}"/>
88     </s:template>
89    
90     </s:stylesheet>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24