buildframework/helium/external/helium-antlib/sysdef/demo/data/sf/os/buildtools/bldsystemtools/buildsystemtools/filtersysdef.xsl
equal
deleted
inserted
replaced
|
1 <?xml version="1.0"?> |
|
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exslt="http://exslt.org/common" exclude-result-prefixes="exslt"> |
|
3 <xsl:output method="xml" indent="yes"/> |
|
4 |
|
5 <!-- create a stand-alone sysdef from a linked set of fragments --> |
|
6 |
|
7 <xsl:param name="path">/os/deviceplatformrelease/foundation_system/system_model/system_definition.xml</xsl:param> |
|
8 |
|
9 <xsl:param name="filter-type">only</xsl:param> <!-- only, has or with --> |
|
10 |
|
11 <xsl:param name="filter"/> <!-- comma-separated list --> |
|
12 |
|
13 |
|
14 <xsl:template match="/*"> |
|
15 <xsl:apply-templates select="." mode="join"/> |
|
16 </xsl:template> |
|
17 |
|
18 |
|
19 <xsl:template match="/SystemDefinition[systemModel]"> |
|
20 |
|
21 <xsl:variable name="f"> |
|
22 <xsl:element name="filter-{$filter-type}"> |
|
23 <xsl:call-template name="filter-list"> |
|
24 <xsl:with-param name="f" select="$filter"/> |
|
25 </xsl:call-template> |
|
26 </xsl:element> |
|
27 </xsl:variable> |
|
28 |
|
29 <xsl:apply-templates select="." mode="join"> |
|
30 <xsl:with-param name="filename" select="$path"/> |
|
31 <xsl:with-param name="data" select="exslt:node-set($f)/*"/> |
|
32 </xsl:apply-templates> |
|
33 </xsl:template> |
|
34 |
|
35 |
|
36 |
|
37 <xsl:include href="joinsysdef-module.xsl"/> |
|
38 <xsl:include href="filter-module.xsl"/> |
|
39 |
|
40 </xsl:stylesheet> |