RE: [docbook-apps] xincludes and graphics
On 2017-11-23 Shikareva, Ekaterina wrote: > > I've encountered a known issue with including documents and images from > subdirectories into one main document for PDF output, and I can't wrap > my head around the solution. Can you please share some advice? > > Setup: > - Saxon 6.5.5 > - Xerces 2.11.0 > - docbook-xsl-ns 1.79.1 > > Folder structure: > doc/ > | > +-- main_file.xml > | > +-- doc1 > | | > | +-- figures/ > | +-- file1.xml > | > +-- doc2 > | | > | +-- figures/ > | +-- file2.xml > | > +-- doc3 > | | > | +-- figures/ > | +-- file3.xml > > Files in subdirectories are using images from the respective figures/ > folders with filerefs like fileref="figures/image001.png". > I suppose you are facing this old Xerces bug: https://issues.apache.org/jira/browse/XERCESJ-1102 You can either: 1. patch it for yourself or 2. generate outputs in two steps: a. use xmllint for resolving XIncludes into a single XML file (xmllint handles xml:base correctly) b. generate outputs using this single file More info about xmllint can be found at http://xmlsoft.org/xmllint.html It can be downloaded from http://xmlsoft.org/downloads.html For DocBook v5.0+ you can call it this way: xmllint --xinclude -o resolved.xml original.xml Regards, Jan - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
Re: [docbook-apps] xincludes and graphics
On 23.11.2017 16:56, Shikareva, Ekaterina wrote: > Processing is done like described here: > http://www.sagehill.net/docbookxsl/Xinclude.html in "Using Xerces to resolve > XIncludes". The error is that image paths are always wrong whatever settings > I'm trying to use. Basically, doc1, doc2, doc3 are always missing in the > final path. > > Could you please give some hints, what I'm missing here? Do I need to define > xml:base manually somewhere? Can you make available sample files demonstrating your problem? -- -- Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz -- Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing -- Bringing you XML Prague conferencehttp://xmlprague.cz -- signature.asc Description: OpenPGP digital signature
[docbook-apps] [ANN] Reminder: XML Prague 2018 - Call for Proposals
Hello, there are still seven days to submit your proposal for XML Prague. The XML Prague conference will include two full days of single track sessions, as well as a multitrack unconference day. The conference is held on the Thursday, Friday and Saturday (February 8-10, 2018), located at the University of Economics, nam. W. Churchilla, Prague, Czech Republic. XML Prague is a conference on XML for developers, markup geeks, information managers, and students. XML Prague focuses on markup and semantic on the Web, publishing and digital books, XML technologies for Big Data and recent advances in XML technologies. The conference provides an overview of successful technologies, with a focus on real world application versus theoretical exposition. This years topics include the following: * Markup and the Extensible Web * Semantic visions and the reality * Publishing for the 21th century * XML technologies and Big Data * State of the XML Union * XML success stories Conference website: http://www.xmlprague.cz Call for proposals: http://www.xmlprague.cz/cfp/ Registration: http://www.xmlprague.cz/conference-registration/ Please take note of the following important ates: November 30th – End of CFP January 8th – Notification of acceptance/rejection January 31st – Final paper (for those who will provide it) February 8-10 – XML Prague 2015 conference This year we would like to encourage new speakers -- full paper submission is no longer needed and there will be shorter slots available for those who would like to introduce/demo something "smaller". If you have any questions, interested in sponsorship or just want to make a suggestion please send email to: i...@xmlprague.cz Jirka Kosek on behalf of XML Prague -- -- Jirka Kosek e-mail: ji...@kosek.cz http://xmlguru.cz -- Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing -- Bringing you XML Prague conferencehttp://xmlprague.cz -- - To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org
[docbook-apps] xincludes and graphics
Hello, I've encountered a known issue with including documents and images from subdirectories into one main document for PDF output, and I can't wrap my head around the solution. Can you please share some advice? Setup: - Saxon 6.5.5 - Xerces 2.11.0 - docbook-xsl-ns 1.79.1 Folder structure: doc/ | +-- main_file.xml | +-- doc1 | | | +-- figures/ | +-- file1.xml | +-- doc2 | | | +-- figures/ | +-- file2.xml | +-- doc3 | | | +-- figures/ | +-- file3.xml main_file.xml includes file1.xml, file2.xml, file3.xml. All are DocBook 5. Files in subdirectories are using images from the respective figures/ folders with filerefs like fileref="figures/image001.png". The includes in main_file.xml are like . xml_ids are DTD-determined IDs. I have read http://www.sagehill.net/docbookxsl/ModularDoc.html#XIncludeGraphics (not only this section, of course :)), but I can't quite understand what values I shall use for img.src.path and keep.relative.image.uris (this shall probably be just 0). When converting file1.xml, file2.xml, file3.xml, I set img.src.path to the input file's parent directory and everything works well. But not when I try to convert main_file.xml. Processing is done like described here: http://www.sagehill.net/docbookxsl/Xinclude.html in "Using Xerces to resolve XIncludes". The error is that image paths are always wrong whatever settings I'm trying to use. Basically, doc1, doc2, doc3 are always missing in the final path. Could you please give some hints, what I'm missing here? Do I need to define xml:base manually somewhere? Thank you! -- Best regards, Ekaterina Shikareva Senior Technical Writer This e-mail and any attachment(s) are intended only for the recipient(s) named above and others who have been specifically authorized to receive them. They may contain confidential information. If you are not the intended recipient, please do not read this email or its attachment(s). Furthermore, you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and then delete this e-mail and any attachment(s) or copies thereof from your system. Thank you.