Ordered list letters instead of numbers for specific instances
Here should go questions about transforming XML with XSLT and FOP.
Ordered list letters instead of numbers for specific instances
Hi all,
This is my xml:
When I produce a PDF it comes as this:
Now, I need letters instead of numbers for just this particular instance, so I added an outputclass="lower-alpha" to my <ol> tag:
And then, in my plugin, I added this (see box):
For some reason, this is not working and I am still getting numbers. Any clues?
Thanks all,
This is my xml:
Code: Select all
<topic><title/><body>
<ol>
<li>Item 1</li>
<li>Item 2</li>
</ol>
</body></topic>
Now, I need letters instead of numbers for just this particular instance, so I added an outputclass="lower-alpha" to my <ol> tag:
Code: Select all
<topic><title/><body>
<ol outputclass="lower-alpha">
<li>Item 1</li>
<li>Item 2</li>
</ol>
</body></topic>
For some reason, this is not working and I am still getting numbers. Any clues?
Thanks all,
Re: Ordered list letters instead of numbers for specific instances
Hi,
The XSLT template seems to match the list item element but the @outputclass is set on the OL element. So maybe you should retrieve its value like parent::node()/@outputclass.
Regards,
Radu
The XSLT template seems to match the list item element but the @outputclass is set on the OL element. So maybe you should retrieve its value like parent::node()/@outputclass.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: Ordered list letters instead of numbers for specific instances
Thanks a lot!
This is exactly how I implemented it and it worked:
This is exactly how I implemented it and it worked:
Code: Select all
<xsl:when test="parent::node()/@outputclass='lower-alpha'">
<xsl:number format="a"/>
</xsl:when>
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