User515
User515

Reputation: 186

Need to combine 4 xml file into a single xhtml using XSLT

I'm having 4 xml file, i need to combine that as single XHTML file format using XSLT transformation in Oxygen.

My first.xml file:

<task>
<title>intro1</title>
<tbody>
<p>intro1</p>
</tbody>
</task>

My Second.xml file:

<task>
<title>intro2</title>
<tbody>
<p>intro2</p>
</tbody>
</task>

My third.xml file:

<task>
<title>intro3</title>
<tbody>
<p>intro3</p>
</tbody>
</task>

My fourth.xml file:

<task>
<title>intro4</title>
<tbody>
<p>intro4</p>
</tbody>
</task>

I used ditamap:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map PUBLIC "com.rsicms.rsuite_te:doctypes:dita:map" "map.dtd">
<map>
 <title>This is a test DITA Map</title>
 <topicref href="first.xml"/>
 <topicref href="second.xml"/>
 <topicref href="third.xml"/>
 <topicref href="fourth.xml"/>
</map>

XSL used as:

I am using the plugin 'org.dita.xhtml' in Dita OT 1.8.5. while converting using this plugin i am getting output as four different html files, but i need as a single html file.

Please help me on this, Thanks in Advance

Upvotes: 0

Views: 271

Answers (1)

Radu Coravu
Radu Coravu

Reputation: 1924

You can set the attribute

chunk="to-content"

on the DITA Map root element. It should create a single HTML document containing all topics merged.

Upvotes: 4

Related Questions