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">
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,'_', ' ')"/>
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>
16 <xsl:template match=
"/">
17 <html xmlns=
"http://www.w3.org/1999/xhtml">
19 <title>VPS; Do you need an other argument to migrate?
</title>
20 <link rel=
"stylesheet" type=
"text/css" href=
"/css/default.css" />
23 <img src=
"/images/vps.png" alt=
"VPS" />
24 <xsl:apply-templates />