So I want to control the formatting of <response> based upon the following: - attribute type on <manual> - if <response> is precedded with a <challenge>
I'm able to control the formatting based upon the attribute value (by itself) and I'm able to modify a counter (thanks Paul Nagai) that resets on <step> to 0 and increments when <challenge> is found. If challenge is not 0 then I have my flag to control formatting that way.
Is the best solution to drop a pseudo element in after the <challenge> and then place the check of the attribute value on this psudo element? I want the special formatting to be removed if <challege> doesn't exist.
I have 3 results I'm trying to achieve
challenge text -- response text
challenge text ..... response text (right justified)
So in the first case I have a long dash but the text will be produced as a paragraph. The second case I will separate the challenge from the response and right justify (also block it to only a portion of the column width). The last case the text will just format like a para.