After importing DITA, Flare loses details in its DITA output

This forum is for Single-Sourcing your Flare content to multiple outputs.
Post Reply
JeromeR
Propeller Head
Posts: 64
Joined: Fri Mar 20, 2009 2:15 pm
Contact:

After importing DITA, Flare loses details in its DITA output

Post by JeromeR »

Flare seems to import a DITA task. But on export, the structure differs from the original. Flare adds elements that aren't in the original. Flare also converts the more task-specific <steps> element to the more generic <ol> list. Does anyone know why?

Here's the DITA before Flare imports it:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="t-instructional_topic_efficient_and_auditable">
    <title>Make a chip-and-PIN sale by using a card machine</title>
    <taskbody>
        <steps>
			<step>
				<cmd>Key in the sale amount.</cmd>
				<info>Key the sale amount into the card machine, and press <uicontrol>ENTER</uicontrol>.</info>
			</step>
		</steps>
    </taskbody>
</task>
• Note there's no <context> element before importing.
• Note the instructions are in a <steps> element before importing.

Here's the DITA after Flare exports it:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="t-instructional_topic_efficient_and_auditable">
    <title>Make a chip-and-PIN sale by using a card machine</title>
    <taskbody>
        <context>
            <p>Make a chip-and-PIN sale by using a card machine</p>
            <ol>
                <li>
                    <cmd>Key in the sale amount.</cmd>
                    <info>Key the sale amount into the card machine, and press <uicontrol>ENTER</uicontrol>.</info>
                </li>
            </ol>
        </context>
    </taskbody>
</task>
Unexpected differences in the above
• Flare exported an unexpected <context> tag, which contains all the <bodytext>.
• Flare exported the <steps> as an <ol> tag.

Attempts to fix one of these differences
In the DITA source, I don't know what to do to make the <steps> element work. To get rid of the improper <context> tax, I inserted a <context> tag—properly—like this…

Code: Select all

<?xml version="1.0" encoding="utf-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="t-instructional_topic_efficient_and_auditable">
    <title>Make a chip-and-PIN sale by using a card machine</title>
    <taskbody>
        <context>With Chip and PIN, there's no need to handle your customer's payment card. Your customer simply puts the card in, keys in the PIN, removes the card and it's done.</context>
		<steps>
			<step>
				<cmd>Key in the sale amount.</cmd>
				<info>Key the sale amount into the card machine, and press <uicontrol>ENTER</uicontrol>.</info>
			</step>
		</steps>
    </taskbody>
</task>
…Flare still messes it up on export:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task id="t-instructional_topic_efficient_and_auditable">
    <title>Make a chip-and-PIN sale by using a card machine</title>
    <taskbody>
        <context>
            <p>Make a chip-and-PIN sale by using a card machine</p>
            <context>With Chip and PIN, there's no need to handle your customer's payment card. Your customer simply puts the card in, keys in the PIN, removes the card and it's done.</context>
            <ol>
                <li>
                    <cmd>Key in the sale amount.</cmd>
                    <info>Key the sale amount into the card machine, and press <uicontrol>ENTER</uicontrol>.</info>
                </li>
                <li>
                    <cmd>Give the card machine to your customer.</cmd>
                    <info>Ask your customer to insert their payment card into the card machine.</info>
                    <info>The chip end goes in first, facing upwards.</info>
                </li>
            </ol>
        </context>
    </taskbody>
</task>
My question:
  • What am I doing wrong?
  • Does Flare not support DITA 1.2?
Post Reply