How to display a specific element label?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 9
- Joined: Mon Sep 12, 2022 8:46 pm
How to display a specific element label?
How do you display only the prereq element's label in the webhelp output. The parameter "args.gen.task.lbl" displays ALL the task labels. I only want the prereq task label to display.
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: How to display a specific element label?
Hello,
You can achieve this using the following CSS rule:
You can find more details about how to use CSS styling to customize the output in our User Guide.
Regards,
Alin
You can achieve this using the following CSS rule:
Code: Select all
.prereq::before {
content: "Before you begin";
display: block;
font-weight: bold;
font-size: 1.2em;
margin-top: 1em;
}
Regards,
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: How to display a specific element label?
Hello,
You can place all your localized strings in a single CSS file by specifying several CSS rules using the :lang() pseudo class.
For example:
Regards,
Alin
You can place all your localized strings in a single CSS file by specifying several CSS rules using the :lang() pseudo class.
For example:
Code: Select all
.prereq::before {
content: "Before you begin";
display: block;
font-weight: bold;
font-size: 1.2em;
margin-top: 1em;
}
.prereq:lang(de-DE)::before {
content: "Bevor Sie beginnen";
}
.prereq:lang(fr-FR)::before {
content: "Avant que tu commences";
}
Alin
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Software Developer
<oXygen/> XML Editor
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