| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 3 |
<xsl:output method="xml" |
| 4 |
indent="yes" omit-xml-declaration="no" encoding="utf-8"/> |
| 5 |
|
| 6 |
<!-- default rule --> |
| 7 |
<xsl:template match="*" mode="conv65to66"> |
| 8 |
<xsl:copy> |
| 9 |
<xsl:copy-of select="@*"/> |
| 10 |
<xsl:apply-templates mode="conv65to66"/> |
| 11 |
</xsl:copy> |
| 12 |
</xsl:template> |
| 13 |
|
| 14 |
<!-- version update --> |
| 15 |
<para xmlns="http://docbook.org/ns/docbook"> |
| 16 |
Changed attribute <tag class="attribute">schemaversion</tag> |
| 17 |
to <tag class="attribute">schemaversion</tag> from |
| 18 |
<literal>6.5</literal> to <literal>6.6</literal>. |
| 19 |
</para> |
| 20 |
<xsl:template match="image" mode="conv65to66"> |
| 21 |
<xsl:choose> |
| 22 |
<!-- nothing to do if already at 6.6 --> |
| 23 |
<xsl:when test="@schemaversion > 6.5"> |
| 24 |
<xsl:copy-of select="."/> |
| 25 |
</xsl:when> |
| 26 |
<!-- otherwise apply templates --> |
| 27 |
<xsl:otherwise> |
| 28 |
<image schemaversion="6.6"> |
| 29 |
<xsl:copy-of select="@*[local-name() != 'schemaversion']"/> |
| 30 |
<xsl:apply-templates mode="conv65to66"/> |
| 31 |
</image> |
| 32 |
</xsl:otherwise> |
| 33 |
</xsl:choose> |
| 34 |
</xsl:template> |
| 35 |
|
| 36 |
<!-- toplevel processing instructions and comments --> |
| 37 |
<xsl:template match="processing-instruction()|comment()" mode="conv65to66"> |
| 38 |
<xsl:copy> |
| 39 |
<xsl:copy-of select="@*"/> |
| 40 |
<xsl:apply-templates mode="conv65to66"/> |
| 41 |
</xsl:copy> |
| 42 |
</xsl:template> |
| 43 |
|
| 44 |
<para xmlns="http://docbook.org/ns/docbook"> |
| 45 |
Add xen_server attribute to type for dom0 configurations |
| 46 |
</para> |
| 47 |
<xsl:template match="type[machine[@domain='dom0']]" mode="conv65to66"> |
| 48 |
<type> |
| 49 |
<xsl:copy-of select="@*"/> |
| 50 |
<xsl:attribute name="xen_server"> |
| 51 |
<xsl:value-of select="'true'"/> |
| 52 |
</xsl:attribute> |
| 53 |
<xsl:apply-templates mode="conv65to66"/> |
| 54 |
</type> |
| 55 |
</xsl:template> |
| 56 |
|
| 57 |
<para xmlns="http://docbook.org/ns/docbook"> |
| 58 |
Delete domain attribute from machine sections |
| 59 |
</para> |
| 60 |
<xsl:template match="machine" mode="conv65to66"> |
| 61 |
<machine> |
| 62 |
<xsl:copy-of select="@*[not(local-name(.) = 'domain')]"/> |
| 63 |
<xsl:variable name="domain_name" select="@domain"/> |
| 64 |
<xsl:apply-templates mode="conv65to66"/> |
| 65 |
</machine> |
| 66 |
</xsl:template> |
| 67 |
|
| 68 |
</xsl:stylesheet> |