/[suikacvs]/webroot/admin/assign/2005/urimap-main-html.ja.xsl
Suika

Contents of /webroot/admin/assign/2005/urimap-main-html.ja.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download) (as text)
Sat Jun 25 14:02:42 2005 UTC (19 years, 10 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
File MIME type: application/xml
XML representation added

1 wakaba 1.1 <!DOCTYPE t:stylesheet [
2     <!ENTITY s "http://suika.fam.cx/admin/assign/2005/urnreg#">
3     ]>
4     <t:stylesheet version="1.0"
5     xmlns:t="http://www.w3.org/1999/XSL/Transform"
6     xmlns="http://www.w3.org/1999/xhtml"
7     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8     xmlns:prop="http://suika.fam.cx/admin/assign/urn-20050519#DT-"
9     xmlns:map="http://suika.fam.cx/~wakaba/2005/6/uri-table#"
10     xmlns:replace="http://suika.fam.cx/~wakaba/archive/2005/6/replace#"
11     xmlns:s="http://suika.fam.cx/admin/assign/2005/urnreg#"
12     xmlns:dc="http://purl.org/dc/elements/1.1/"
13     xmlns:foaf="http://xmlns.com/foaf/0.1/">
14    
15     <t:import href="/www/2005/urimap/urimap-html.ja.xsl"/>
16    
17     <t:template name="document-class">status-work-in-progress</t:template>
18    
19     <t:template name="document-title">
20     $BEPO?:Q$_(B &lt;urn:x-suika-fam-cx:&gt; sub-nid $B$N0lMw(B
21     </t:template>
22    
23     <t:template name="document-header" xml:space="preserve">
24     <h1>$BEPO?:Q$_(B <code class="URI">&lt;urn:x-suika-fam-cx:&gt;</code>
25     <code class="ABNF" lang="en" xml:lang="en">sub-nid</code> $B$N0lMw(B</h1>
26     </t:template>
27    
28     <t:template name="document-footer">
29     <div class="footer" xml:space="preserve">
30     [<a href="/" rel="home">/</a> <a href="/search/" rel="search">$B8!:w(B</a>]
31     [<a href="/admin/">$B4IM}It(B</a> <a href="/admin/assign/">$BEPO?L>78(B</a>
32     <a href="/admin/assign/urn"><code class="URI"
33     >&lt;urn:x-suika-fam-cx:&gt;</code></a>
34     <a>$BEPO?:Q$_0lMw(B</a>]
35     </div>
36     </t:template>
37    
38     <t:template name="document-style-sheet-uri"
39     >/admin/style/common</t:template>
40    
41     <t:template name="document-style-sheet-add-uri"
42     >/www/style/def/uri</t:template>
43    
44     <t:template name="entry-props">
45     <t:param name="entry"/>
46     <t:param name="entry-type"/>
47    
48     <t:for-each select="$entry/child::s:currentRegistration |
49     $entry/child::s:registration">
50     <t:apply-templates select="/child::rdf:RDF/child::s:Registration
51     [string(attribute::rdf:about) =
52     string(current()/attribute::rdf:resource)]"
53     mode="template"/>
54     </t:for-each>
55    
56     <div class="section">
57     <h3>$B2r7h(B</h3>
58     <dl>
59     <t:call-template name="entry-map-props">
60     <t:with-param name="entry" select="self::node()"/>
61     <t:with-param name="entry-type" select="string($entry-type)"/>
62     </t:call-template>
63     </dl>
64     </div>
65    
66     <t:if test="$entry/child::*[not(self::prop:*) and not (self::s:*) and
67     not(self::map:*)]">
68     <dl>
69     <t:apply-templates
70     select="$entry/child::*[not(self::prop:*) and not (self::s:*) and
71     not(self::map:*)]"/>
72     </dl>
73     </t:if>
74     </t:template>
75    
76     <t:template match="child::s:Registration"/>
77    
78     <t:template match="child::s:Registration" mode="template">
79     <div class="section">
80     <h3>$BEPO?(B ($BBh(B<t:value-of select="child::s:versionNumber"/>$BHG(B)</h3>
81     <dl class="urn-suika-sub-nid-def">
82     <t:apply-templates select="child::*"/>
83     </dl>
84     </div>
85     </t:template>
86    
87     <t:template match="child::s:subNID">
88     <dt><code class="ABNF" lang="en" xml:lang="en">sub-nid</code></dt>
89     <dd><code class="URI"><t:apply-templates/></code></dd>
90     </t:template>
91    
92     <t:template match="child::s:versionNumber">
93     <dt>$BHGHV9f(B</dt>
94     <dd><code><t:apply-templates/></code></dd>
95     </t:template>
96    
97     <t:template match="child::s:registeredDate">
98     <dt>$BEPO?F|(B</dt>
99     <dd><code><t:apply-templates/></code></dd>
100     </t:template>
101    
102     <t:template match="child::s:registrant">
103     <dt>$BEPO?<T(B</dt>
104     <dd><t:apply-templates select="/child::rdf:RDF/child::*
105     [string(attribute::rdf:about) =
106     string(current()/attribute::rdf:resource)]"
107     mode="agent"/></dd>
108     </t:template>
109    
110     <t:template match="child::s:status">
111     <dt>$B>uBV(B</dt>
112     <dd>
113     <t:choose>
114     <t:when test="string(attribute::rdf:resource) = '&s;Status.Deprecated'">
115     $BHs?d>)(B
116     </t:when>
117     <t:when test="string(attribute::rdf:resource) = '&s;Status.Historic'">
118     $BNr;KE*(B
119     </t:when>
120     <t:otherwise>
121     <t:call-template name="uriref">
122     <t:with-param name="uri" select="string(attribute::rdf:resource)"/>
123     </t:call-template>
124     </t:otherwise>
125     </t:choose>
126     </dd>
127     </t:template>
128    
129     <t:template match="child::s:externalSpecification">
130     <dt>$B30It;EMM=q(B</dt>
131     <dd>
132     <t:call-template name="uriref">
133     <t:with-param name="uri" select="string(attribute::rdf:resource)"/>
134     </t:call-template>
135     </dd>
136     </t:template>
137    
138     <t:template match="child::dc:description">
139     <dt>$B@bL@(B</dt>
140     <dd>
141     <t:attribute name="xml:lang">
142     <t:value-of select="attribute::xml:lang"/>
143     </t:attribute>
144     <t:apply-templates/>
145     </dd>
146     </t:template>
147    
148     <t:template match="/child::rdf:*/child::foaf:*"/>
149    
150     <t:template match="/child::rdf:RDF/child::*" mode="agent">
151     <dl>
152     <t:apply-templates/>
153     </dl>
154     </t:template>
155    
156     <t:template match="child::foaf:name">
157     <dt>$BL>A0(B</dt>
158     <dd>
159     <t:attribute name="xml:lang">
160     <t:value-of select="attribute::xml:lang"/>
161     </t:attribute>
162     <t:apply-templates/>
163     </dd>
164     </t:template>
165    
166     <t:template match="child::foaf:mbox">
167     <dt>$BEE;R%a%$%k(B</dt>
168     <dd>
169     <t:choose>
170     <t:when test="starts-with(attribute::rdf:resource, 'mailto:')">
171     <t:call-template name="mailref">
172     <t:with-param name="mail"
173     select="substring(attribute::rdf:resource, 8)"/>
174     </t:call-template>
175     </t:when>
176     <t:otherwise>
177     <t:call-template name="uriref">
178     <t:with-param name="uri" select="string(attribute::rdf:resource)"/>
179     </t:call-template>
180     </t:otherwise>
181     </t:choose>
182     </dd>
183     </t:template>
184    
185     <t:template name="text-uri-group"/>
186     </t:stylesheet>

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24