BSTYLE=book.xsl
VPATH=../docsrc
-DIRS=common refentry lib html fo manpages slides/html website tools template pi
+DIRS=common refentry lib html fo manpages wordml slides/html website tools template pi
all: copyright.html warranty.html reference.html index.html
for i in $(DIRS) __bogus__; do \
--- /dev/null
+include ../../../cvstools/Makefile.incl
+
+STYLE=../jrefhtml.xsl
+VPATH=../../docsrc/wordml
+XSLTOPT=
+
+HTMLFILES = param.html
+
+all: $(HTMLFILES)
+
+%.html : %.xml $(STYLE)
+ $(XSLT) $< $(STYLE) $@ $(XSLTOPT)
+
+param.html: docparam.xml
+ $(XSLT) $< ../../docsrc/clrefentry.xsl $(XSLTOPT)
+ touch param.html
+
+clean:
+ rm -f *.html
-DIRS=common refentry html fo manpages slides/html website template tools pi
+DIRS=common refentry html fo manpages wordml slides/html website template tools pi
all: xsl-params.xsl
for i in $(DIRS) __bogus__; do \
print " <member>$1</member>\n",
}
+print <<EOF5;
+ </simplelist>
+</xsl:variable>
+
+<xsl:variable name="xsl-wordml-parameters-list">
+ <simplelist>
+EOF5
+
+open (F, "../wordml/param.xsl");
+read (F, $_, -s "../wordml/param.xsl");
+close (F);
+foreach my $param (/<xsl:param name="[^\"]+"/gs) {
+ $param =~ /name=\"(.*)\"/;
+ print " <member>$1</member>\n",
+}
+
print <<EOF4;
</simplelist>
</xsl:variable>
<!ENTITY fo-param.xml SYSTEM "fo/docparam.xml" NDATA SGML>
<!ENTITY fo-table.xml SYSTEM "fo/table.xml" NDATA SGML>
<!ENTITY manpages-param.xml SYSTEM "manpages/docparam.xml" NDATA SGML>
+<!ENTITY wordml-param.xml SYSTEM "wordml/docparam.xml" NDATA SGML>
<!ENTITY slides-html-param.xml SYSTEM "slides/html/docparam.xml" NDATA SGML>
<!ENTITY website-param.xml SYSTEM "website/docparam.xml" NDATA SGML>
<!ENTITY titlepage.xml SYSTEM "template/titlepage.xml" NDATA SGML>
<listitem><para><olink type="title" localinfo="manpages/index.html"
targetdocent="manpages-param.xml"/></para>
</listitem>
+ <listitem><para><olink type="title" localinfo="wordml/index.html"
+ targetdocent="wordml-param.xml"/></para>
+ </listitem>
<listitem><para><olink type="title" localinfo="slides/html/index.html"
targetdocent="slides-html-param.xml"/></para>
</listitem>
--- /dev/null
+include ../../../cvstools/Makefile.incl
+
+JSTYLE=../../docsrc/xsl2jref.xsl
+VPATH=../../wordml
+
+XMLFILES = docparam.xml
+
+all: $(XMLFILES)
+
+clean:
+ rm -f $(XMLFILES)
+
+%.xml : %.xsl $(JSTYLE)
+ $(XSLT) $< $(JSTYLE) /dev/null output-file=$@
+ $(XJPARSE) $@
+
+docparam.xml: ../../wordml/param.xsl
+ $(MAKE) -C ../../wordml param.xml
+ cp ../../wordml/param.xml docparam.xml
<xsl:param name="manpages-baseuri"
select="'http://docbook.sourceforge.net/release/xsl/current/doc/manpages/'"/>
+<xsl:param name="wordml-baseuri"
+ select="'http://docbook.sourceforge.net/release/xsl/current/doc/wordml/'"/>
+
<xsl:template match="parameter">
<xsl:variable name="markup">
<xsl:apply-imports/>
</xsl:call-template>
</xsl:variable>
+ <xsl:variable name="iswordml">
+ <xsl:call-template name="is-wordml-parameter">
+ <xsl:with-param name="param" select="normalize-space(.)"/>
+ </xsl:call-template>
+ </xsl:variable>
+
<xsl:choose>
<xsl:when test="$ishtml != 0">
<a href="{concat($html-baseuri, normalize-space(.))}.html">
<xsl:copy-of select="$markup"/>
</a>
</xsl:when>
+ <xsl:when test="$iswordml != 0">
+ <a href="{concat($wordml-baseuri, normalize-space(.))}.html">
+ <xsl:copy-of select="$markup"/>
+ </a>
+ </xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$markup"/>
</xsl:otherwise>
--- /dev/null
+Makefile.param
+param.xml
+param.xsl
+profile-docbook.xsl
+xref.xsl
+include ../../cvstools/Makefile.incl
+
# Change this to where you are storing your roundtripping stylesheets
STYLESHEETDIR = .
all: param.xsl
+xml: param.xml
+
+html: param.html
+
+param.html: param.xml
+ $(XSLT) $< ../docsrc/lrefentry.xsl $@
+
+param.xml: param.xweb $(PARAMS)
+ ../../cvstools/paramchk -m Makefile.param $<
+ $(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=html
+ $(XSLT) $(PARAMPROF) ../profiling/strip-attributes.xsl $(PARAMSTRIP) attributes=condition
+ $(XSLT) $(PARAMSTRIP) ../../litprog/w2docbook.xsl $@
+ $(RM) $(PARAMPROF) $(PARAMSTRIP)
+
param.xsl: param.xweb
../../cvstools/paramchk -m Makefile.param $<
$(XSLT) $< ../profiling/profile.xsl $(PARAMPROF) profile.condition=wordml
../../cvstools/paramchk -m $@ param.xweb
clean:
- $(RM) param.xsl
+ $(RM) param.xml param.html param.xsl
$(RM) Makefile.param
echo "# foo" > Makefile.param
</copyright>
</bookinfo>
- <preface>
+ <preface id="preface">
<title>Introduction</title>
<para>This is technical documentation for the DocBook XSL Stylesheets to produce WordML output (or Apple Pages); it documents the parameters, templates and usage of the stylesheet(s).</para>
</preface>
&wordml.template;
+&pages.template;
<appendix>
<title>The Stylesheet</title>