Add tag in title based on condition
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 9
- Joined: Wed Nov 02, 2016 1:48 am
Add tag in title based on condition
Here's my problem:
I build two webhelp doc sets from the same source, one called 'staging' and one called 'production'. Production is my live help and staging goes on an internal server for review. Production is a subset of the staging content.
What I'd like to do is add a tag in the topic title that says "In Development" for all draft topics. I've been able to do this by adding an output class and CSS in the topic file, but I'd prefer not to tag the topic directly with an output class or condtion, but the map entry using a condition.
More simply: I set a condition on a topic in the map and when I publish, the topic title has a tag prepended to it that says "In Developement"
Is this possible?
TIA
I build two webhelp doc sets from the same source, one called 'staging' and one called 'production'. Production is my live help and staging goes on an internal server for review. Production is a subset of the staging content.
What I'd like to do is add a tag in the topic title that says "In Development" for all draft topics. I've been able to do this by adding an output class and CSS in the topic file, but I'd prefer not to tag the topic directly with an output class or condtion, but the map entry using a condition.
More simply: I set a condition on a topic in the map and when I publish, the topic title has a tag prepended to it that says "In Developement"
Is this possible?
TIA
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Add tag in title based on condition
Post by radu_pisoi »
Hi,
I'm afraid there is no simple solution to modify the topic title at publishing time depending on a condition set in DITA map.
A solution would be develop a DITA-OT XSLT extension plugin that overrides the generation of the topic's title element. The template that generates the topic title is located in:
Open the file and search for template:
If you like this solution, please contact us on support@oxygenxml.com email address to give you more details.
I'm afraid there is no simple solution to modify the topic title at publishing time depending on a condition set in DITA map.
A solution would be develop a DITA-OT XSLT extension plugin that overrides the generation of the topic's title element. The template that generates the topic title is located in:
Code: Select all
DITA-OT-DIR/plugins/org.dita.html5/xsl/topic.xsl
Code: Select all
<xsl:template match="*[contains(@class, ' topic/topic ')]/*[contains(@class, ' topic/title ')]">
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
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