Different Numbering for Equation-Figures and Figures
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 90
- Joined: Tue Mar 31, 2015 10:43 pm
Different Numbering for Equation-Figures and Figures
We have added styles to make <equation-figure> numbers appear as EQ. instead of Figure. So now they are different in the output.
By default, Oxygen is assigning sequential numbering to both equation-figures and figures.
For example, if there is an <equation-figure>, then a figure, and then another <equation-figure> in a topic, they are numbers as follows:
<equation-figure> = EQ. 1
<figure> = Figure 2
<equation-figure> = EQ. 3
Is there a way to make Oxygen assign different sets of numbers to <equation-figure> and <figure>? So it would appear as:
<equation-figure> = EQ. 1
<figure> = Figure 1
<equation-figure> = EQ. 2
By default, Oxygen is assigning sequential numbering to both equation-figures and figures.
For example, if there is an <equation-figure>, then a figure, and then another <equation-figure> in a topic, they are numbers as follows:
<equation-figure> = EQ. 1
<figure> = Figure 2
<equation-figure> = EQ. 3
Is there a way to make Oxygen assign different sets of numbers to <equation-figure> and <figure>? So it would appear as:
<equation-figure> = EQ. 1
<figure> = Figure 1
<equation-figure> = EQ. 2
-
- Posts: 9470
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Different Numbering for Equation-Figures and Figures
Hi,
You will probably need extra XSLT customizations for this.
There should be an XSLT template which matches figure (and equation-figure) titles like:
You can look at it and see that it uses an xsl:key to compute the current number of the figure. So you will probably need a separate xsl:key for counting the equation-figures.
The main problem is that equation-figure extends figure so you need to differentiate between these cases when computing the static text which appears before the title.
Regards,
Radu
You will probably need extra XSLT customizations for this.
There should be an XSLT template which matches figure (and equation-figure) titles like:
Code: Select all
<xsl:template match="*[contains(@class,' topic/fig ')]/*[contains(@class,' topic/title ')]">
The main problem is that equation-figure extends figure so you need to differentiate between these cases when computing the static text which appears before the title.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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