--- /dev/null
+.PHONY : clean
+
+RSTYLE=reference.xsl
+BSTYLE=book.xsl
+VPATH=../docsrc
+SAXVER=-6
+
+all: copyright.html warranty.html reference.html index.html
+ cd common; make
+ cd lib; make
+ cd html; make
+ cd fo; make
+
+copyright.html: copyright.xml $(RSTYLE)
+ xnsgmls -sv -E 5 -c /share/doctypes/catalog $(VPATH)/$<
+ saxon $(SAXVER) $< $(RSTYLE) $@
+
+warranty.html: warranty.xml $(RSTYLE)
+ xnsgmls -sv -E 5 -c /share/doctypes/catalog $(VPATH)/$<
+ saxon $(SAXVER) $< $(RSTYLE) $@
+
+reference.html: reference.xml $(RSTYLE) lib/lib.xml common/common.xml \
+ html/param.xml html/ebnf.xml \
+ fo/param.xml fo/table.xml
+ xnsgmls -sv -E 5 -c /share/doctypes/catalog $(VPATH)/$<
+ saxon $(SAXVER) $< $(RSTYLE) $@
+
+index.html: documentation.xml $(BSTYLE) reference.xml
+ xnsgmls -sv -E 5 -c /share/doctypes/catalog $(VPATH)/$<
+ saxon $(SAXVER) $< $(BSTYLE) $@
+
+clean:
+ rm -f *.html common/*.html lib/*.html html/*.html fo/*.html
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:import href="../html/chunk.xsl"/>
+
+<xsl:param name="toc.section.depth" select="'1'"/>
+
+<xsl:param name="html.stylesheet" select="'reference.css'"/>
+
+<xsl:template match="olink[@type='title']">
+ <xsl:variable name="xml"
+ select="document(unparsed-entity-uri(@targetdocent))"/>
+ <xsl:variable name="title" select="($xml/*/title[1]
+ |$xml/*/bookinfo/title[1]
+ |$xml/*/referenceinfo/title[1])[1]"/>
+ <i>
+ <a href="{@localinfo}">
+ <xsl:apply-templates select="$title/*|$title/text()"/>
+ </a>
+ </i>
+</xsl:template>
+
+<xsl:template match="bookinfo/copyright|reference/copyright"
+ mode="titlepage.mode">
+ <xsl:variable name="years" select="year"/>
+ <xsl:variable name="holders" select="holder"/>
+
+ <p class="{name(.)}">
+ <a href="copyright.html">
+ <xsl:call-template name="gentext.element.name"/>
+ </a>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:call-template name="dingbat">
+ <xsl:with-param name="dingbat">copyright</xsl:with-param>
+ </xsl:call-template>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:apply-templates select="$years" mode="titlepage.mode"/>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:call-template name="gentext.by"/>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:apply-templates select="$holders" mode="titlepage.mode"/>
+ <xsl:text>. </xsl:text>
+ <a href="warranty.html">No Warranty</a>
+ <xsl:text>.</xsl:text>
+ </p>
+</xsl:template>
+
+</xsl:stylesheet>
--- /dev/null
+STYLE=../jrefhtml.xsl
+VPATH=../../docsrc/common
+
+HTMLFILES = common.html
+
+all: $(HTMLFILES)
+
+%.html : %.xml $(STYLE)
+ saxon $< $(STYLE) $@
--- /dev/null
+STYLE=../jrefhtml.xsl
+VPATH=../../docsrc/fo
+
+HTMLFILES = param.html table.html
+
+all: $(HTMLFILES)
+
+%.html : %.xml $(STYLE)
+ saxon $< $(STYLE) $@
--- /dev/null
+STYLE=../jrefhtml.xsl
+VPATH=../../docsrc/html
+
+HTMLFILES = param.html ebnf.html
+
+all: $(HTMLFILES)
+
+%.html : %.xml $(STYLE)
+ saxon $< $(STYLE) $@
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:import href="../docsrc/jrefhtml.xsl"/>
+
+<xsl:param name="html.stylesheet" select="'../reference.css'"/>
+
+<xsl:template match="copyright" mode="titlepage.mode">
+ <xsl:variable name="years" select="year"/>
+ <xsl:variable name="holders" select="holder"/>
+
+ <p class="{name(.)}">
+ <a href="../copyright.html">
+ <xsl:call-template name="gentext.element.name"/>
+ </a>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:call-template name="dingbat">
+ <xsl:with-param name="dingbat">copyright</xsl:with-param>
+ </xsl:call-template>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:apply-templates select="$years" mode="titlepage.mode"/>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:call-template name="gentext.by"/>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:apply-templates select="$holders" mode="titlepage.mode"/>
+ <xsl:text>. </xsl:text>
+ <a href="../warranty.html">No Warranty</a>
+ <xsl:text>.</xsl:text>
+ </p>
+</xsl:template>
+
+</xsl:stylesheet>
--- /dev/null
+STYLE=../jrefhtml.xsl
+VPATH=../../docsrc/lib
+
+HTMLFILES = lib.html
+
+all: $(HTMLFILES)
+
+%.html : %.xml $(STYLE)
+ saxon $< $(STYLE) $@
--- /dev/null
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:import href="../html/docbook.xsl"/>
+
+<xsl:param name="html.stylesheet" select="'reference.css'"/>
+
+<xsl:template match="/legalnotice">
+ <xsl:apply-templates select="." mode="titlepage.mode"/>
+</xsl:template>
+
+<xsl:template match="olink[@type='title']">
+ <xsl:variable name="xml"
+ select="document(unparsed-entity-uri(@targetdocent))"/>
+ <xsl:variable name="title" select="($xml/*/title[1]
+ |$xml/*/bookinfo/title[1]
+ |$xml/*/referenceinfo/title[1])[1]"/>
+ <i>
+ <a href="{@localinfo}">
+ <xsl:apply-templates select="$title/*|$title/text()"/>
+ </a>
+ </i>
+</xsl:template>
+
+<xsl:template match="copyright" mode="titlepage.mode">
+ <xsl:variable name="years" select="year"/>
+ <xsl:variable name="holders" select="holder"/>
+
+ <p class="{name(.)}">
+ <a href="copyright.html">
+ <xsl:call-template name="gentext.element.name"/>
+ </a>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:call-template name="dingbat">
+ <xsl:with-param name="dingbat">copyright</xsl:with-param>
+ </xsl:call-template>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:apply-templates select="$years" mode="titlepage.mode"/>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:call-template name="gentext.by"/>
+ <xsl:call-template name="gentext.space"/>
+ <xsl:apply-templates select="$holders" mode="titlepage.mode"/>
+ <xsl:text>. </xsl:text>
+ <a href="warranty.html">No Warranty</a>
+ <xsl:text>.</xsl:text>
+ </p>
+</xsl:template>
+
+</xsl:stylesheet>
+DIRS=common lib html fo template
+
all:
- cd common; make
- cd lib; make
- cd html; make
- cd fo; make
- cd template; make
+ for i in $(DIRS) __bogus__; do \
+ if [ $$i != __bogus__ ] ; then \
+ echo "$(MAKE) -C $$i"; $(MAKE) -C $$i; \
+ fi \
+ done
+
+clean:
+ for i in $(DIRS) __bogus__; do \
+ if [ $$i != __bogus__ ] ; then \
+ echo "$(MAKE) -C $$i clean"; $(MAKE) -C $$i clean; \
+ fi \
+ done
+XSLT=../../../cvstools/saxon
+XJPARSE=../../../cvstools/xjparse
+
JSTYLE=../../docsrc/xsl2jref.xsl
VPATH=../../common
all: $(XMLFILES)
+clean:
+ rm -f $(XMLFILES)
+
%.xml : %.xsl $(JSTYLE) ../../docsrc/legalnotice.xml
- saxon -6 $< $(JSTYLE) /dev/null output-file=$@
- xnsgmls -E 5 -sv -c /share/doctypes/catalog $@
+ $(XSLT) $< $(JSTYLE) /dev/null output-file=$@
+ $(XJPARSE) $@
+XSLT=../../../cvstools/saxon
+XJPARSE=../../../cvstools/xjparse
+
JSTYLE=../../docsrc/xsl2jref.xsl
VPATH=../../fo
all: $(XMLFILES)
+clean:
+ rm -f $(XMLFILES)
+
%.xml : %.xsl $(JSTYLE)
- saxon -6 $< $(JSTYLE) - output-file=$@
+ $(XSLT) $< $(JSTYLE) /dev/null output-file=$@
+ $(XJPARSE) $@
+XSLT=../../../cvstools/saxon
+XJPARSE=../../../cvstools/xjparse
+
JSTYLE=../../docsrc/xsl2jref.xsl
VPATH=../../html
all: $(XMLFILES)
+clean:
+ rm -f $(XMLFILES)
+
%.xml : %.xsl $(JSTYLE)
- saxon -6 $< $(JSTYLE) /dev/null output-file=$@
+ $(XSLT) $< $(JSTYLE) /dev/null output-file=$@
+ $(XJPARSE) $@
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:lxslt="http://xml.apache.org/xslt"
- exclude-result-prefixes="lxslt"
version='1.0'>
<xsl:import href="../html/docbook.xsl"/>
<!-- ==================================================================== -->
-<xsl:template match="lxslt:component"/>
-
<xsl:param name="part.autolabel" select="0"/>
<xsl:template match="refentry">
+XSLT=../../../cvstools/saxon
+XJPARSE=../../../cvstools/xjparse
+
JSTYLE=../../docsrc/xsl2jref.xsl
VPATH=../../lib
all: $(XMLFILES)
+clean:
+ rm -f $(XMLFILES)
+
%.xml : %.xsl $(JSTYLE)
- saxon -6 $< $(JSTYLE) /dev/null output-file=$@
+ $(XSLT) $< $(JSTYLE) /dev/null output-file=$@
+ $(XJPARSE) $@
+XSLT=../../../cvstools/saxon
+XJPARSE=../../../cvstools/xjparse
+
JSTYLE=../../docsrc/xsl2jref.xsl
VPATH=../../template
all: $(XMLFILES)
+clean:
+ rm -f $(XMLFILES)
+
%.xml : %.xsl $(JSTYLE)
- saxon -6 $< $(JSTYLE) /dev/null output-file=$@
- xnsgmls -E 5 -sv -c /share/doctypes/catalog $@
+ $(XSLT) $< $(JSTYLE) /dev/null output-file=$@
+ $(XJPARSE) $@
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
- xmlns:docbook="http://www.oasis-open.org/docbook/xml/4.0"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
- xmlns:xt="http://www.jclark.com/xt"
- xmlns:saxon="http://icl.com/saxon"
xmlns:lxslt="http://xml.apache.org/xslt"
- xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect"
- exclude-result-prefixes="doc docbook xsl"
- extension-element-prefixes="xt saxon xalanredirect lxslt">
+ exclude-result-prefixes="doc xsl lxslt">
+
+<xsl:include href="../html/chunker.xsl"/>
<xsl:output
method="xml"
<!-- ==================================================================== -->
+<xsl:template match="lxslt:*">
+ <!-- nop -->
+</xsl:template>
+
+<!-- ==================================================================== -->
+
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$output-file = ''">
</xsl:message>
</xsl:when>
<xsl:when test="/xsl:stylesheet/doc:*">
- <xt:document method="xml" href="{$output-file}">
- <xsl:apply-templates/>
- <xsl:fallback>
- <xalanredirect:write file="{$output-file}">
- <xsl:apply-templates/>
- <xsl:fallback>
- <saxon:output method="xml" file="{$output-file}">
- <xsl:apply-templates/>
- <xsl:fallback>
- <xsl:apply-templates/>
- </xsl:fallback>
- </saxon:output>
- </xsl:fallback>
- </xalanredirect:write>
- </xsl:fallback>
- </xt:document>
+ <xsl:call-template name="write.chunk">
+ <xsl:with-param name="filename" select="$output-file"/>
+ <xsl:with-param name="method" select="'xml'"/>
+ <xsl:with-param name="encoding" select="'utf-8'"/>
+ <xsl:with-param name="content">
+ <xsl:apply-templates/>
+ </xsl:with-param>
+ </xsl:call-template>
</xsl:when>
<xsl:otherwise>
<!-- nop -->
</xsl:template>
<xsl:template match="xsl:include">
+ <!-- nop -->
+<!--
<xsl:apply-templates select="document(@href)/*"/>
+-->
</xsl:template>
<xsl:template match="@*" mode="copy">
</xsl:template>
<xsl:template match="doc:attribute-set">
- <xsl:variable name="name" select="@mode"/>
+ <xsl:variable name="name" select="@name"/>
<refentry id="attrset.{$name}">
<refnamediv>
<xsl:param name="callout.unicode.start.character" select="10102"
doc:type='integer'/>
-<doc:param name="callout.graphics.number.limit" xmlns="">
+<doc:param name="callout.unicode.start.character" xmlns="">
<refpurpose>Number of the largest callout graphic</refpurpose>
<refdescription>
<para>If <parameter>callout.graphics</parameter>
<xsl:param name="callout.unicode.number.limit" select="'10'"
doc:type='integer'/>
-<doc:param name="callout.graphics.number.limit" xmlns="">
+<doc:param name="callout.unicode.number.limit" xmlns="">
<refpurpose>Number of the largest callout graphic</refpurpose>
<refdescription>
<para>If <parameter>callout.graphics</parameter>
<!-- ==================================================================== -->
<xsl:param name="linenumbering.extension" select="'1'" doc:type='boolean'/>
-<doc:param name="saxon.linenumbering" xmlns="">
+<doc:param name="linenumbering.extension" xmlns="">
<refpurpose>Enable the line numbering extension</refpurpose>
<refdescription>
<para>If true, verbatim environments (elements that have the
<!-- ==================================================================== -->
<xsl:param name="tablecolumns.extension" select="'1'" doc:type='boolean'/>
-<doc:param name="saxon.tablecolumns" xmlns="">
+<doc:param name="tablecolumns.extension" xmlns="">
<refpurpose>Enable the table columns extension function</refpurpose>
<refdescription>
<para>The table columns extension function adjusts the widths of table
<!-- ==================================================================== -->
<xsl:param name="generate.set.toc" select='1' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.set.toc" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<!-- ==================================================================== -->
<xsl:param name="generate.book.toc" select='1' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.book.toc" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<!-- ==================================================================== -->
<xsl:param name="generate.part.toc" select='1' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.part.toc" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<!-- ==================================================================== -->
<xsl:param name="generate.reference.toc" select='1' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.reference.toc" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<!-- ==================================================================== -->
<xsl:param name="generate.preface.toc" select='1' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.preface.toc" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<!-- ==================================================================== -->
<xsl:param name="generate.chapter.toc" select='1' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.chapter.toc" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<!-- ==================================================================== -->
<xsl:param name="generate.appendix.toc" select='1' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.appendix.toc" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<!-- ==================================================================== -->
<xsl:param name="generate.article.toc" select='1' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.article.toc" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<!-- ==================================================================== -->
<xsl:param name="generate.section.toc" select='0' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.section.toc" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<!-- ==================================================================== -->
<xsl:param name="generate.index" select='1' doc:type='boolean'/>
-<doc:param name="" xmlns="">
+<doc:param name="generate.index" xmlns="">
<refpurpose>FIXME:</refpurpose>
<refdescription>
<para>FIXME:
<xsl:param name="callout.unicode.start.character" select="10102"
doc:type='integer'/>
-<doc:param name="callout.graphics.number.limit" xmlns="">
+<doc:param name="callout.unicode.start.character" xmlns="">
<refpurpose>Number of the largest callout graphic</refpurpose>
<refdescription>
<para>If <parameter>callout.graphics</parameter>
<xsl:param name="callout.unicode.number.limit" select="'10'"
doc:type='integer'/>
-<doc:param name="callout.graphics.number.limit" xmlns="">
+<doc:param name="callout.unicode.number.limit" xmlns="">
<refpurpose>Number of the largest callout graphic</refpurpose>
<refdescription>
<para>If <parameter>callout.graphics</parameter>
<refpurpose>Substitute one text string for another in a string</refpurpose>
<refdescription>
<para>The <function>string.subst</function> template replaces all
-occurances of <param>target</param> in <param>string</param>
-with <param>replacement</param> and returns the result.
+occurances of <parameter>target</parameter> in <parameter>string</parameter>
+with <parameter>replacement</parameter> and returns the result.
</para>
</refdescription>
</doc:template>
<refdescription>
<para>The <function>length-spec</function> template returns the
qualified length from a dimension. If an unqualified length is given,
-the <param>default.units</param> will be added to it.
+the <parameter>default.units</parameter> will be added to it.
</para>
</refdescription>
</doc:template>