Changeset 3467
- Timestamp:
- 08/24/13 12:22:47 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SMC/trunk/SMC/src/xsl/smc_functions.xsl
r3438 r3467 1 1 <?xml version="1.0"?> 2 2 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" 3 xmlns:my="myFunctions"> 3 xmlns:ns2="http://www.w3.org/1999/xlink" 4 xmlns:my="myFunctions" exclude-result-prefixes="ns2"> 4 5 5 6 <!-- … … 25 26 <xsl:variable name="base-uri" select="base-uri()" /> 26 27 27 <!-- 28 @param profiles - list of <profileDescription> 29 --> 28 29 <xd:doc xmlns:xd="http://www.oxygenxml.com/ns/doc/xsl"> 30 <xd:desc> 31 <xd:p>translates profileDescriptions into Termsets</xd:p> 32 </xd:desc> 33 <xd:param name="profiles">sequence of <profileDescription /></xd:param> 34 <xd:param name="nested">boolean flag, if true the nested structure will be preserved in the resulting data (Termset/Term/Term...), 35 if false it will be just two levels: Termset/Term</xd:param> 36 </xd:doc> 30 37 <xsl:function name="my:profiles2termsets" > 31 38 <xsl:param name="profiles"/> … … 36 43 <xsl:variable name="profile_id" select="id"></xsl:variable> 37 44 <Termset name="{(name,CMD_ComponentSpec/Header/Name)[1]}" id="{$profile_id}" type="CMD_Profile"> 38 45 <info><xsl:copy-of select="*[local-name() ne 'CMD_ComponentSpec']"></xsl:copy-of></info> 39 46 <!-- flattening the structure! --> 40 47 <xsl:choose>
Note: See TracChangeset
for help on using the changeset viewer.