Debian Codegraph @

gavo/resources/web/xsl/useruws-joblist-to-html.xsl

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!-- A stylesheet to convert a datalink UWS joblist to HTML.
4
5 This stylesheet is made available under CC-0 by the GAVO project,
6 http://www.g-vo.org.
7 See http://creativecommons.org/publicdomain/zero/1.0/ for details.
8 -->
9
10
11 <xsl:stylesheet
12 xmlns:uws="http://www.ivoa.net/xml/UWS/v1.0"
13 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
14 xmlns="http://www.w3.org/1999/xhtml"
15 version="1.0">
16
17
18 <xsl:output method="xml"
19 doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
20 doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"/>
21
22 <xsl:template match="uws:jobref">
23 <li>
24 <a>
25 <xsl:attribute name="href">uws.xml/<xsl:value-of select="@id"/>
26 </xsl:attribute>
27 <xsl:value-of select="@id"/>
28 </a>
29 (<xsl:apply-templates/>)</li>
30 </xsl:template>
31
32 <xsl:template match="/">
33 <html>
34 <head>
35 <title>UWS job list</title></head>
36 <meta name="robots" content="nofollow"/>
37 <body>
38 <h1>UWS jobs</h1>
39 <ul>
40 <xsl:apply-templates/>
41 </ul>
42 <h1>Create a new job</h1>
43 <form action="uws.xml" method="POST">
44 <p><input type="submit" value="New job..."/></p>
45 </form>
46 </body>
47 </html>
48 </xsl:template>
49 </xsl:stylesheet>