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