I am trying to publish my DITA bookmap into single HTML files based on the outputclass set. So I want to only output when the outputclass is set, otherwise do not output any HTML
As of now I have this set in my topic.xsl file.
<xsl:template match="/dita | *[contains(@class, ' topic/topic ')]"> <xsl:choose> <xsl:when test="(not(parent::*) and ./@outputclass = 'article')"> <xsl:apply-templates select="." mode="root_element"/> </xsl:when> <xsl:otherwise/> </xsl:choose> </xsl:template>This still outputs HTML file of other DITA file that has no outputclass set.
I am trying to output only DITA files that has outputclass = 'article' set. I would also like to be able to set the outputclass = 'article' on the Bookmap level (map/topicref).
DITA profiling is not an option due to other reason in my environment. Therefore, I need to use the outputclass.
How can I just output the HTML file when only the outputclass is set?