Thnx a lot Hussein

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 ?????




Thnx aloot,,,
Mohamed Badawy




-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: Tuesday, May 29, 2007 5:47 PM
To: Badawy, Mohamed
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] converting problem

Badawy, Mohamed wrote:
> 
> I tried to use xmlMind & I really appreciates it alot. But
unfortunately
> I have a problem in a task assigned to me. We want to make our
> documentation in docbook format (and I will recommend xmlMind for this
> issue) but the problem now is that we already have a big amount of our
> documentation in html format. So I want to convert from html to
docbook
> in order to complete the documentation. Also those html files has
links
> on each other.
> 
>  

I would do that:
[1] Convert HTML to XHTML using tidy (http://tidy.sourceforge.net/).
[2] Convert XHTML to DocBook using an XSLT style sheet.

But may be other users of this mailing list have a simpler or more
efficient solution or know where to find a comprehensive XHTML->DocBook
XSLT style sheet.

THIS EMAIL AND ANY ATTACHED FILES ARE CONFIDENTIAL. 
If you are not the intended recipient you are notified that any disclosure, 
reproduction,copying, distribution, or action taken in reliance on the contents 
of this information is strictly prohibited. If you have received this 
transmission in error please notify the sender immediately and then delete this 
email. Email transmission cannot be guaranteed to be secure or error free as 
information could be intercepted, corrupted, lost, destroyed,arrive late or 
incomplete, or contain viruses. The company/sender accepts no liability for any 
changes made to this email during transmission or any damage caused by any 
virus transmitted by this email. Any views or opinions expressed in this email 
are solely those of the author and do not necessarily represent those of the 
company. The company/sender accepts no liability for the content of this email, 
or for the consequences of any actions taken on the basis of the information 
provided, unless that information is subsequently confirmed in writing.

------------------------------------------------------------------------------------------
AMS Advanced Medical Services GmbH, Mannheim
Registered office: Am Exerzierplatz 2, 68167 Mannheim
Register court: Amtsgericht Mannheim, HRB 7462
Managing Director: Dr. Christian Carls
------------------------------------------------------------------------------------------


Reply via email to