]> matita.cs.unibo.it Git - helm.git/commitdiff
Ported to RDF syntax.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 24 Oct 2001 12:44:34 +0000 (12:44 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 24 Oct 2001 12:44:34 +0000 (12:44 +0000)
helm/style/mk_meta_graph.xsl

index f9d6faa2334f2a6f5b6ad5ad03d88dfc964954d5..020a64af52758c95b0f13a5057900c4b43971589 100644 (file)
 ">
 ]>
 
-<xsl:stylesheet version="0.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                              xmlns:ht="http://www.cs.unibo.it/helm/namespaces/helm-theory">
+<xsl:stylesheet version="0.1"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+  xmlns:h="http:/www.cs.unibo.it/helm/schemas/schema-h.rdf#">
 
 <xsl:output method="text"/>
 
 
 <xsl:template name="RDFURI_of_CICURI">
  <xsl:param name="uri" select="''"/>
- <xsl:variable name="base_RDF_URI" select="'helm:rdf:www.cs.unibo.it/helm/rdf/rdfprova//'"/>
+ <xsl:variable name="base_RDF_URI" select="'helm:rdf:www.cs.unibo.it/helm/rdf/backward//'"/>
  <xsl:variable name="before" select="substring-before($uri,'#xpointer(1/')"/>
  <xsl:value-of select="$base_RDF_URI"/>
  <xsl:choose>
  <xsl:text>];&CSCbr;</xsl:text>
 </xsl:template>
 
-<xsl:template match="occurs">
+<xsl:template match="*">
  <xsl:param name="currentCICURI" select="''"/>
  <xsl:param name="quotedCurrentCICURI" select="''"/>
- <xsl:for-each select="*">
+ <xsl:for-each select="*/*/*">
   <xsl:variable name="quotedURI">
    <xsl:call-template name="quote">
-    <xsl:with-param name="s" select="@uri"/>
+    <xsl:with-param name="s" select="@rdf:value"/>
+   </xsl:call-template>
+  </xsl:variable>
+  <xsl:variable name="quoted_uri">
+   <xsl:call-template name="quote_url">
+    <xsl:with-param name="s" select="@rdf:value"/>
    </xsl:call-template>
   </xsl:variable>
- <xsl:variable name="quoted_uri">
-  <xsl:call-template name="quote_url">
-   <xsl:with-param name="s" select="@uri"/>
-  </xsl:call-template>
- </xsl:variable>
   <!-- The nonce, quotedCurrentCICURI are used to force the document reload -->
   <xsl:if test="not(name(document(concat($uri_set_queueURL,'add_if_not_in?uri=',$quoted_uri,'&amp;nonce=',generate-id(),'&amp;PID=',$PID,'&amp;quotedCurrentCICURI=',$quotedCurrentCICURI))/*)='not_added_because_already_too_many')">
    <xsl:text> </xsl:text>