Having trouble with conditional processing

Skip to first unread message

Michael Webster

Jun 4, 2021, 7:27:26 PMJun 4
to DITA-OT Users

I am getting what appears to be incorrect results when using conditional processing within DITA-OT:

  • If I use only HTML to mark a div section and assign it a conditional processing attribute it filters correctly
  • If I use a mixture of HTML and markdown to mark a div section and assign it a conditional processing attribute, it is always included whether I want it included or not.  According to the CommonMark spec which DITA-OT claims to support I should be able to mix HTML and markdown in this way.  In fact, I don't know of any way to use conditional processing in DITA and markdown without using a few HTML tags.


Please see the markdown source file within the attached zip file for more details.



Jonathan Hanna

Jun 6, 2021, 2:34:54 PMJun 6
to Michael Webster, DITA-OT Users
In your Markdown file, you're using the platform​ attribute for conditional processing, which is not supported by MDITA. According to the Lightweight DITA specification, you need to use the data-props​ attribute:

Please note that I've never tried this out for myself before, so I'm not sure if this is currently supported in DITA-OT.

From: dita-o...@googlegroups.com <dita-o...@googlegroups.com> on behalf of Michael Webster <mike.w...@wdc.com>
Sent: Friday, June 4, 2021 4:27 PM
To: DITA-OT Users <dita-o...@googlegroups.com>
Subject: [dita-ot] Having trouble with conditional processing
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/dita-ot-users/2373d051-ce74-4700-8a40-4027ffebd6ffn%40googlegroups.com.
Reply all
Reply to author
0 new messages