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">
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" />
14 <xsl:include href="metadataLib.xsl"/>
16 <xsl:template match="InductiveDefinition">
17 <xsl:for-each select="InductiveType">
18 <xsl:variable name="CICURIInductiveType" select="concat($CICURI,'#xpointer(1/',position())"/>
19 <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
20 <xsl:call-template name="makelink">
21 <xsl:with-param name="name" select="@name"/>
22 <xsl:with-param name="CICURI" select="concat($CICURIInductiveType,')')"/>
24 <xsl:for-each select="Constructor">
25 <xsl:variable name="CICURIConstructor" select="concat($CICURIInductiveType,'/',position(),')')"/>
26 <h3>Metadata related to <xsl:value-of select="@name"/>:</h3>
27 <xsl:call-template name="makelink">
28 <xsl:with-param name="name" select="@name"/>
29 <xsl:with-param name="CICURI" select="$CICURIConstructor"/>
35 <!-- Not an Inductive Type -->
36 <xsl:template match="*">
37 <xsl:call-template name="makelink">
38 <xsl:with-param name="name" select="$CICURI"/>
39 <xsl:with-param name="CICURI" select="$CICURI"/>