sysdeftools/joinandparesysdef.xsl
branchHighFidelityModel
changeset 206 eccc98839441
parent 151 84b123918d3f
equal deleted inserted replaced
205:cf27962d27a8 206:eccc98839441
    13 	Description:
    13 	Description:
    14 	Create a stand-alone sysdef from a linked set of fragments, paring down to just a set of items of the desired rank.
    14 	Create a stand-alone sysdef from a linked set of fragments, paring down to just a set of items of the desired rank.
    15 -->
    15 -->
    16  	<xsl:output method="xml" indent="yes"/>
    16  	<xsl:output method="xml" indent="yes"/>
    17 
    17 
    18 	<!-- comma-separated list of IDs in the literal from as the document they appear in (ie same namespace prefix) -->
    18 	<!-- pare = comma-separated list of IDs in the literal from as the document they appear in (ie same namespace prefix) -->
    19 <xsl:param name="pare"/>		
    19 <xsl:param name="pare"/>		
    20 
    20 
    21 
    21 
    22 	<!-- the rank item to pare down. This will remove any item of that rank EXCEPT those in $pare -->
    22 	<!-- rank = the rank item to pare down. This will remove any item of that rank EXCEPT those in $pare -->
    23 <xsl:param name="rank">package</xsl:param>
    23 <xsl:param name="rank">package</xsl:param>
    24 
    24 
    25 <xsl:variable name="pare-list" select="concat(',',translate(normalize-space($pare),' ',','),',')"/> <!-- accept spaces in pare. Pad with commas to make computing easier -->
    25 <xsl:variable name="pare-list" select="concat(',',translate(normalize-space($pare),' ',','),',')"/> <!-- accept spaces in pare. Pad with commas to make computing easier -->
    26 
    26 
    27 <xsl:include href="joinsysdef.xsl"/>  
    27 <xsl:include href="joinsysdef.xsl"/>