- <xsl:param name="RDFURI" select="''"/>
- <xsl:apply-templates select="*" mode="makelink">
- <xsl:with-param name="name" select="$name"/>
- <xsl:with-param name="CICURI" select="$CICURI"/>
- <xsl:with-param name="RDFURI" select="$RDFURI"/>
- </xsl:apply-templates>
-</xsl:template>
-
-<xsl:template match="unresolved" mode="makelink">
- <xsl:param name="name" select="''"/>
- <xsl:param name="CICURI" select="''"/>
- <p>
- Object <xsl:value-of select="$name"/> is never referenced in other objects
- </p>
- <xsl:apply-templates select="." mode="mk_dep_graph">
- <xsl:with-param name="CICURI" select="$CICURI"/>
- </xsl:apply-templates>
-</xsl:template>
-
-<xsl:template match="url" mode="makelink">
- <xsl:param name="name" select="''"/>
- <xsl:param name="CICURI" select="''"/>
- <xsl:param name="RDFURI" select="''"/>
- <p>
- <script>
- var RDFURI = "<xsl:value-of select="$RDFURI"/>";
- var getterURL = "<xsl:value-of select="$getterURL"/>";
+ <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:variable name="quotedCICURIforURL">
+ <xsl:call-template name="quote">
+ <xsl:with-param name="s" select="$CICURI"/>
+ </xsl:call-template>
+ </xsl:variable>
+ <xsl:choose>
+ <xsl:when test="document(concat($BaseRDFURLBackward,$quotedCICURIforURL))/*/*/*">
+ <p>
+ <script>
+ var CICURI = "<xsl:value-of select="$CICURI"/>";