var url = unescape(getParam('url'));
var getterURL = extractParam(url,'param.getterURL');
var CICURI = extractParam(url,'param.CICURI');
- if (CICURI.substr(-4,4) == ".ind") {
- url = setParam(url,"keys","DM%2CRT");
- url = setParam(url,"xmluri", getterURL + "getxml%3Furi%3D" + CICURI);
- } else {
- url = setParam(url,"keys","MC%2CRT");
- url = setParam(url,"xmluri", getterURL + "resolve%3Furi%3D" + CICURI);
- }
+ url = setParam(url,"keys","MC%2CRT");
+ url = setParam(url,"xmluri", getterURL + "getxml%3Furi%3D" + CICURI);
url = setParam(url,"prop.media-type","text/html");
url = setParam(url,"prop.encoding","iso-8859-1");
document.write(
+++ /dev/null
-<?xml version="1.0"?>
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:subst="http://www.cs.unibo.it/helm/subst">
-
-<xsl:output
- method="xml"
- encoding="iso-8859-1"
- media-type="text/html"
- doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
- doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
-
-<xsl:include href="metadataLib.xsl"/>
-
-<xsl:variable name="url" select="concat($getterURL,'resolve?uri=helm:rdf:www.cs.unibo.it/helm/rdf/forward//')"/>
-
-<xsl:template match="InductiveDefinition">
- <xsl:for-each select="InductiveType">
- <xsl:variable name="CICURIInductiveType" select="concat($CICURI,'#xpointer(1/',position())"/>
- <xsl:variable name="RDFURIInductiveType" select="concat($CICURI,',',position())"/>
- <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
- <xsl:apply-templates select="document(concat($url,$RDFURIInductiveType))" mode="makelink">
- <xsl:with-param name="name" select="@name"/>
- <xsl:with-param name="CICURI" select="concat($CICURIInductiveType,')')"/>
- <xsl:with-param name="RDFURI" select="$RDFURIInductiveType"/>
- </xsl:apply-templates>
- <xsl:for-each select="Constructor">
- <xsl:variable name="CICURIConstructor" select="concat($CICURIInductiveType,'/',position(),')')"/>
- <xsl:variable name="RDFURIConstructor" select="concat($RDFURIInductiveType,',',position())"/>
- <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
- <xsl:apply-templates select="document(concat($url,$RDFURIConstructor))" mode="makelink">
- <xsl:with-param name="name" select="@name"/>
- <xsl:with-param name="CICURI" select="$CICURIConstructor"/>
- <xsl:with-param name="RDFURI" select="$RDFURIConstructor"/>
- </xsl:apply-templates>
- </xsl:for-each>
- </xsl:for-each>
-</xsl:template>
-
-</xsl:stylesheet>
<xsl:include href="metadataLib.xsl"/>
-<xsl:template match="unresolved|url">
- <xsl:apply-templates mode="makelink" select=".">
- <xsl:with-param name="name" select="$CICURI"/>
- <xsl:with-param name="CICURI" select="$CICURI"/>
- <xsl:with-param name="RDFURI" select="$CICURI"/>
- </xsl:apply-templates>
+<xsl:variable name="url" select="concat($getterURL,'resolve?uri=helm:rdf:www.cs.unibo.it/helm/rdf/forward//')"/>
+
+<xsl:template match="InductiveDefinition">
+ <xsl:for-each select="InductiveType">
+ <xsl:variable name="CICURIInductiveType" select="concat($CICURI,'#xpointer(1/',position())"/>
+ <xsl:variable name="RDFURIInductiveType" select="concat($CICURI,',',position())"/>
+ <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
+ <xsl:apply-templates select="document(concat($url,$RDFURIInductiveType))" mode="makelink">
+ <xsl:with-param name="name" select="@name"/>
+ <xsl:with-param name="CICURI" select="concat($CICURIInductiveType,')')"/>
+ <xsl:with-param name="RDFURI" select="$RDFURIInductiveType"/>
+ </xsl:apply-templates>
+ <xsl:for-each select="Constructor">
+ <xsl:variable name="CICURIConstructor" select="concat($CICURIInductiveType,'/',position(),')')"/>
+ <xsl:variable name="RDFURIConstructor" select="concat($RDFURIInductiveType,',',position())"/>
+ <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
+ <xsl:apply-templates select="document(concat($url,$RDFURIConstructor))" mode="makelink">
+ <xsl:with-param name="name" select="@name"/>
+ <xsl:with-param name="CICURI" select="$CICURIConstructor"/>
+ <xsl:with-param name="RDFURI" select="$RDFURIConstructor"/>
+ </xsl:apply-templates>
+ </xsl:for-each>
+ </xsl:for-each>
+</xsl:template>
+
+<!-- Not an Inductive Type -->
+<xsl:template match="*">
+ <xsl:apply-templates select="document(concat($url,$CICURI))" mode="makelink">
+ <xsl:with-param name="name" select="$CICURI"/>
+ <xsl:with-param name="CICURI" select="$CICURI"/>
+ <xsl:with-param name="RDFURI" select="$CICURI"/>
+ </xsl:apply-templates>
</xsl:template>
</xsl:stylesheet>
<option value="L2H,http://phd.cs.unibo.it/helm/xslt/ls2html.xsl,false">Getter LS ==> HTML</option>
<option value="GP,http://phd.cs.unibo.it/helm/xslt/getParam.xsl,false">Get Param</option>
<option value="RT,http://phd.cs.unibo.it/helm/xslt/resolve_topurl.xsl,false">Logic-sheet to substitute the interface URL</option>
- <option value="DM,http://phd.cs.unibo.it/helm/xslt/demultiplexMutual.xsl,false">Stylesheet to create the link to the metadata for inductive types</option>
- <option value="MC,http://phd.cs.unibo.it/helm/xslt/metadataControl.xsl,false">Stylesheet to create the link to the metadata for constants and variables</option>
+ <option value="MC,http://phd.cs.unibo.it/helm/xslt/metadataControl.xsl,false">Stylesheet to create links to metadata</option>
<option value="MGL,http://phd.cs.unibo.it/helm/xslt/makeGraphLinks.xsl,false">Add hyperlink menus to graphs</option>
<option value="MMG,mk_meta_graph.xsl,true">Make graph of backward dependencies</option>
<option value="MDG,mk_dep_graph.xsl,true">Make graph of dependencies</option>