[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
>ready-made solution? Ready-made solutions usually are domain/standard specific (like TEI-XML for book editions, etc). But even those usually require certain code-level interventions to work. Your data + layout are quite simple and are a good candidate for XSL-FO <https://en.wikipedia.org/wiki/XSL_Formatting_Objects>: purpose-made to handle XML -> PDF outputs. Alternately, transform your source XML data into Open Office-compliant XML... On Thu, Sep 24, 2020 at 9:57 AM Manuel Souto Pico terminolator@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > 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?usp=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-file-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/3377836> (by > email <>)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|