Badawy, Mohamed wrote: > > But kindly let me illustrate the problem I face now > > I found a jar that could convert directly from html to docbook. But the > problem in it that when it converts it takes the html page name & make > it the title of a section in the xml. When the page has a link on > another page it puts in the url(pagename.xml) so after editing in the > docbook & regenerates those links are ruined. > > Example:- > > The first html:- (test.html) > <html> > <body> > The content of the body element is displayed in your browser. > </body> > </html> > > The second html:- (testLink.html) > <html> > <body> > <p> > <a href="test.html"> > This text</a> is a link to a page on > this Web site. > </p> > </body> > </html> > > The output after converting is:- > <?xml version='1.0' encoding='UTF-8'?> > <!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN' > 'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd'> > > <article> > <title>http://www.dbdoclet.org/herold</title> > <!--File: C:\test\xmlmind\test.html--> > <sect1> > <title>test.html</title> > <para> The content of the body element is displayed in your > browser. </para> > </sect1> > <!--File: C:\test\xmlmind\testLink.html--> > <sect1> > <title>testLink.html</title> > <para><ulink url="test.xml">This text</ulink> is a link to a > page on this Web site.</para> > <para><ulink url="http://www.microsoft.com/">This > text</ulink> is a link to a page on the World Wide Web.</para> > </sect1> > </article> > > My question now is if there is any customization I can make at exporting > from xmlmind to make the links consistent ?????
No. This issue is not related to XMLmind. The translation performed by herold (http://www.dbdoclet.org/) is simply incorrect: * <ulink url="test.xml"> should be something like <link linkend="id1"/> * First section should have something like "id1" as its ID attribute, that is: --- <sect1 id="id1"> <title>test.html</title> --- Therefore, the first thing to do is (rather than trying to find workarounds for the above deficiencies): * Find if herold has options which may be used to generate a more consistent DocBook. * OR Find a tool which does a better job than herold.

