XHTML to DocBook conversion
Posted: Thu Jul 15, 2021 11:59 am
Hi all,
I'm currently working in a little company which owns an inline shop.
I have written a lot of detailed product sheets in XHTML format for years and each time we have changed our website engine (home made to Prestashop or Magento), for various business reasons, I had to modifiy those product sheets to make them compatible with the new website structure.
So I have decided to transform all our product sheets in DocBook 5 format. All our new product sheets are now written directly in DocBook 5 format using Oxygen tools.
I have written an XSL stylesheet to transform those product sheets in our actual XHTML output format (New Oxatis SaaS engine) and use a transformation scenario to automatically generate my XHTML fragments ; all the outputs are XHTML fragments and not whole pages.
I'm searching now to make the opposite : XHTML fragments to DocBook 5. This scenario will allow me to retrieve existing product sheets written for years in XTML format.
Is there any tool to easily transform fragments of XHTML code to DocBook format automatically ?
It is important to do this with a script or another automatic method (not copy/paste) because we have hundreds maybe thousands product sheets already written.
Thanks for your help
Vincent
I'm currently working in a little company which owns an inline shop.
I have written a lot of detailed product sheets in XHTML format for years and each time we have changed our website engine (home made to Prestashop or Magento), for various business reasons, I had to modifiy those product sheets to make them compatible with the new website structure.
So I have decided to transform all our product sheets in DocBook 5 format. All our new product sheets are now written directly in DocBook 5 format using Oxygen tools.
I have written an XSL stylesheet to transform those product sheets in our actual XHTML output format (New Oxatis SaaS engine) and use a transformation scenario to automatically generate my XHTML fragments ; all the outputs are XHTML fragments and not whole pages.
I'm searching now to make the opposite : XHTML fragments to DocBook 5. This scenario will allow me to retrieve existing product sheets written for years in XTML format.
Is there any tool to easily transform fragments of XHTML code to DocBook format automatically ?
It is important to do this with a script or another automatic method (not copy/paste) because we have hundreds maybe thousands product sheets already written.
Thanks for your help
Vincent