JSTYLE=../../docsrc/xsl2jref.xsl
VPATH=../../html
-XMLFILES = param.xml ebnf.xml
+XMLFILES = param.xml
all: $(XMLFILES)
%.xml : %.xsl $(JSTYLE)
$(XSLT) $< $(JSTYLE) /dev/null output-file=$@
$(XJPARSE) $@
+
+param.xml: param.xweb
+ $(MAKE) -C ../../html param.xml
+ cp ../../html/param.xml .
<xsl:import href="../../litprog/html/ldocbook.xsl"/>
+<xsl:template match="src:fragment" mode="label.markup">
+ <xsl:text>§</xsl:text>
+ <xsl:number from="/" level="any" format="1"/>
+</xsl:template>
+
<xsl:template match="src:fragment" mode="xref-to">
<xsl:variable name="section" select="ancestor::refentry[1]"/>
<xsl:template match="src:fragment">
<xsl:param name="suppress-numbers" select="'0'"/>
<xsl:param name="linenumbering" select="'numbered'"/>
+
<xsl:variable name="section" select="ancestor::section[1]"/>
+ <xsl:variable name="id" select="@id"/>
+ <xsl:variable name="referents"
+ select="//src:fragment[.//src:fragref[@linkend=$id]]"/>
<a name="{@id}"/>
<table border="1" width="100%">
<td>
<p>
<b>
- <xsl:text>§</xsl:text>
- <xsl:apply-templates select="$section" mode="label.markup"/>
- <xsl:number from="/" level="any"/>
+ <xsl:apply-templates select="." mode="label.markup"/>
</b>
+ <xsl:if test="$referents">
+ <xsl:text>: </xsl:text>
+ <xsl:for-each select="$referents">
+ <xsl:if test="position() > 1">, </xsl:if>
+ <a href="#{@id}">
+ <xsl:apply-templates select="." mode="label.markup"/>
+ </a>
+ </xsl:for-each>
+ </xsl:if>
</p>
</td>
</tr>
<!ENTITY common.xml SYSTEM "common/common.xml" NDATA SGML>
<!ENTITY lib.xml SYSTEM "lib/lib.xml" NDATA SGML>
<!ENTITY html-param.xml SYSTEM "html/param.xml" NDATA SGML>
-<!ENTITY html-ebnf.xml SYSTEM "html/ebnf.xml" NDATA SGML>
<!ENTITY fo-param.xml SYSTEM "fo/param.xml" NDATA SGML>
<!ENTITY fo-table.xml SYSTEM "fo/table.xml" NDATA SGML>
<!ENTITY titlepage.xml SYSTEM "template/titlepage.xml" NDATA SGML>
<listitem><para><olink type="title" localinfo="html/param.html"
targetdocent="html-param.xml"/></para>
</listitem>
-<listitem><para><olink type="title" localinfo="html/ebnf.html"
- targetdocent="html-ebnf.xml"/></para>
-</listitem>
<listitem><para><olink type="title" localinfo="fo/param.html"
targetdocent="fo-param.xml"/></para>
</listitem>