author | Chetan Kapoor <chetank@symbian.org> |
Wed, 31 Mar 2010 23:01:24 +0100 | |
changeset 957 | 8dfe67a9e2fe |
parent 852 | 41f42b520ea7 |
permissions | -rw-r--r-- |
852
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
1 |
<?xml version="1.0"?> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
3 |
<xsl:output method="xml" indent="yes"/> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
4 |
<!-- create a stand-alone sysdef from a linked set of fragments --> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
5 |
|
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
6 |
<xsl:param name="path">/os/deviceplatformrelease/foundation_system/system_model/system_definition.xml</xsl:param> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
7 |
|
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
8 |
<xsl:template match="/*"> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
9 |
<xsl:apply-templates select="." mode="join"/> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
10 |
</xsl:template> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
11 |
|
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
12 |
|
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
13 |
<xsl:template match="/SystemDefinition[systemModel]"> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
14 |
<xsl:apply-templates select="." mode="join"> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
15 |
<xsl:with-param name="filename" select="$path"/> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
16 |
</xsl:apply-templates> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
17 |
</xsl:template> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
18 |
|
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
19 |
|
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
20 |
|
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
21 |
|
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
22 |
<xsl:include href="joinsysdef-module.xsl"/> |
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
23 |
|
41f42b520ea7
add xsl for merging / downgrading system model
andy simpson <andrews@symbian.org>
parents:
diff
changeset
|
24 |
</xsl:stylesheet> |