- <xsl:apply-templates select="*" mode="makelink">
- <xsl:with-param name="name" select="$name"/>
- <xsl:with-param name="RDFURI" select="$RDFURI"/>
- </xsl:apply-templates>
-</xsl:template>
-
-<xsl:template match="unresolved" mode="makelink">
- <xsl:param name="name" select="''"/>
- <p>
- Object <xsl:value-of select="$name"/> is never referenced in other objects
- </p>
-</xsl:template>
+ <xsl:variable name="quotedCICURI">
+ <xsl:call-template name="jsquote">
+ <xsl:with-param name="s" select="$CICURI"/>
+ <xsl:with-param name="times" select="2"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="document(concat($BaseRDFURLBackward,$RDFURI))/*/*/*">
+ <p>
+ <script>
+ var CICURI = "<xsl:value-of select="$CICURI"/>";
+<![CDATA[
+ document.write('<a target="theory" href="' + mkMetaTheoryURL(CICURI) + '">View the objects depending on it.</a>');
+]]>
+ </script>
+ </p>
+ <p>
+ <script>
+<![CDATA[
+ document.write('<a href="" onClick="window.open(mkMetaURL(\']]><xsl:value-of select="$quotedCICURI"/><![CDATA[\'),\'graph\');return false;">View the graph of all the objects depending on this one.</a>');
+]]>
+ </script>
+ </p>
+ </xsl:when>
+ <xsl:otherwise>
+ <p>
+ Object <xsl:value-of select="$name"/> is never referenced in other objects
+ </p>
+ </xsl:otherwise>
+ </xsl:choose>