DocBook WebHelp reference numbering
-
- Posts: 32
- Joined: Tue Dec 18, 2012 3:22 am
DocBook WebHelp reference numbering
Hi Radu & Sorin,
Where does the DocBook 5 WebHelp derive numbering for reference chapters? I need to override the default of I and set this to 0.
In the DocBook 5 PDF transform there's a reference.autolabel param, so that was easy.
If I dig down in the various WebHelp files, these seem likely:
C:\Program Files\Oxygen XML Editor 14\frameworks\docbook\xsl\webhelp\xsl\webhelp-common.xsl
Line 51: <xsl:param name="reference.autolabel" select="0"/>
and
C:\Program Files\Oxygen XML Editor 14\frameworks\docbook\xsl\xhtml\refentry.xsl
Line 47: <xsl:number from="d:book" count="d:reference" format="I."/>
But, when I edited the above so <xsl:number... format="0"/>, the reference still displayed numbered as "I." Obviously I'm editing the incorrect file.
Thanks!
Where does the DocBook 5 WebHelp derive numbering for reference chapters? I need to override the default of I and set this to 0.
In the DocBook 5 PDF transform there's a reference.autolabel param, so that was easy.

If I dig down in the various WebHelp files, these seem likely:
C:\Program Files\Oxygen XML Editor 14\frameworks\docbook\xsl\webhelp\xsl\webhelp-common.xsl
Line 51: <xsl:param name="reference.autolabel" select="0"/>
and
C:\Program Files\Oxygen XML Editor 14\frameworks\docbook\xsl\xhtml\refentry.xsl
Line 47: <xsl:number from="d:book" count="d:reference" format="I."/>
But, when I edited the above so <xsl:number... format="0"/>, the reference still displayed numbered as "I." Obviously I'm editing the incorrect file.
Thanks!
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DocBook WebHelp reference numbering
Post by sorin_ristache »
Hi,
Do you mean you want to suppress the numbers generated automatically that precede the chapter title? You have to set the parameter chapter.autolabel to 0. There are similar parameters for sections (section.autolabel), the Preface part (preface.autolabel), references (reference.autolabel). In the WebHelp transformation when you add a new parameter to the list of built-in ones in the Parameters dialog box you have to add it also in the Ant script file that executes the transformation, that is [Oxygen-install-dir]/frameworks/docbook/xsl/com.oxygenxml.webhelp/build_docbook.xml. You have to add it in the task called docbook-xhtml-transform which in Oxygen 14.1 is between lines 40 and 107. For example you can add chapter.autolabel at line 87:
Starting with Oxygen 14.2 this parameter together with a long list of other DocBook specific parameters (which are available for example in the DocBook PDF transformation) will be available by default in the DocBook WebHelp transformation, so you won't have to add it manually.
Regards,
Sorin
Do you mean you want to suppress the numbers generated automatically that precede the chapter title? You have to set the parameter chapter.autolabel to 0. There are similar parameters for sections (section.autolabel), the Preface part (preface.autolabel), references (reference.autolabel). In the WebHelp transformation when you add a new parameter to the list of built-in ones in the Parameters dialog box you have to add it also in the Ant script file that executes the transformation, that is [Oxygen-install-dir]/frameworks/docbook/xsl/com.oxygenxml.webhelp/build_docbook.xml. You have to add it in the task called docbook-xhtml-transform which in Oxygen 14.1 is between lines 40 and 107. For example you can add chapter.autolabel at line 87:
Code: Select all
. . .
<param name="WEBHELP_PRODUCT_ID" expression="${webhelp.product.id}" if="webhelp.product.id"/>
<param name="chapter.autolabel" expression="${chapter.autolabel}" if="chapter.autolabel"/>
</xslt>
</target>
. . .
Regards,
Sorin
-
- Posts: 32
- Joined: Tue Dec 18, 2012 3:22 am
Re: DocBook WebHelp reference numbering
Thanks, Sorin.
From other posts I see that 14.2 will be released sometime this spring. I need to customize the DocBook 5 WebHelp within the next few weeks, so I'll look at those files and re-post any further questions.
Regards,
-jjb
From other posts I see that 14.2 will be released sometime this spring. I need to customize the DocBook 5 WebHelp within the next few weeks, so I'll look at those files and re-post any further questions.
Regards,
-jjb
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: DocBook WebHelp reference numbering
Post by sorin_ristache »
Hi,
Version 14.2 will be released in February. Please let us know if you have problems with your Docbook customization.
Regards,
Sorin
Version 14.2 will be released in February. Please let us know if you have problems with your Docbook customization.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service