Reputation: 5
I am transforming DITA xml to html using DITA-OT 3.4.1. What I am trying to do is while transforming create folders based on chapter names and move all converted html files and images under individual chapter folder. Currently I am getting all html and images in the same folders. How can I achieve this using xslt or ANT
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd">
<bookmap>
<booktitle>
<mainbooktitle>Title of the docuemnt</mainbooktitle>
</booktitle>
<chapter href="chapter1.xml">
<topicmeta>
<navtitle>chapter 1</navtitle>
</topicmeta>
<topicref href="topic1.xml">
<topicmeta>
<navtitle>topic 1</navtitle>
</topicmeta>
</topicref>
<topicref href="topic2.xml">
<topicmeta>
<navtitle>topic2</navtitle>
</topicmeta>
</topicref>
</chapter>
<chapter href="chapter 2.xml">
<topicmeta>
<navtitle>chapter 2</navtitle>
</topicmeta>
<topicref href="topic1.xml">
<topicmeta>
<navtitle>topic1</navtitle>
</topicmeta>
</topicref>
</chapter>
</bookmap>
my sample bookmap
Upvotes: 0
Views: 152