Changeset 3527
- Timestamp:
- 09/03/13 17:37:15 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SMC/trunk/SMC/src/xsl/terms2graph.xsl
r3480 r3527 10 10 which is then used as input for graph2json-d3.xsl, or graph2dot.xsl</xd:p> 11 11 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> 12 21 <xd:p><xd:b>Created on:</xd:b> 2012-05-17 (based on CMDI/scripts/cmd2dot.xsl)</xd:p> 13 22 <xd:p><xd:b>Modified:</xd:b> 2012-12-05, 2013-06, 2013-08-21</xd:p> … … 375 384 <xsl:variable name="type" select="'Collection'"/> 376 385 <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}"/> 378 388 </xsl:template> 379 389
Note: See TracChangeset
for help on using the changeset viewer.