RE: [xsl] dita maps conversion methodology

Subject: RE: [xsl] dita maps conversion methodology
From: "JSRawat" <jrawat@xxxxxxxxxxxxxx>
Date: Wed, 27 Jul 2011 15:20:29 +0530
Hi Kimber,
Thanks a lot for the clue you provided. I have downloaded 'dita4publishers'.
Would you please let me know the command line by which I can convert the
below structure.


-----Original Message-----
From: Eliot Kimber [mailto:ekimber@xxxxxxxxxxxx] 
Sent: Tuesday, July 26, 2011 7:52 PM
To: xsl-list
Subject: Re: [xsl] dita maps conversion methodology 

Using XSLT 2 it's relatively easy. Using XSLT 1 it's a bit harder.

For an XSLT 2 solution, see the general map-driven processing in the DITA
for Publishers source tree:

It provides general XSLT functions and templates for operating on DITA maps
using XSLT.

There is a sample application in net.sf.dita4publishers.graphviz/ that shows
how to operate on a map to do something relatively simple.

If you were only concerned about this document example the code is trivial.
A more general DITA solution requires attention to more details, which the
code referenced above provides for.

Note that this code is intended to be used in the context of the DITA Open
Toolkit, which handles content reference resolution, filtering, and
map-to-map processing for you. But the code can be applied directly to maps
if those aspects of DITA are not a concern.


On 7/26/11 1:08 AM, "JSRawat" <jrawat@xxxxxxxxxxxxxx> wrote:

> Hi Team,
> I want to convert following dita map into html by following two ways:
> Method 1: I want to run xslt over ch5.dita which should convert sec1.xml,
> sec2.xml and sec3.xml into output directory with their respective names
> Sec1.htm, sec2.htm and sec3.htm.
> Method 2: The output of these sections should create ch5.html within
> directory.
> Is there a method to convert below structure in a single go?
> Input: ch5.dita
> <map id="learningsample" title="learning content">
>  <title>Math Lab: Addition</title>
>  <learningGroup collection-type="choice">
>   <learningObject navtitle="Addition" collection-type="sequence">
>    <learningContentComponentRef href="ch5/sec1.xml"/>
>    <learningContentComponentRef href="ch5/sec2.xml"/>
>    <learningContentComponentRef href="ch5/sec3.xml"/>
>  </learningGroup>
> </map>

Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 512.554.9368

Current Thread