Removal of generated text in particular element
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 49
- Joined: Mon Mar 28, 2016 3:54 pm
Removal of generated text in particular element
Post by Raga Mounika »
Hi Team,
When <steps> is used I am getting "Steps" generated text. Now according to my customization
I dont need "Steps" generated text when <steps> is inserted in <remedy> element.
The code I used here is
I already tried using the not selector. But it is not working
Please help me to remove the "Steps" text when <steps> is inserted in <remedy>.
Thank you!
BR
Mounika
When <steps> is used I am getting "Steps" generated text. Now according to my customization
I dont need "Steps" generated text when <steps> is inserted in <remedy> element.
The code I used here is
Code: Select all
*[class~="task/steps"]:before(10) {
content:"Steps ";
font-weight:bold;
}
*[class~='troubleshooting/remedy']{
-oxy-foldable: false;
content:"Remedy ";
}
remedy:not(title){
content:"Remedy ";
font-weight: bold;
}
remedy > *{
font-weight:normal;
}
*[class~='troubleshooting/remedy']! > [class~='topic/title'] {
content:"Remedy: ";
}
Code: Select all
*[class~="task/steps"]:not(remedy):before(10) {
content:"Steps ";
font-weight:bold;
}
Thank you!
BR
Mounika
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Removal of generated text in particular element
Hi Mounika,
You do not need the has() selector to solve this.
This CSS selector you tried *[class~="task/steps"]:not(remedy) means something like "the steps element which does not have the remedy element inside it" and you want to express "the steps element which is not inside the remedy".
So if the CSS selector which adds the "Steps" looks like this:
the extra added CSS selector which avoids adding the "Steps" when the <steps> is inside a <remedy> would look like this:
Regards,
Radu
You do not need the has() selector to solve this.
This CSS selector you tried *[class~="task/steps"]:not(remedy) means something like "the steps element which does not have the remedy element inside it" and you want to express "the steps element which is not inside the remedy".
So if the CSS selector which adds the "Steps" looks like this:
Code: Select all
*[class~="task/steps"]:before(10) {
content:"Steps ";
font-weight:bold;
}
Code: Select all
remedy > *[class~="task/steps"]:before(10) {
content:"";
}
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 49
- Joined: Mon Mar 28, 2016 3:54 pm
Re: Removal of generated text in particular element
Post by Raga Mounika »
Hi Radu,
Thanks for the reply . It works
BR,
Mounika
Thanks for the reply . It works

BR,
Mounika
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)
- ↳ 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