Intermediate update... consider this version completely broken
[handlervirt.git] / default.xsl
blobb6d17b37b105d5282c7a2f3168cdfde5b3a2789b
1 <?xml version="1.0"?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3 <xsl:output method="html" indent="yes"/>
4 <xsl:template match="/domain">
5 <br />
6 <img src="/images/{./os/type}.png" alt="{./os/type}" style="float: left;"/>
7 <a href="/virt/{translate(./name,'_', '/')}/virDomainShutdown" style="background-image: url('/images/power.png'); background-repeat: no-repeat; display: block; width: 45px; height: 47px; font-size: 0; float: left;">Shutdown</a>
8 <a href="/virt/{translate(./name,'_', '/')}/virDomainReboot" style="background-image: url('/images/reboot.png'); background-repeat: no-repeat; display: block; width: 45px; height: 47px; font-size: 0; float: left;">Reboot</a>
9 <xsl:value-of select="translate(./name,'_', ' ')"/>
10 </xsl:template>
12 <xsl:template match="domain">
13 <a href="/virt/{translate(./name,'_', '/')}" style="display: block; width: 4em; height: 4em; text-align: center; border: 1px black solid; vertical-align: middle; background-color: #fef; text-decoration: none;"><xsl:value-of select="translate(./name,'_', ' ')"/></a>
14 </xsl:template>
16 <xsl:template match="/">
17 <html xmlns="http://www.w3.org/1999/xhtml">
18 <head>
19 <title>VPS; Do you need an other argument to migrate?</title>
20 <link rel="stylesheet" type="text/css" href="/css/default.css" />
21 </head>
22 <body>
23 <img src="/images/vps.png" alt="VPS" />
24 <xsl:apply-templates />
25 </body>
26 </html>
27 </xsl:template>
28 </xsl:stylesheet>