| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE xsl:stylesheet [ |
| 3 |
<!ENTITY lowercase "'abcdefghijklmnopqrstuvwxyz'"> |
| 4 |
<!ENTITY uppercase "'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"> |
| 5 |
]> |
| 6 |
<xsl:stylesheet version="1.0" |
| 7 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
| 8 |
<xsl:output method="xml" |
| 9 |
indent="yes" omit-xml-declaration="no" encoding="utf-8"/> |
| 10 |
<xsl:strip-space elements="type"/> |
| 11 |
|
| 12 |
<!-- default rule conv48to49 --> |
| 13 |
<xsl:template match="*" mode="conv48to49"> |
| 14 |
<xsl:copy> |
| 15 |
<xsl:copy-of select="@*"/> |
| 16 |
<xsl:apply-templates mode="conv48to49"/> |
| 17 |
</xsl:copy> |
| 18 |
</xsl:template> |
| 19 |
|
| 20 |
<!-- version update --> |
| 21 |
<para xmlns="http://docbook.org/ns/docbook"> |
| 22 |
Changed attribute <tag class="attribute">schemaversion</tag> |
| 23 |
to <tag class="attribute">schemaversion</tag> from |
| 24 |
<literal>4.8</literal> to <literal>4.9</literal>. |
| 25 |
</para> |
| 26 |
<xsl:template match="image" mode="conv48to49"> |
| 27 |
<xsl:choose> |
| 28 |
<!-- nothing to do if already at 4.9 --> |
| 29 |
<xsl:when test="@schemaversion > 4.8"> |
| 30 |
<xsl:copy-of select="."/> |
| 31 |
</xsl:when> |
| 32 |
<!-- otherwise apply templates --> |
| 33 |
<xsl:otherwise> |
| 34 |
<image schemaversion="4.9"> |
| 35 |
<xsl:copy-of select="@*[local-name() != 'schemaversion']"/> |
| 36 |
<xsl:apply-templates mode="conv48to49"/> |
| 37 |
</image> |
| 38 |
</xsl:otherwise> |
| 39 |
</xsl:choose> |
| 40 |
</xsl:template> |
| 41 |
|
| 42 |
<!-- toplevel processing instructions and comments --> |
| 43 |
<xsl:template match="processing-instruction()|comment()" mode="conv48to49"> |
| 44 |
<xsl:copy> |
| 45 |
<xsl:copy-of select="@*"/> |
| 46 |
<xsl:apply-templates mode="conv48to49"/> |
| 47 |
</xsl:copy> |
| 48 |
</xsl:template> |
| 49 |
|
| 50 |
<!-- transform oem-dumphalt to oem-bootwait --> |
| 51 |
<xsl:template match="oemconfig/oem-dumphalt" mode="conv48to49"> |
| 52 |
<oem-bootwait><xsl:value-of select="text()"/></oem-bootwait> |
| 53 |
</xsl:template> |
| 54 |
|
| 55 |
</xsl:stylesheet> |