]> matita.cs.unibo.it Git - helm.git/blob - helm/on-line/xslt/demultiplexMutual.xsl
Absolute path removed thanks to a bug-fixing in Uwobo.
[helm.git] / helm / on-line / xslt / demultiplexMutual.xsl
1 <?xml version="1.0"?>
2
3 <xsl:stylesheet version="1.0"
4  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5  xmlns:subst="http://www.cs.unibo.it/helm/subst">
6
7 <xsl:output 
8         method="xml"
9         encoding="iso-8859-1" 
10         media-type="text/html"
11         doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
12         doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
13
14 <xsl:param name="RDFURI" select="''"/>
15
16 <xsl:include href="metadataLib.xsl"/>
17
18 <xsl:variable name="url" select="concat($getterURL,'resolve?uri=')"/>
19
20 <xsl:template match="InductiveDefinition">
21  <xsl:for-each select="InductiveType">
22   <xsl:variable name="RDFURIInductiveType" select="concat($RDFURI,',',position())"/>
23    <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
24    <xsl:apply-templates select="document(concat($url,$RDFURIInductiveType))" mode="makelink">
25     <xsl:with-param name="name" select="@name"/>
26     <xsl:with-param name="RDFURI" select="$RDFURIInductiveType"/>
27    </xsl:apply-templates>
28   <xsl:for-each select="Constructor">
29    <xsl:variable name="RDFURIConstructor" select="concat($RDFURIInductiveType,',',position())"/>
30    <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
31    <xsl:apply-templates select="document(concat($url,$RDFURIConstructor))" mode="makelink">
32     <xsl:with-param name="name" select="@name"/>
33     <xsl:with-param name="RDFURI" select="$RDFURIConstructor"/>
34    </xsl:apply-templates>
35   </xsl:for-each>
36  </xsl:for-each>
37 </xsl:template>
38
39 </xsl:stylesheet>