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