Two part steps
Posted: Sun Nov 14, 2021 5:41 pm
Hello,
The DITA spec seems to only account for one use case for list items where they are expected to be individual steps meaning one action per list item. Example:
<ol>
<li><p>Do this.</p></li>
</ol>
This would publish as:
1. Do this.
However, we use DITA to structure the content for our airplane flight manuals and have two part steps such as:
<ol>
<li><p>Do</p<p>This</p></li>
<li><p>Do</p><p>That</p></li>
</ol>
We currently use FrameMaker and scripting to produce the desired output but I am trying to move towards HTML publishing to PDF or Web with CSS.
The way the scripts handle this is through use of outputclass attributes.
<ol>
<li><p outputclass="challenge">Do</p><p outputclass="response">This</p></li>
<li><p outoutclass="challenge">Do</p><p outputclass="response">That</p></li>
</ol>
Without any publishing rules, I get:
1.
Do
This
2.
Do
That
With our FrameMaker publishing scripts and template:
1. Do.......................This
2. Do.......................That
The script and template basically have rules that if the <p> has an outputclass="challenge" it puts the very next <p> on the same line.
If the next <p> has an outputclass="response" it adds the leader dots and right justifies the response.
Is there a way to do this with the converted HTML in CSS?
Thanks!
Pat
The DITA spec seems to only account for one use case for list items where they are expected to be individual steps meaning one action per list item. Example:
<ol>
<li><p>Do this.</p></li>
</ol>
This would publish as:
1. Do this.
However, we use DITA to structure the content for our airplane flight manuals and have two part steps such as:
<ol>
<li><p>Do</p<p>This</p></li>
<li><p>Do</p><p>That</p></li>
</ol>
We currently use FrameMaker and scripting to produce the desired output but I am trying to move towards HTML publishing to PDF or Web with CSS.
The way the scripts handle this is through use of outputclass attributes.
<ol>
<li><p outputclass="challenge">Do</p><p outputclass="response">This</p></li>
<li><p outoutclass="challenge">Do</p><p outputclass="response">That</p></li>
</ol>
Without any publishing rules, I get:
1.
Do
This
2.
Do
That
With our FrameMaker publishing scripts and template:
1. Do.......................This
2. Do.......................That
The script and template basically have rules that if the <p> has an outputclass="challenge" it puts the very next <p> on the same line.
If the next <p> has an outputclass="response" it adds the leader dots and right justifies the response.
Is there a way to do this with the converted HTML in CSS?
Thanks!
Pat