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 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>
• 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>
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>
- What am I doing wrong?
- Does Flare not support DITA 1.2?