]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/style/theory_content.xsl
removed dependency on netclient, use http_client module from ocaml-http
[helm.git] / helm / style / theory_content.xsl
index 507370edb2f2e09678bb5ebafdca6fdf83fb0fed..e3e50b1f162759d6bdbe547518bc19424b90c587 100644 (file)
@@ -29,7 +29,7 @@
 <!-- First draft: May 08 2000, Claudio Sacerdoti Coen, Irene Schena        -->
 <!--***********************************************************************--> 
 
-<xsl:stylesheet version="0.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                               xmlns:ht="http://www.cs.unibo.it/helm/namespaces/helm-theory">
 
 
 <xsl:variable name="uri" select="concat(string($current_uri),$delim,string(@uri))"/>
     <xsl:copy>
      <xsl:copy-of select="@as"/>
-     <xsl:attribute name="name"><xsl:value-of select="substring-before(@uri,&quot;.&quot;)"/></xsl:attribute>
+     <xsl:attribute name="uri"><xsl:value-of select="$uri"/></xsl:attribute>
+    </xsl:copy>
+</xsl:template>
+
+<xsl:template match="ht:OBJECT">
+<xsl:param name="current_uri" select="''"/>
+<xsl:param name="delim" select="''"/>
+<xsl:variable name="uri" select="concat(string($current_uri),$delim,string(@uri))"/>
+    <xsl:copy>
+     <xsl:copy-of select="@mode"/>
      <xsl:attribute name="uri"><xsl:value-of select="$uri"/></xsl:attribute>
     </xsl:copy>
 </xsl:template>
@@ -78,4 +87,4 @@
   </xsl:copy>
 </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>