On 03/16/2015 06:45 PM, Julie McHam wrote:
By the way, when will the "Optional:" flag in procedure steps be available? According to some previous digest issues (see below), it should be available now, but it doesn't work for me. I have specified my steps as <cmd importance="optional"> and set mark-important-steps to yes in my transform parameters, but "Optional:" does not appear on marked steps in the output. I have had to use a conditionally processed <ph> elements for PDF output to include this phrase. A lot of work for a workaround. Really looking forward to the Optional flag working.
It's already available.This feature has been implemented in XMLmind DITA Converter v2.5 (October 29, 2013). See http://www.xmlmind.com/ditac/changes.html#v2.5.0 :
---XSLT stylesheet parameter mark-important-steps=yes (default value is "no") allows to generate a "Required" (respectively "Optional") label for step and substep elements having an importance attribute set to "required" (resp. "optional").
---XMLmind DITA Converter v2.5 has been included in XMLmind XSL Utility v4.8.3 (November 13, 2013). See http://www.xmlmind.com/foconverter/changes.html#v4.8.3
Therefore, this feature works fine if and only if 1) you use any recent XMLmind DITA Converter/XMLmind XSL Utility/XMLmind XML Editor 2) you have specified mark-important-steps=yes.
See attached task1.dita and task1.pdf (generated using latest ditac).You seem to have directly modified the stock XSLT stylesheets (e.g. your incomprehensible "xsl/common/messages/en.xml" issue) or at least, to have heavily customized the XSLT stylesheets. Which is OK, but...
Before sending us any further support request, please install a second, unmodified, copy of our most recently released software (even Evaluation Edition) and try to reproduce the problem with this unmodified, up to date, copy, and this, of course, without any of your customizations.
If you do not make this effort, I'm afraid you'll be loosing your time (and ours too, because there is simply no way for us to help you, no matter how hard we try).
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "http://docs.oasis-open.org/dita/dtd/task.dtd"> <task id="task1"> <title>A sample task</title> <shortdesc id="desc">You open the box and insert the drive.</shortdesc> <taskbody> <steps> <step id="step1" importance="required"> <cmd>Unscrew the cover.</cmd> <stepresult>The drive bay is exposed.</stepresult> </step> <step id="step2"> <cmd>Insert the drive into the drive bay.</cmd> <info>If you feel resistance, try another angle.</info> </step> <step id="step2" importance="optional"> <cmd>Keep the cover open while testing the drive.</cmd> </step> </steps> </taskbody> </task>
task1.pdf
Description: Adobe PDF document
-- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

