how to reformat dita from the word2dita result
Posted: Thu Apr 02, 2020 10:54 am
Hi Expert,
after using word2diat, we get the dita result in text in blow format, all contents are in a line since title.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept
PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="topic_3" xtrc="" xml:lang="en-US"><title xtrc="/Q{.../main}document[1]/Q{.../main}body[1]/Q{.../main}p[250]" ><p>sgfsgrfgregsr</p><table>xfafdfdsafdsafdsafds</table></conbody></concept>
how can we reformat this dita so that it can be shown in normal tag way in text, each line is for a main tag
for exmaple:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept
PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="topic_3" xtrc="" xml:lang="en-US">
<title xtrc="/Q{.../main}document[1]/Q{.../main}body[1]/Q{.../main}p[250]" >
<p>sgfsgrfgregsr</p>
<table> xfafdfdsafdsafdsafds</table>
</conbody>
</concept>
thanks~
after using word2diat, we get the dita result in text in blow format, all contents are in a line since title.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept
PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="topic_3" xtrc="" xml:lang="en-US"><title xtrc="/Q{.../main}document[1]/Q{.../main}body[1]/Q{.../main}p[250]" ><p>sgfsgrfgregsr</p><table>xfafdfdsafdsafdsafds</table></conbody></concept>
how can we reformat this dita so that it can be shown in normal tag way in text, each line is for a main tag
for exmaple:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE concept
PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
<concept id="topic_3" xtrc="" xml:lang="en-US">
<title xtrc="/Q{.../main}document[1]/Q{.../main}body[1]/Q{.../main}p[250]" >
<p>sgfsgrfgregsr</p>
<table> xfafdfdsafdsafdsafds</table>
</conbody>
</concept>
thanks~