| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<xsl:stylesheet version="1.0" |
| 3 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 4 |
<xsl:output method="xml" |
| 5 |
indent="yes" omit-xml-declaration="no" encoding="utf-8"/> |
| 6 |
<xsl:strip-space elements="type"/> |
| 7 |
|
| 8 |
<!-- default rule --> |
| 9 |
<xsl:template match="*" mode="conv43to44"> |
| 10 |
<xsl:copy> |
| 11 |
<xsl:copy-of select="@*"/> |
| 12 |
<xsl:apply-templates mode="conv43to44"/> |
| 13 |
</xsl:copy> |
| 14 |
</xsl:template> |
| 15 |
|
| 16 |
<!-- version update --> |
| 17 |
<para xmlns="http://docbook.org/ns/docbook"> |
| 18 |
Changed attribute <tag class="attribute">schemaversion</tag> |
| 19 |
to <tag class="attribute">schemaversion</tag> from |
| 20 |
<literal>4.3</literal> to <literal>4.4</literal>. |
| 21 |
</para> |
| 22 |
<xsl:template match="image" mode="conv43to44"> |
| 23 |
<xsl:choose> |
| 24 |
<!-- nothing to do if already at 4.4 --> |
| 25 |
<xsl:when test="@schemaversion > 4.3"> |
| 26 |
<xsl:copy-of select="."/> |
| 27 |
</xsl:when> |
| 28 |
<!-- otherwise apply templates --> |
| 29 |
<xsl:otherwise> |
| 30 |
<image schemaversion="4.4"> |
| 31 |
<xsl:copy-of select="@*[local-name() != 'schemaversion']"/> |
| 32 |
<xsl:apply-templates mode="conv43to44"/> |
| 33 |
</image> |
| 34 |
</xsl:otherwise> |
| 35 |
</xsl:choose> |
| 36 |
</xsl:template> |
| 37 |
|
| 38 |
<!-- toplevel processing instructions and comments --> |
| 39 |
<xsl:template match="processing-instruction()|comment()" mode="conv43to44"> |
| 40 |
<xsl:copy> |
| 41 |
<xsl:copy-of select="@*"/> |
| 42 |
<xsl:apply-templates mode="conv43to44"/> |
| 43 |
</xsl:copy> |
| 44 |
</xsl:template> |
| 45 |
|
| 46 |
<!-- remove commandline element --> |
| 47 |
<para xmlns="http://docbook.org/ns/docbook"> |
| 48 |
Remove compressed element as it was moved into the type |
| 49 |
represented as attribute kernelcmdline |
| 50 |
</para> |
| 51 |
<xsl:template match="node()|@*"> |
| 52 |
<xsl:copy> |
| 53 |
<xsl:apply-templates select="node()|@*" mode="conv43to44"/> |
| 54 |
</xsl:copy> |
| 55 |
</xsl:template> |
| 56 |
<xsl:template match="commandline" mode="conv43to44"/> |
| 57 |
|
| 58 |
</xsl:stylesheet> |