Detecting WebHelp transformation in DITA-OT plugin
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 96
- Joined: Wed Feb 09, 2005 8:57 am
Detecting WebHelp transformation in DITA-OT plugin
Hi,
I have a DITA-OT plugin that is installed via this extension point:
In that "my-custom.xsl", I want to know if it is currently running for WebHelp transformation or not. What do you think is the most reliable way?
If possible, I like to detect its type (Classic or Responsive).
I have a DITA-OT plugin that is installed via this extension point:
Code: Select all
<feature
extension="dita.xsl.xhtml"
file="my-custom.xsl" />
If possible, I like to detect its type (Classic or Responsive).
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: Detecting WebHelp transformation in DITA-OT plugin
Post by radu_pisoi »
Hi,
Yes, it is possible by creating the 'TRANSTYPE' XSLT parameter in your custom stylesheet. It's value will be assigned either to 'webhelp-responsive' for Webhelp Responsive transformation or to 'webhelp' for Webhelp Classic transformation.
Yes, it is possible by creating the 'TRANSTYPE' XSLT parameter in your custom stylesheet. It's value will be assigned either to 'webhelp-responsive' for Webhelp Responsive transformation or to 'webhelp' for Webhelp Classic transformation.
Code: Select all
<xsl:param name="TRANSTYPE"></xsl:param>
<xsl:template ...>
<xsl:choose>
<xsl:when test="$TRANSTYPE = 'webhelp-responsive'">
Webhelp Responsive transformation
</xsl:when>
<xsl:when test="$TRANSTYPE = 'webhelp'">
Webhelp Classic transformation
</xsl:when>
<xsl:otherwise>
Other type of XHTML transformation
</xsl:otherwise>
</xsl:choose>
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)
- ↳ 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