Exclude some indexes from topic numbering
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 12
- Joined: Thu Jan 20, 2022 8:05 am
Exclude some indexes from topic numbering
Post by Yuriy_1977 »
I use:
*.ditamap
transformation scenario - "DITA Map PDF - based on XSL-FO",
For numbering topics, I use "generate numbers before the topic's title" plugin from raducoravu.
I use custom.xsl against css.
I need to exclude some Cyrillic indexes from my topic numbering (I use xml:lang="ru" in my topics ).
For example - I don't need letters "Ъ" and "З".
I am using the following count in the file plugins\org.dita.pdf2\xsl\fo\topic.xsl (some template's part):
where format="А" - Cyrillic.
In the plugins\org.dita.pdf2\cfg\common\index\ru.xml I exclude letters "Ъ" and "З" (their <index.group>) but it doen't work: letters are present in the numbering of my PDF file.
It looks like the file is not used when generating the PDF.
Need help, advice
.
Thanks in advance.
*.ditamap
transformation scenario - "DITA Map PDF - based on XSL-FO",
For numbering topics, I use "generate numbers before the topic's title" plugin from raducoravu.
I use custom.xsl against css.
I need to exclude some Cyrillic indexes from my topic numbering (I use xml:lang="ru" in my topics ).
For example - I don't need letters "Ъ" and "З".
I am using the following count in the file plugins\org.dita.pdf2\xsl\fo\topic.xsl (some template's part):
Code: Select all
<xsl:number
count="*[contains(@class, ' map/topicref ') and starts-with(topicmeta/navtitle/text(), 'Приложение')]"
format="А"/>
In the plugins\org.dita.pdf2\cfg\common\index\ru.xml I exclude letters "Ъ" and "З" (their <index.group>) but it doen't work: letters are present in the numbering of my PDF file.
It looks like the file is not used when generating the PDF.
Need help, advice

Thanks in advance.
-
- Posts: 667
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Exclude some indexes from topic numbering
Post by julien_lacour »
Hello,
The characters from org.dita.pdf2\cfg\common\index\ru.xml are only used for numbering indexterms, they are not used elsewhere.
A possible solution is to define a list of allowed characters and take the character matching the current topic position from the list:
Regards,
Julien
The characters from org.dita.pdf2\cfg\common\index\ru.xml are only used for numbering indexterms, they are not used elsewhere.
A possible solution is to define a list of allowed characters and take the character matching the current topic position from the list:
Code: Select all
<!-- Define a variable with allowed characters -->
<xsl:variable name="chars" select="'АБВГДЕЖИКЛМНОПРССУФХЦЧШЩЫЭЮЯАААБАВАГ'"/>
...
<xsl:value-of select="concat(substring($chars, position(), 1), ') ')"/>
Julien
-
- Posts: 12
- Joined: Thu Jan 20, 2022 8:05 am
Return to “DITA (Editing and Publishing DITA Content)”
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