buildframework/helium/sf/java/sysdef/demo/data/sf/os/buildtools/bldsystemtools/sysdeftools/joinsysdef.xsl
author wbernard
Fri, 13 Aug 2010 14:59:05 +0300
changeset 628 7c4a911dc066
parent 587 85df38eb4012
permissions -rw-r--r--
helium_11.0.0-e00f171ca185
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     1
<?xml version="1.0"?>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     2
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     3
<!--Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     4
	All rights reserved.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     5
	This component and the accompanying materials are made available
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
     6
	under the terms of the License "Eclipse Public License v1.0"
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     7
	which accompanies this distribution, and is available
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     8
	at the URL "http://www.eclipse.org/legal/epl-v10.html".
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
     9
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    10
	Initial Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    11
	Nokia Corporation - initial contribution.
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    12
	Contributors:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    13
	Description:
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    14
	Create a stand-alone sysdef from a linked set of fragments
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    15
-->
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    16
 	<xsl:output method="xml" indent="yes"/>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    17
<!--Description:This creates a stand-alone sysdef from a linked set of fragments.
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    18
All API metadata will be removed
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    19
-->
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    20
<!--Input:<sysdef> - (required) The 3.0 formatsystem definition XML file to
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    21
		process. This can be a fragment or stand-alone. 
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    22
		If there are no linked fragments, this will just convert all
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    23
		relative unit paths into absolute paths and embed any linked
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    24
		metadata-->
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    25
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    26
<xsl:param name="path">/os/deviceplatformrelease/foundation_system/system_model/system_definition.xml</xsl:param>
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    27
<!-- <path> - The full system model path for this file. Use forward slashes.-->
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    28
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    29
<xsl:template match="/*">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    30
	<xsl:apply-templates select="." mode="join"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    31
</xsl:template>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    32
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    33
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    34
<xsl:template match="/SystemDefinition[systemModel]">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    35
<xsl:apply-templates select="." mode="join">
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    36
	<xsl:with-param name="filename" select="$path"/>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    37
</xsl:apply-templates>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    38
</xsl:template>
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    39
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    40
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    41
<xsl:template match="meta[@rel='Api']" priority="2" mode="meta"/> <!-- ignore these, not needed in system build -->
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    42
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    43
628
7c4a911dc066 helium_11.0.0-e00f171ca185
wbernard
parents: 587
diff changeset
    44
<xsl:include href="lib/joinsysdef-module.xsl"/>
587
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    45
85df38eb4012 helium_9.0-a7879c935424
wbernard
parents:
diff changeset
    46
</xsl:stylesheet>