3 <xsl:stylesheet version="1.0"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:subst="http://www.cs.unibo.it/helm/subst">
7 <xsl:param name="CICURI" select="''"/>
8 <xsl:param name="getterURL" select="''"/>
9 <xsl:param name="draw_graphURL" select="''"/>
11 <xsl:variable name="BaseRDFURL" select="concat($getterURL,'getxml?uri=helm:rdf:www.cs.unibo.it/helm/rdf/')"/>
12 <xsl:variable name="BaseRDFURLForward" select="concat($BaseRDFURL,'forward//')"/>
13 <xsl:variable name="BaseRDFURLBackward" select="concat($BaseRDFURL,'backward//')"/>
15 <xsl:template match="/">
18 <subst:script language="JavaScript" src="/javascript/defaults.js"/>
19 <subst:script language="JavaScript" src="/javascript/utils.js"/>
20 <subst:script language="JavaScript" src="/javascript/control.js"/>
21 <subst:script language="JavaScript" src="/javascript/graphLinks.js"/>
23 <title>Metadata of <xsl:value-of select="$CICURI"/></title>
25 <body onLoad="window.focus()" bgColor="white">
27 var CICURI = "<xsl:value-of select="$CICURI"/>";
29 document.write('<h1>Metadata of <a target="cic" href="' + mkCICURL(CICURI) + '">' + CICURI + '</a></h1>');
32 <xsl:apply-templates select="*"/>
37 <xsl:template name="makelink">
38 <xsl:param name="name" select="''"/>
39 <xsl:param name="CICURI" select="''"/>
40 <xsl:param name="RDFURI" select="''"/>
42 <xsl:when test="document(concat($BaseRDFURLBackward,$RDFURI))/*/*/*">
45 var RDFURI = "helm:rdf:www.cs.unibo.it/helm/rdf/backward//<xsl:value-of select="$RDFURI"/>";
46 var getterURL = "<xsl:value-of select="$getterURL"/>";
48 var url = setParam(location.href,"keys","meta_theory%2CT1%2CT2%2CL%2CE");
49 url = setParam(url,"xmluri", getterURL + "getxml%3Furi%3D" + RDFURI);
50 document.write('<a target="theory" href="' + url + '">View the objects depending on it.</a>');
56 var CICURI = "<xsl:value-of select="$CICURI"/>";
58 document.write('<a target="graph" href="' + mkMetaURL(CICURI,true) + '">View the graph of all the objects depending on this one.</a>');
65 Object <xsl:value-of select="$name"/> is never referenced in other objects
71 <xsl:when test="document(concat($BaseRDFURLForward,$RDFURI))/*/*/*">
73 <!-- CSC: Cut & Paster from above ==> create a single javascript function -->
75 var CICURI = "<xsl:value-of select="$CICURI"/>";
77 document.write('<a target="graph" href="' + mkDepURL(CICURI,true) + '">View the graph of all the dependencies of this object.</a>');
84 Object <xsl:value-of select="$name"/> does not reference any other object