Conditional DRAFT watermark
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 38
- Joined: Mon Dec 05, 2022 3:24 pm
Conditional DRAFT watermark
- <oXygen/> XML Editor 24.1, build 2022030807
- "DITA Map WebHelp Responsive" scenario
I try to add a DRAFT watermark on several HTML pages of our internal documentation SharePoint but only for the pages who are really in draft...
For example one topic in the middle of ditamap that contains let's say 10 topics.
I succeed adding the watermark on every page with the corresponding CSS file:
Code: Select all
body {
background-image: url(draft.png);
}
I have searched a bit on the forum but I did not find any solution

Perhaps someone can help me?
BR,
Mathieu
-
- Site Admin
- Posts: 275
- Joined: Thu Dec 24, 2009 11:21 am
Re: Conditional DRAFT watermark
Hello,
You can set the @outputclass attribute on the root element of each topic you want to apply the watermark on. For example:
The value of the @outputclass attribute will be transferred on the <body> element of the associated output HTML file.
This way you can use specific CSS rules to apply the watermark only on those topics.
Regards,
Alin
You can set the @outputclass attribute on the root element of each topic you want to apply the watermark on. For example:
Code: Select all
<topic id="my-topic" outputclass="watermark">
...
</topic>
This way you can use specific CSS rules to apply the watermark only on those topics.
Regards,
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