[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Converting XML into ODT document to print as paper

Subject: Re: Converting XML into ODT document to print as paper
From: "Eliot Kimber ekimber@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 28 Sep 2020 21:34:16 -0000
Re:  Converting XML into ODT document to print as paper
Note that the original driving use case for The Wordinator was specifically to
generate DOCX files for use by people who want to use those DOCX files for
further editing (in particular, DOCX versions of codified municipal code used
as the input to code revision processes).

But the requirement was to have the DOCX look as much like the printed version
as reasonable, so Wordinator lets you use most Word features for layout,
including tables, embedded media, variable page layouts, running heads and
feet, etc.

As such it functions as an inexpensive way to get decent quality printable
versions of documents.

Of course, I would never present it as an alternative to a direct-to-PDF
lights-out composition process as other have described. In that context, I
agree with the general advice to use a CSS Paged Media solution (which the
client who drove The Wordinator also used for the same content).

Cheers,

E.

--
Eliot Kimber
http://contrext.com


o;?On 9/28/20, 3:53 PM, "Eliot Kimber ekimber@xxxxxxxxxxxx"
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

     My Wordinator project (http://wordinator.org/) provides a general XML to
DOCX framework that uses the Apache POI library to generate full-featured Word
docs from a simple XML format that you can generate from whatever. I provide a
basic HTML transform as a starting point.
    Cheers,

    Eliot Kimber


    On Sep 24, 2020, at 2:57 AM, Manuel Souto Pico terminolator@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:




    o;?Dear all,


    I would need to convert XML to something that has a fixed page layout
ready to print, like ODT/OOXML or PDF.


    I know OOXML is complex, but since the final document needs to be printed
and keep the same layout, probably HTML output is not good for this (I
guess!).


    What I need at the moment is just a quick and dirty proof of concept to
show that this conversion is feasible and not too difficult, to show it to
decision makers (I'm not a XSLT developer myself).


    This is my input (sample):

    https://pastebin.com/sU77P7Bv

    And this would be my output:

    https://drive.google.com/file/d/1IhjSfR_RHKZ_2HbMiepKP96aojyHofBc/view?us
p=sharing

    My first thought was to unzip the ODT model I have, look at the
content.xml inside and then try to transform my XML into that same structure
(as suggested here:
https://stackoverflow.com/questions/38298174/directly-convert-a-single-xml-fi
le-to-docx).


    However, probably that's the hard way...


    I'm doing some research, any tips or pointers or advice or recommendation
or examples here would be highly appreciated. Is there any best practice to do
this? or a ready-made solution?

    Thanks in advance.


    Cheers, Manuel


    XSL-List info and archive
<http://www.mulberrytech.com/xsl/xsl-list>EasyUnsubscribe
<http://lists.mulberrytech.com/unsub/xsl-list/1278982>
    (by email <>)







    XSL-List info and archive
<http://www.mulberrytech.com/xsl/xsl-list>EasyUnsubscribe
<http://lists.mulberrytech.com/unsub/xsl-list/1278982>
    (by email <>)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.