Changeset 3527 for SMC


Ignore:
Timestamp:
09/03/13 17:37:15 (11 years ago)
Author:
vronk
Message:

documenting dependencies (auxiliary files)

File:
1 edited

Legend:

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

    r3480 r3527  
    1010                which is then used as input for graph2json-d3.xsl, or graph2dot.xsl</xd:p>
    1111           
     12            <xd:p>needs following auxiliary documents (under the base-uri):
     13                <xd:ul>
     14                    <xd:li>cmd-terms.xml</xd:li>
     15                    <xd:li>cmd-terms-nested.xml</xd:li>
     16                    <xd:li>dcr-terms.xml</xd:li>
     17                    <xd:li>dcr-cmd-map.xml</xd:li>
     18                    <xd:li>rr-relations.xml</xd:li>                   
     19                </xd:ul>
     20            </xd:p>
    1221            <xd:p><xd:b>Created on:</xd:b> 2012-05-17 (based on CMDI/scripts/cmd2dot.xsl)</xd:p>
    1322            <xd:p><xd:b>Modified:</xd:b> 2012-12-05, 2013-06, 2013-08-21</xd:p>
     
    375384        <xsl:variable name="type" select="'Collection'"/>
    376385        <xsl:variable name="level" select="-1"/>
    377         <node id="{@context}" key="{$coll_key}" name="{translate(@context, '_', ' ')}" type="{$type}" level="{$level}" count="{sum(Term/@count)}" path="{@context}"/>
     386        <xsl:variable name="count" select="if (exists(@count)) then number(@count) else sum(Term/@count)"></xsl:variable>
     387        <node id="{@context}" key="{$coll_key}" name="{translate(@context, '_', ' ')}" type="{$type}" level="{$level}" count="{$count}" path="{@context}"/>
    378388    </xsl:template>
    379389
Note: See TracChangeset for help on using the changeset viewer.