]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/on-line/xslt/metadataControl.xsl
* the URI passed to the rdfly deamon is now CICURI, except that quoting
[helm.git] / helm / on-line / xslt / metadataControl.xsl
index c33d7b2b45891d37190ad0e643efbd8d4ec64d8c..c893437b3bbc860168435e36bf24853a42ec3904 100644 (file)
        doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
        doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
 
-<xsl:param name="RDFURI" select="''"/>
+<xsl:include href="metadataLib.xsl"/>
 
-<!-- BUG UWOBO -->
-<xsl:include href="http://phd.cs.unibo.it/helm/xslt/metadataLib.xsl"/>
+<xsl:template match="InductiveDefinition">
+ <xsl:for-each select="InductiveType">
+  <xsl:variable name="CICURIInductiveType" select="concat($CICURI,'#xpointer(1/',position())"/>
+  <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
+  <xsl:call-template name="makelink">
+   <xsl:with-param name="name" select="@name"/>
+   <xsl:with-param name="CICURI" select="concat($CICURIInductiveType,')')"/>
+  </xsl:call-template>
+  <xsl:for-each select="Constructor">
+   <xsl:variable name="CICURIConstructor" select="concat($CICURIInductiveType,'/',position(),')')"/>
+   <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
+   <xsl:call-template name="makelink">
+    <xsl:with-param name="name" select="@name"/>
+    <xsl:with-param name="CICURI" select="$CICURIConstructor"/>
+   </xsl:call-template>
+  </xsl:for-each>
+ </xsl:for-each>
+</xsl:template>
 
-<xsl:template match="unresolved|url">
- <xsl:apply-templates mode="makelink" select=".">
-  <xsl:with-param name="name" select="$CICURI"/>
-  <xsl:with-param name="RDFURI" select="$RDFURI"/>
- </xsl:apply-templates>
+<!-- Not an Inductive Type -->
+<xsl:template match="*">
+  <xsl:call-template name="makelink">
+   <xsl:with-param name="name" select="$CICURI"/>
+   <xsl:with-param name="CICURI" select="$CICURI"/>
+  </xsl:call-template>
 </xsl:template>
 
 </xsl:stylesheet>