author | Shabe Razvi <shaber@symbian.org> |
Thu, 29 Apr 2010 23:13:14 +0100 | |
changeset 1022 | b89c1ad56824 |
parent 853 | bde28f2b1d99 |
permissions | -rw-r--r-- |
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
1 |
<?xml version="1.0"?> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
319
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
3 |
<xsl:output method="xml" indent="yes"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
4 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
5 |
<xsl:param name="Path">os/deviceplatformrelease/foundation_system/system_model</xsl:param> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
6 |
<!-- $Path is the location of the root system definition XML file. Must not end in / |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
7 |
This is used to compute the absolute paths the 2.0 syntax needs--> |
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
8 |
<xsl:param name="Root"/> <!-- space separated list of root variables in the form "VAR1=value1 VAR=value2" --> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
9 |
<xsl:variable name="root" select="concat(' ',$Root,' ')"/> <!-- sort of hack to allow absolute paths in downgraded output --> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
10 |
<xsl:variable name="srcroot" select="substring-before(substring-after($root,' SRCROOT='),' ')"/> <!-- the default path prefix --> |
319
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
11 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
12 |
<xsl:template match="/*"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
13 |
<xsl:message terminate="yes">Cannot process this document</xsl:message> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
14 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
15 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
16 |
<!-- can only handle 3.0.0 to 2.0.1 transforms |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
17 |
Assumes only packages are using href |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
18 |
--> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
19 |
<xsl:template match="/SystemDefinition[@schema='3.0.0']"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
20 |
<!-- process root system definition or package definition--> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
21 |
<xsl:call-template name="DTD"/> <!-- insert 2.0.01 DTD --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
22 |
<SystemDefinition name="{*/@name}" schema="2.0.1"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
23 |
<xsl:apply-templates select="*|comment()"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
24 |
</SystemDefinition> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
25 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
26 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
27 |
<xsl:template match="/SystemDefinition[@schema='3.0.0' and systemModel]"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
28 |
<xsl:call-template name="DTD"/> <!-- insert 2.0.01 DTD --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
29 |
<SystemDefinition name="{systemModel/@name}" schema="2.0.1"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
30 |
<xsl:apply-templates select="*|comment()"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
31 |
</SystemDefinition> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
32 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
33 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
34 |
<xsl:template match="/SystemDefinition/package[@href]" priority="2"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
35 |
<xsl:message terminate="yes">Package definition cannot link another package</xsl:message> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
36 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
37 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
38 |
<xsl:template match="/SystemDefinition/package" priority="1"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
39 |
<!-- process package definition file--> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
40 |
<systemModel> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
41 |
<layer name="anonymous"> <!-- fake layer --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
42 |
<block> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
43 |
<xsl:apply-templates mode="copy" select="@id|@name|@span|@level|@levels"/><!-- valid attribuites for 2.0 --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
44 |
<xsl:apply-templates select="*|comment()"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
45 |
<xsl:with-param name="path" select="concat($Path,'/')"/> <!-- need to keep tack of where the current document is --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
46 |
</xsl:apply-templates> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
47 |
</block> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
48 |
</layer> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
49 |
</systemModel> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
50 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
51 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
52 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
53 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
54 |
<xsl:template match="/"><xsl:apply-templates select="*"/></xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
55 |
<xsl:template match="@*|comment()"><xsl:copy-of select="."/></xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
56 |
<!-- comments are copied verbatim. Attribtues are copied by default --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
57 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
58 |
<xsl:template match="systemModel"> |
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
59 |
<systemModel> |
319
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
60 |
<xsl:apply-templates select="*|comment()"> <!-- no attributes --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
61 |
<xsl:with-param name="path" select="$Path"/> <!-- need to keep tack of where the current document is --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
62 |
</xsl:apply-templates> |
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
63 |
</systemModel> |
319
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
64 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
65 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
66 |
<xsl:template mode="copy" match="@*"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
67 |
<xsl:copy-of select="."/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
68 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
69 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
70 |
<xsl:template mode="copy" match="@id"> <!-- id in 3.0 is name in 2.0 --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
71 |
<xsl:attribute name="name"><xsl:value-of select="."/></xsl:attribute> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
72 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
73 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
74 |
<xsl:template mode="copy" match="@name"> <!-- name in 3.0 is long-name in 2.0.1 --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
75 |
<xsl:if test=".!=../@id"> <!-- don't bother if it will be the same as name --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
76 |
<xsl:attribute name="long-name"><xsl:value-of select="."/></xsl:attribute> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
77 |
</xsl:if> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
78 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
79 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
80 |
<xsl:template match="layer"><xsl:param name="path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
81 |
<layer> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
82 |
<xsl:apply-templates mode="copy" select="@id|@name|@span|@levels"/> <!-- valid attribuites for 2.0 --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
83 |
<xsl:apply-templates select="*|comment()"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
84 |
<xsl:with-param name="path" select="$path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
85 |
</xsl:apply-templates> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
86 |
</layer> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
87 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
88 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
89 |
<xsl:template match="layer/package"><!-- translates to block --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
90 |
<xsl:param name="path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
91 |
<block> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
92 |
<xsl:apply-templates mode="copy" select="@id|@name|@span|@level|@levels"/><!-- valid attribuites for 2.0 --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
93 |
<xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
94 |
<xsl:when test="@href"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
95 |
<xsl:variable name="this" select="."/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
96 |
<xsl:for-each select="document(@href,.)/SystemDefinition/*"> |
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
97 |
<xsl:variable name="my-id"><xsl:apply-templates mode="normalize-id" select="@id"/></xsl:variable> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
98 |
<xsl:variable name="other-id"><xsl:apply-templates mode="normalize-id" select="$this/@id"/></xsl:variable> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
99 |
<xsl:if test="$my-id != $other-id"> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
100 |
<xsl:message terminate="yes">Error: IDs do not match: <xsl:value-of select="$my-id"/> vs <xsl:value-of select="$other-id"/></xsl:message> |
319
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
101 |
</xsl:if> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
102 |
<xsl:if test="@name and @name!=@id and not($this/@name and $this/@name=$this/@id)"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
103 |
<!-- set long-name only if name is different from the id and not set in child doc --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
104 |
<xsl:attribute name="long-name"><xsl:value-of select="@name"/></xsl:attribute> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
105 |
</xsl:if> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
106 |
<xsl:for-each select="@span|@levels|@level"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
107 |
<!-- copy only if not set in child doc --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
108 |
<xsl:if test="not(this/@*[name()=name(current())])"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
109 |
<xsl:copy-of select="."/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
110 |
</xsl:if> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
111 |
</xsl:for-each> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
112 |
<xsl:apply-templates select="*|comment()"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
113 |
<xsl:with-param name="path"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
114 |
<xsl:call-template name="normpath"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
115 |
<xsl:with-param name="path" select="concat($path,'/',$this/@href)"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
116 |
</xsl:call-template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
117 |
</xsl:with-param> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
118 |
</xsl:apply-templates> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
119 |
</xsl:for-each> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
120 |
</xsl:when> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
121 |
<xsl:otherwise> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
122 |
<xsl:apply-templates select="*|comment()"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
123 |
<xsl:with-param name="path" select="$path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
124 |
</xsl:apply-templates> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
125 |
</xsl:otherwise> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
126 |
</xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
127 |
</block> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
128 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
129 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
130 |
<xsl:template match="package/package"> <!-- translates to subblock --><xsl:param name="path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
131 |
<subblock> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
132 |
<xsl:apply-templates mode="copy" select="@id|@name"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
133 |
<xsl:apply-templates select="*|comment()"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
134 |
<xsl:with-param name="path" select="$path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
135 |
</xsl:apply-templates> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
136 |
</subblock> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
137 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
138 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
139 |
<xsl:template match="package/package/pacakge"> <!-- cannot nest this deep --><xsl:param name="path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
140 |
<xsl:message>Excessive nesting of packages: Ignoring <xsl:value-of select="@id"/></xsl:message> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
141 |
<xsl:apply-templates select="*|comment()"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
142 |
<xsl:with-param name="path" select="$path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
143 |
</xsl:apply-templates> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
144 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
145 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
146 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
147 |
<xsl:template match="collection"><xsl:param name="path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
148 |
<collection> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
149 |
<xsl:apply-templates mode="copy" select="@id|@name|@level"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
150 |
<xsl:apply-templates select="*|comment()"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
151 |
<xsl:with-param name="path" select="$path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
152 |
</xsl:apply-templates> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
153 |
</collection> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
154 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
155 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
156 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
157 |
<xsl:template match="component"><xsl:param name="path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
158 |
<component> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
159 |
<xsl:apply-templates mode="copy" select="@id|@name|@deprecated|@introduced|@filter|@purpose"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
160 |
<xsl:if test="contains(concat(' ',@class,' '),' plugin ')"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
161 |
<xsl:attribute name="plugin">Y</xsl:attribute> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
162 |
</xsl:if> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
163 |
<xsl:call-template name="class"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
164 |
<xsl:with-param name="remove">plugin</xsl:with-param> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
165 |
<xsl:with-param name="add"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
166 |
<xsl:if test="not(*) and comment()">placeholder</xsl:if> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
167 |
<xsl:if test="@target='desktop'"> PC</xsl:if> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
168 |
</xsl:with-param> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
169 |
</xsl:call-template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
170 |
<xsl:apply-templates select="*|comment()"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
171 |
<xsl:with-param name="path" select="$path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
172 |
</xsl:apply-templates> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
173 |
</component> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
174 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
175 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
176 |
<xsl:template match="unit[@base and not(@mrp or @bldFile)]"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
177 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
178 |
<xsl:template match="unit"><xsl:param name="path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
179 |
<unit> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
180 |
<xsl:apply-templates select="@mrp|@bldFile|@late"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
181 |
<xsl:with-param name="path" select="$path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
182 |
</xsl:apply-templates> |
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
183 |
<xsl:copy-of select="@filter|@root[not(contains($root,concat(' ',.,'=')))]|@version|@prebuilt|@priority"/> |
319
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
184 |
</unit> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
185 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
186 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
187 |
<xsl:template match="unit/@late"> <!-- 2.0 uses Y/N, 3.0 uses yes/no --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
188 |
<xsl:attribute name="{name()}"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
189 |
<xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
190 |
<xsl:when test=".='yes'">Y</xsl:when> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
191 |
<xsl:when test=".='no'">N</xsl:when> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
192 |
</xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
193 |
</xsl:attribute> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
194 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
195 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
196 |
<xsl:template match="@mrp|@bldFile"><xsl:param name="path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
197 |
<xsl:attribute name="{name()}"> |
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
198 |
<xsl:choose> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
199 |
<xsl:when test="../@root"> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
200 |
<xsl:variable name="pre" select="substring-before(substring-after($root,concat(' ',../@root,'=')),' ')"/> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
201 |
<xsl:if test="$pre!=''"><xsl:value-of select="concat($pre,'/')"/></xsl:if> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
202 |
</xsl:when> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
203 |
<xsl:when test="$srcroot!=''"> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
204 |
<xsl:value-of select="concat($srcroot,'/')"/> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
205 |
</xsl:when> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
206 |
</xsl:choose> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
207 |
<xsl:choose> |
319
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
208 |
<xsl:when test="starts-with(.,'/')"> <!-- keep absolute paths verbatim (barring the leading / ) --> |
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
209 |
<xsl:value-of select="substring-after(.,'/')"/> |
319
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
210 |
</xsl:when> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
211 |
<xsl:otherwise> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
212 |
<xsl:call-template name="normpath"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
213 |
<xsl:with-param name="path"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
214 |
<xsl:call-template name="before"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
215 |
<xsl:with-param name="text" select="$path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
216 |
</xsl:call-template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
217 |
<xsl:value-of select="."/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
218 |
</xsl:with-param> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
219 |
</xsl:call-template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
220 |
</xsl:otherwise> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
221 |
</xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
222 |
</xsl:attribute> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
223 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
224 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
225 |
<xsl:template match="meta"/> <!-- strip all meta tags --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
226 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
227 |
<xsl:template match="meta[info/@contract]"> <!-- except contract --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
228 |
<xsl:copy-of select="info/@contract"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
229 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
230 |
|
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
231 |
<xsl:template match="@id" mode="normalize-id"> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
232 |
<xsl:choose> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
233 |
<xsl:when test="contains(@id,':')"><xsl:value-of select="substring-after(@id,':')"/></xsl:when> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
234 |
<xsl:otherwise><xsl:value-of select="@id"/></xsl:otherwise> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
235 |
</xsl:choose> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
236 |
</xsl:template> |
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
237 |
|
319
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
238 |
<xsl:template name="class"><xsl:param name="remove"/><xsl:param name="add"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
239 |
<!-- returns the value of the class attribute with the space-separated list of names in $remove taken out and those in $add added on (does not check for duplicates) --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
240 |
<xsl:param name="class" select="normalize-space(@class)"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
241 |
<xsl:variable name="r"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
242 |
<xsl:text> </xsl:text> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
243 |
<xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
244 |
<xsl:when test="contains($remove,' ')"><xsl:value-of select="substring-before($remove,' ')"/></xsl:when> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
245 |
<xsl:otherwise><xsl:value-of select="$remove"/></xsl:otherwise> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
246 |
</xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
247 |
<xsl:text> </xsl:text> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
248 |
</xsl:variable> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
249 |
<xsl:variable name="c"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
250 |
<xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
251 |
<xsl:when test="contains(concat(' ',$class,' '),$r)"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
252 |
<xsl:value-of select="substring-before(concat(' ',$class,' '),$r)"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
253 |
<xsl:text> </xsl:text> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
254 |
<xsl:value-of select="substring-after(concat(' ',$class,' '),$r)"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
255 |
</xsl:when> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
256 |
<xsl:otherwise><xsl:value-of select="$class"/></xsl:otherwise> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
257 |
</xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
258 |
<xsl:if test="normalize-space($add)!=''"><xsl:value-of select="concat(' ',normalize-space($add))"/></xsl:if> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
259 |
</xsl:variable> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
260 |
<xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
261 |
<xsl:when test="contains($remove,' ')"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
262 |
<xsl:call-template name="class"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
263 |
<xsl:with-param name="remove" select="substring-after($remove,' ')"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
264 |
<xsl:with-param name="class" select="$c"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
265 |
</xsl:call-template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
266 |
</xsl:when> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
267 |
<xsl:when test="normalize-space($c)!=''"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
268 |
<xsl:attribute name="class"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
269 |
<xsl:value-of select="normalize-space($c)"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
270 |
</xsl:attribute> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
271 |
</xsl:when> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
272 |
</xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
273 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
274 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
275 |
<xsl:template name="normpath"><xsl:param name="path"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
276 |
<!-- normalize out any ".." in the path in $path --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
277 |
<xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
278 |
<xsl:when test="contains($path,'/../')"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
279 |
<xsl:call-template name="normpath"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
280 |
<xsl:with-param name="path"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
281 |
<xsl:call-template name="before"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
282 |
<xsl:with-param name="text" select="substring-before($path,'/../')"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
283 |
</xsl:call-template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
284 |
<xsl:value-of select="substring-after($path,'/../')"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
285 |
</xsl:with-param> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
286 |
</xsl:call-template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
287 |
</xsl:when> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
288 |
<xsl:otherwise><xsl:value-of select="$path"/></xsl:otherwise> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
289 |
</xsl:choose> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
290 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
291 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
292 |
<!-- return all text before the last / --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
293 |
<xsl:template name="before"><xsl:param name="text"/> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
294 |
<xsl:if test="contains($text,'/')"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
295 |
<xsl:value-of select="substring-before($text,'/')"/>/<xsl:call-template name="before"><xsl:with-param name="text" select="substring-after($text,'/')"/></xsl:call-template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
296 |
</xsl:if> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
297 |
</xsl:template> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
298 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
299 |
<xsl:template name="DTD"> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
300 |
<xsl:text disable-output-escaping="yes"><![CDATA[<!DOCTYPE SystemDefinition [ |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
301 |
<!ELEMENT SystemDefinition ( systemModel )> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
302 |
<!ATTLIST SystemDefinition |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
303 |
name CDATA #REQUIRED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
304 |
schema CDATA #REQUIRED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
305 |
> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
306 |
<!-- all paths are relative to the environment variable specified by the root attribute, or SOURCEROOT if not. --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
307 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
308 |
<!-- System Model Section of DTD --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
309 |
<!ELEMENT systemModel (layer+)> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
310 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
311 |
<!ELEMENT layer (block* | collection*)*> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
312 |
<!-- Kernel Services, Base Services, OS Services, Etc --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
313 |
<!ATTLIST layer |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
314 |
name CDATA #REQUIRED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
315 |
long-name CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
316 |
levels NMTOKENS #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
317 |
span CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
318 |
> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
319 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
320 |
<!ELEMENT block (subblock* | collection*)*> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
321 |
<!-- Generic OS services, Comms Services, etc --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
322 |
<!ATTLIST block |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
323 |
levels NMTOKENS #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
324 |
span CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
325 |
level NMTOKEN #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
326 |
name CDATA #REQUIRED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
327 |
long-name CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
328 |
> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
329 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
330 |
<!ELEMENT subblock (collection)*> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
331 |
<!-- Cellular Baseband Services, Networking Services, etc --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
332 |
<!ATTLIST subblock |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
333 |
name CDATA #REQUIRED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
334 |
long-name CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
335 |
> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
336 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
337 |
<!ELEMENT collection (component)*> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
338 |
<!-- Screen Driver, Content Handling, etc --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
339 |
<!ATTLIST collection |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
340 |
name CDATA #REQUIRED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
341 |
long-name CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
342 |
level NMTOKEN #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
343 |
> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
344 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
345 |
<!ELEMENT component (unit)*> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
346 |
<!-- contains units or is a package or prebuilt --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
347 |
<!ATTLIST component |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
348 |
name CDATA #REQUIRED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
349 |
long-name CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
350 |
deprecated CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
351 |
introduced CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
352 |
contract CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
353 |
plugin (Y|N) "N" |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
354 |
filter CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
355 |
class NMTOKENS #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
356 |
supports CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
357 |
purpose ( optional | mandatory | development ) "optional" |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
358 |
> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
359 |
|
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
360 |
<!ELEMENT unit EMPTY > |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
361 |
<!-- must be buildable (bld.inf) --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
362 |
<!-- bldFile may someday be removed in favour of mrp --> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
363 |
<!ATTLIST unit |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
364 |
mrp CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
365 |
filter CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
366 |
bldFile CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
367 |
root CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
368 |
version NMTOKEN #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
369 |
prebuilt NMTOKEN #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
370 |
late (Y|N) #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
371 |
priority CDATA #IMPLIED |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
372 |
> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
373 |
]> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
374 |
]]></xsl:text> |
257557b39754
Added transformation of model file from version 3.0.0 to a version usable by Raptor
Dario Sestito <darios@symbian.org>
parents:
diff
changeset
|
375 |
</xsl:template> |
853
bde28f2b1d99
updated version of sysdefdowngrade.xsl from BobR
andy simpson <andrews@symbian.org>
parents:
319
diff
changeset
|
376 |
</xsl:stylesheet> |