[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Overview about xml document in html
[moving this thread over to docbook-apps where stylesheet issues are discussed] Hi Frenzel, The DocBook stylesheets have a lot of parameters that let you control many aspects of formatting, and you don't need to know much about XSLT to set parameter values on the command line. However, there isn't a parameter to do what you want. That would require some customization of some DocBook XSL templates, which requires knowledge of XSLT. There is a lot of information about how to customize DocBook XSL in my book (available online here): http://www.sagehill.net/docbookxsl/ It won't teach you XSLT, though. If you don't want to climb that learning curve, you would find someone that knows XSLT to do the work. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Frenzel Ina" <Ina.Frenzel@facton.com> To: <docbook@lists.oasis-open.org> Sent: Wednesday, June 18, 2008 6:22 AM Subject: [docbook] Overview about xml document in html Hello everyone, I would like to have an overview about my xml document in HTML that includes the following in a table: - chapter title - chapter ID - section title - section ID - link - olink - xref - image fileref - figure title - topic name and topic id for context-sensitive HTML Help How can I do that? I'm a docbook newbie and I have no notion of XSL. One of my colleagues has started with: <xsl:template match="docbook:section"> <li> <span style="font-weight:bold; "> <xsl:text>Section: </xsl:text> </span> <xsl:for-each select="@xml:id"> <span style="font-style:italic; "> <xsl:value-of select="string(.)" /> </span> </xsl:for-each> <span> <xsl:text> </xsl:text> </span> <xsl:for-each select="docbook:title"> <xsl:apply-templates /> <br/> <span> <xsl:text>Anchors: </xsl:text> </span> <xsl:for-each select="docbook:anchor"> <span> <xsl:text>(</xsl:text> </span> <xsl:for-each select="@xml:id"> <span style="font-style:italic; "> <xsl:value-of select="string(.)" /> </span> </xsl:for-each> <span> <xsl:text>)</xsl:text> </span> </xsl:for-each> <span> <xsl:text>,</xsl:text> </span> </xsl:for-each> <xsl:apply-templates select="child::*[local-name()!='section']//docbook:figure|docbook:figure " /> <xsl:apply-templates select="child::*[local-name()!='section'][local-name()!='figure']//docbo ok:imagedata" /> <xsl:apply-templates select="child::*[local-name()!='section']//docbook:link|docbook:link" /> <xsl:apply-templates select="child::*[local-name()!='section']//docbook:xref|docbook:xref" /> <xsl:apply-templates select="child::*[local-name()!='section']//docbook:olink|docbook:olink" /> <ol> <xsl:apply-templates select="docbook:section" /> </ol> </li> </xsl:template> Unfortunately he couldn't continue the document and now he's gone. Could anybody of you help me, please? -------------------------------------------------------------------------- Mit freundlichen Grüßen i.A. Ina Frenzel Assistentin Niederlassung Dresden FACTON GmbH Prager Str. 2 01069 Dresden Tel.: +49-351-40223-0 Fax: +49-351-40223-15 Mail: Ina.Frenzel@facton.com Web: http://www.facton.com -------------------------------------------------------------------------- FACTON© in der Presse Die neusten Artikel zum downloaden hier: http://www.facton.com/de/services/presse.php -------------------------------------------------------------------------- Vertretungsberechtigte Geschäftsführer: Thoralf Nehls, Martin Nehls Sitz der Gesellschaft: Prager Straße 2, 01069 Dresden Handelsregister: Amtsgericht Dresden HRB 17304 -------------------------------------------------------------------------- "This email message is intended only for the person(s) to whom it is addressed and as such is confidential. If you have received this communication in error, please notify us immediately and delete the original message. Thank you for your cooperation." --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]