| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
<!-- A stylesheet to convert a datalink UWS joblist to HTML; this make |
| 4 |
datalink UWS usable in a web browser. |
| 5 |
|
| 6 |
This stylesheet is made available under CC-0 by the GAVO project, |
| 7 |
http://www.g-vo.org. |
| 8 |
See http://creativecommons.org/publicdomain/zero/1.0/ for details. |
| 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">dlasync/<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>Async data access job list</title></head> |
| 36 |
<meta name="robots" content="nofollow"/> |
| 37 |
<body> |
| 38 |
<h1>Async datalink jobs</h1> |
| 39 |
<ul> |
| 40 |
<xsl:apply-templates/> |
| 41 |
</ul> |
| 42 |
<h1>Create a data access job</h1> |
| 43 |
<form action="dlasync" method="POST"> |
| 44 |
<h2>Create a new async job</h2> |
| 45 |
<p><label for="pubdid">PubDID:</label> |
| 46 |
<input type="text" name="ID" id="pubdid"/></p> |
| 47 |
<p><input type="submit" value="New job..."/></p> |
| 48 |
</form> |
| 49 |
</body> |
| 50 |
</html> |
| 51 |
</xsl:template> |
| 52 |
</xsl:stylesheet> |