]> matita.cs.unibo.it Git - helm.git/blob - helm/on-line/xslt/demultiplexMutual.xsl
2f86509378f535c0325928539e7cb5a411d8b11a
[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 <!-- BUG UWOBO -->
17 <xsl:include href="http://phd.cs.unibo.it/helm/xslt/metadataLib.xsl"/>
18
19 <xsl:variable name="url" select="concat($getterURL,'resolve?uri=')"/>
20
21 <xsl:template match="InductiveDefinition">
22  <xsl:for-each select="InductiveType">
23   <xsl:variable name="RDFURIInductiveType" select="concat($RDFURI,',',position())"/>
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    <xsl:apply-templates select="document(concat($url,$RDFURIConstructor))" mode="makelink">
31     <xsl:with-param name="name" select="@name"/>
32     <xsl:with-param name="RDFURI" select="$RDFURIConstructor"/>
33    </xsl:apply-templates>
34   </xsl:for-each>
35  </xsl:for-each>
36 </xsl:template>
37
38 </xsl:stylesheet>