Changeset 3467


Ignore:
Timestamp:
08/24/13 12:22:47 (11 years ago)
Author:
vronk
Message:

added documentation + added profile metadata in Termset/info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SMC/trunk/SMC/src/xsl/smc_functions.xsl

    r3438 r3467  
    11<?xml version="1.0"?>
    22<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">
    45
    56<!--
     
    2526        <xsl:variable name="base-uri" select="base-uri()" />
    2627       
    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>
    3037        <xsl:function name="my:profiles2termsets" >
    3138                <xsl:param name="profiles"/>
     
    3643                        <xsl:variable name="profile_id" select="id"></xsl:variable>
    3744                        <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>
    3946                                        <!-- flattening the structure! -->
    4047                                <xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.