Re: [xsl] Re: Peter Desjardins convert HTML to DITA

Subject: Re: [xsl] Re: Peter Desjardins convert HTML to DITA
From: Peter Desjardins <>
Date: Mon, 24 May 2010 12:07:32 -0400
Hi. Thanks for pointing this out.

I tried using h2d.xsl a few weeks ago and found that it didn't work
very well for my content. I wondered whether it would be more work to
clean up the original HTML and adjust the IBM stylesheet or to write
my own stylesheet.

I want to have fine control over the output XML and the option of
converting to DocBook. I also want to expand my grasp of XSLT. These
have all let me to try to create my own.


On Sat, May 22, 2010 at 12:10 PM, Hoskins & Gretton
<hoskgret@xxxxxxxxxxxxxxxx> wrote:
> HI, I have adapted the files from IBM for this type of work. See
> There were a few problems that I had to fix to get it to run. You may need
> to use Tidy on the files first, and set the output to xml, rather than
> xhtml, I think. It's been a while since I did it.
> The h2d.xsl for conversion to DITA is a v1.1 styelsheet, with Saxon
> extensions
> <xsl:stylesheet version="1.1"
>                xmlns:xsl="";
>                xmlns:saxon="";
>                extension-element-prefixes="saxon">
> You would have to analyze how to rewrite more efficiently in v2.0. If you
> did it successfully, you might be doing the DITA world a kindness by
> your conversion.
> Regards, Dorothy

Current Thread