Debian Codegraph @

helper/xsl_to_v74/convert59to60.xsl

raw
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
7 <!-- default rule -->
8 <xsl:template match="*" mode="conv59to60">
9 <xsl:copy>
10 <xsl:copy-of select="@*"/>
11 <xsl:apply-templates mode="conv59to60"/>
12 </xsl:copy>
13 </xsl:template>
14
15 <!-- version update -->
16 <para xmlns="http://docbook.org/ns/docbook">
17 Changed attribute <tag class="attribute">schemaversion</tag>
18 to <tag class="attribute">schemaversion</tag> from
19 <literal>5.9</literal> to <literal>6.0</literal>.
20 </para>
21 <xsl:template match="image" mode="conv59to60">
22 <xsl:choose>
23 <!-- nothing to do if already at 6.0 -->
24 <xsl:when test="@schemaversion > 5.9">
25 <xsl:copy-of select="."/>
26 </xsl:when>
27 <!-- otherwise apply templates -->
28 <xsl:otherwise>
29 <image schemaversion="6.0">
30 <xsl:copy-of select="@*[local-name() != 'schemaversion']"/>
31 <xsl:apply-templates mode="conv59to60"/>
32 </image>
33 </xsl:otherwise>
34 </xsl:choose>
35 </xsl:template>
36
37 <!-- toplevel processing instructions and comments -->
38 <xsl:template match="processing-instruction()|comment()" mode="conv59to60">
39 <xsl:copy>
40 <xsl:copy-of select="@*"/>
41 <xsl:apply-templates mode="conv59to60"/>
42 </xsl:copy>
43 </xsl:template>
44
45 <!-- remove oem-align-partition -->
46 <xsl:template match="oemconfig/oem-align-partition" mode="conv59to60">
47 </xsl:template>
48
49 </xsl:stylesheet>