diff options
-rw-r--r-- | docs/Makefile.in | 2 | ||||
-rw-r--r-- | docs/README | 4 | ||||
-rw-r--r-- | docs/xslt/pearson.xsl | 18 |
3 files changed, 17 insertions, 7 deletions
diff --git a/docs/Makefile.in b/docs/Makefile.in index c391031c4f..ef551e0a78 100644 --- a/docs/Makefile.in +++ b/docs/Makefile.in @@ -102,7 +102,7 @@ $(DOCBOOKDIR)/%.xml: %/index.xml xslt/expand-sambadoc.xsl $(DOCBOOKDIR)/%.xml: $(MANPAGEDIR)/%.xml xslt/expand-sambadoc.xsl mkdir -p $(@D) - $(XSLTPROC) --stringparam latex.imagebasedir "$*/" --stringparam noreference 1 --output $@ xslt/expand-sambadoc.xsl $< + $(XSLTPROC) --xinclude --stringparam latex.imagebasedir "$*/" --stringparam noreference 1 --output $@ xslt/expand-sambadoc.xsl $< $(DOCBOOKDIR)/manpages.xml: $(MANPAGES_SOURCES) xslt/manpage-summary.xsl mkdir -p $(@D) diff --git a/docs/README b/docs/README index 7a31a868c2..0f6c0e78db 100644 --- a/docs/README +++ b/docs/README @@ -92,6 +92,10 @@ Add the following two lines to /etc/xml/catalog for db2latex: <rewriteURI uriStartString="http://db2latex.sourceforge.net/xsl/" rewritePrefix="/export/user/me/source/docbook/db2latex/xsl/"/> <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current/" rewritePrefix="/export/user/me/source/docbook/docbook-xsl/"/> +For the Pearson DTD, add something like: + + <public publicId="-//Pearson//DTD Books//DE" uri="file:///home/jelmer/Xml_dtd_1.1/pearson.dtd"/> + (of course, adapt /export/user/me/source/ to whatever path db2latex is installed in...) diff --git a/docs/xslt/pearson.xsl b/docs/xslt/pearson.xsl index e5dd6749a5..bf362d39ea 100644 --- a/docs/xslt/pearson.xsl +++ b/docs/xslt/pearson.xsl @@ -12,7 +12,7 @@ <xsl:import href="../settings.xsl"/> - <xsl:output method="xml" indent="yes" encoding="UTF-8" doctype-public="-//Pearson//DTD Books//DE" doctype-system="../../Xml_dtd_1.1/pearson.dtd"/> + <xsl:output method="xml" indent="yes" encoding="UTF-8" doctype-public="-//Pearson//DTD Books//DE" doctype-system="http://www.pearson.de/pearson.dtd"/> <xsl:template match="book"> <xsl:element name="book"> @@ -37,8 +37,11 @@ </xsl:template> <xsl:template match="ulink"> - <xsl:element name="url"> - <xsl:value-of select="@ulink"/> + <xsl:apply-templates/> + <xsl:element name="footnote"> + <xsl:element name="url"> + <xsl:value-of select="@ulink"/> + </xsl:element> </xsl:element> </xsl:template> @@ -54,7 +57,7 @@ </xsl:element> </xsl:template> - <xsl:template match="itemizedlist"> + <xsl:template match="para/itemizedlist|itemizedlist"> <xsl:element name="ul"> <xsl:for-each select="listitem"> <xsl:element name="li"> @@ -71,10 +74,13 @@ </xsl:template> <xsl:template match="link"> + <!--FIXME <xsl:element name="xref"> - <xsl:attribute name="linkend"><xsl:value-of select="@linkend"/></xsl:attribute> + <xsl:attribute name="xlink:href"> + <xsl:value-of select="@linkend"/> + </xsl:attribute> <xsl:apply-templates/> - </xsl:element> + </xsl:element>--> </xsl:template> <xsl:template match="acronym"/> |