[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet
http://www.sagehill.net/docbookxsl/ChunkingCustomization.htmlYour custom template for article content would go into the first file, which is named 'mydocbook.xsl' in the example.
Bob Stayton Sagehill Enterprises bobs@sagehill.net -------------------------------------------------- From: "Shlomi Fish" <shlomif@shlomifish.org> Sent: Tuesday, January 15, 2013 2:53 PM To: "Bob Stayton" <bobs@sagehill.net> Cc: "DocBook Apps" <docbook-apps@lists.oasis-open.org>Subject: Re: [docbook-apps] Cannot process a DocBook 5/XML document using a custom stylesheet
Hi Bob, On Tue, 15 Jan 2013 10:42:51 -0800 "Bob Stayton" <bobs@sagehill.net> wrote:The template named 'id.attribute' was added in version 1.77.1 of the stylesheets. If your XML catalog is resolving the 'current' URLs in your import statements to version 1.76.1 or earlier, then the call to that template in your customization will not work.thanks, that was the problem and I fixed it now. Now I'm running into a different problem. With this stylesheet if I uncomment the <xsl:templatematch="d:article"> element then I get the output only to STDOUT. I will givethe invocation of xsltproc that I use separately: [QUOTE] <?xml version='1.0' encoding='UTF-8'?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"xmlns:db="http://docbook.org/ns/docbook" xmlns:d="http://docbook.org/ns/docbook" xmlns:vrd="http://www.shlomifish.org/open-source/projects/XML-Grammar/Vered/" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml"> <xsl:importhref="http://docbook.sourceforge.net/release/xsl-ns/current/xhtml-1_1/onechunk.xsl" /><xsl:import href="shlomif-essays-5-xhtml-common.xsl" /> <!-- Avoid Generating a Table-of-Contents--> <xsl:param name="generate.toc"> article toc </xsl:param> <!-- Disable the title="" attribute in sections. --> <xsl:template name="generate.html.title"> </xsl:template> <!-- <xsl:template match="d:article"> <xsl:call-template name="id.warning"/><xsl:element name="{$div.element}" namespace="http://www.w3.org/1999/xhtml"><xsl:call-template name="common.html.attributes"> <xsl:with-param name="inherit" select="1"/> </xsl:call-template> <xsl:call-template name="id.attribute"> <xsl:with-param name="conditional" select="0"/> </xsl:call-template> <xsl:call-template name="article.titlepage"/> <xsl:variable name="toc.params"> <xsl:call-template name="find.path.params"> <xsl:with-param name="table" select="normalize-space($generate.toc)"/> </xsl:call-template> </xsl:variable> <xsl:call-template name="make.lots"> <xsl:with-param name="toc.params" select="$toc.params"/> <xsl:with-param name="toc"> <xsl:call-template name="component.toc"> <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/> </xsl:call-template> </xsl:with-param> </xsl:call-template> <xsl:apply-templates/> <xsl:call-template name="process.footnotes"/> </xsl:element> </xsl:template> --> </xsl:stylesheet> [/QUOTE] [SHELL] xsltproc --stringparam root.filename lib/docbook/5/essays/bad-elements/all-in-one.xhtml.temp.xml --path /usr/share/sgml/docbook/xsl-ns-stylesheets/xhtml-1_1 lib/sgml/shlomif-docbook/xsl-5-stylesheets/shlomif-essays-5-xhtml-onechunk.xsl lib/docbook/5/xml/bad-elements.xml [/SHELL]Note that without the commenting-out intact, the output outputs to the rightplace. I am using docbook5-style-xsl-1.78.0-1.mga3 (which I built myself). Regards, -- Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/Free (Creative Commons) Music Downloads, Reviews and more - http://jamendo.com/Dax: yep, space. Nothing but nothing all around. — Star Trek, “We, the Living Dead” by Shlomi Fish Please reply to list if it's a mailing list post - http://shlom.in/reply .
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]