XHTML Customization
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 37
- Joined: Mon Jul 14, 2014 9:48 am
XHTML Customization
Hi,
Actually we are trying to customize the xhtml output so that the trademark list will not be shown as normal chapter
In
We are not able to find whether it is a normal topic or a topic included backmatter
Could you please tell me how to restrict the backmatter from the html output
Thanks in advance!
Regards,
Navaneetha
Actually we are trying to customize the xhtml output so that the trademark list will not be shown as normal chapter
In
Code: Select all
<xsl:template match="/dita | *[contains(@class, ' topic/topic ')]">
Could you please tell me how to restrict the backmatter from the html output
Thanks in advance!
Regards,
Navaneetha
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: XHTML Customization
Post by radu_pisoi »
Hi,
You can use the Conditional processing(filtering) DITA mechanism to filter(remove) some part of the HTML output.
DITA defines attributes that are specifically intended to enable filtering or flagging of individual elements. Those attributes are @audience, @platform, @product, @otherprops, @props, and @rev (flagging only). This enables the creation of topics and maps that can be dynamically configured at processing time to reflect a specific set of conditions, using the DITA-defined conditional processing profile (DITAVAL).
In your case, you can specify the 'otherprops' attribute on the backmatter element:
After that, you have to create a DITAVAL file with the following content. It defines that the elements with attribute otherprops="not_html" will be excluded from the output:
Also, you have to specify the DITAVAL file in Filters tab from the transformation scenario dialog. See:
https://www.oxygenxml.com/doc/versions/ ... lters.html
You can use the Conditional processing(filtering) DITA mechanism to filter(remove) some part of the HTML output.
DITA defines attributes that are specifically intended to enable filtering or flagging of individual elements. Those attributes are @audience, @platform, @product, @otherprops, @props, and @rev (flagging only). This enables the creation of topics and maps that can be dynamically configured at processing time to reflect a specific set of conditions, using the DITA-defined conditional processing profile (DITAVAL).
In your case, you can specify the 'otherprops' attribute on the backmatter element:
Code: Select all
<backmatter otherprops="not_html">
...
Code: Select all
<val>
<prop action="exclude" att="otherprops" val="not_html" />
</val>
https://www.oxygenxml.com/doc/versions/ ... lters.html
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
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