| 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="conv56to57"> |
| 8 |
<xsl:copy> |
| 9 |
<xsl:copy-of select="@*"/> |
| 10 |
<xsl:apply-templates mode="conv56to57"/> |
| 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>5.6</literal> to <literal>5.7</literal>. |
| 19 |
</para> |
| 20 |
<xsl:template match="image" mode="conv56to57"> |
| 21 |
<xsl:choose> |
| 22 |
<!-- nothing to do if already at 5.7 --> |
| 23 |
<xsl:when test="@schemaversion > 5.6"> |
| 24 |
<xsl:copy-of select="."/> |
| 25 |
</xsl:when> |
| 26 |
<!-- otherwise apply templates --> |
| 27 |
<xsl:otherwise> |
| 28 |
<image schemaversion="5.7"> |
| 29 |
<xsl:copy-of select="@*[local-name() != 'schemaversion']"/> |
| 30 |
<xsl:apply-templates mode="conv56to57"/> |
| 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="conv56to57"> |
| 38 |
<xsl:copy> |
| 39 |
<xsl:copy-of select="@*"/> |
| 40 |
<xsl:apply-templates mode="conv56to57"/> |
| 41 |
</xsl:copy> |
| 42 |
</xsl:template> |
| 43 |
|
| 44 |
<!-- transform the opensusePattern element into a namedCollection --> |
| 45 |
<xsl:template match="packages/opensusePattern" mode="conv56to57"> |
| 46 |
<namedCollection> |
| 47 |
<xsl:copy-of select="@*"/> |
| 48 |
</namedCollection> |
| 49 |
</xsl:template> |
| 50 |
|
| 51 |
<!-- transform the rhelGroup element into a namedCollection --> |
| 52 |
<xsl:template match="packages/rhelGroup" mode="conv56to57"> |
| 53 |
<namedCollection> |
| 54 |
<xsl:copy-of select="@*"/> |
| 55 |
</namedCollection> |
| 56 |
</xsl:template> |
| 57 |
|
| 58 |
</xsl:stylesheet> |