Philippe Nobili wrote: > >> >> --> [Solution #1] Use literallayout/textobject/textdata and specify in >> the fileref attribute of textdata the URL of the file containing the >> text file. >> >> --> [Solution #2] Use XInclude with parse="text" (Requires XXE v4+). >> More complicated because we don't have a user interface which supports >> this feature:<skipped...> > Shame on me..., I should have started by looking in this direction. I > suppose it was so close from my eyes that I failed to see it... > > Both solutions work very well for HTML conversion (so I would tend to > prefer the first one), but unfortunately it does not work when > converting our document to PDF, and we get the following error messages: > (just the first two lines) > > javax.xml.Transform.TransformException: ...... Malformed URL > com.icl.saxon.style.StyleElement.styleError > > But the URL of the text file seems actually perfectly OK; did we miss > something for PDF conversion
Conversion to PDF works fine from within XXE. I've tested both solutions this morning using XXE v4.2.1 (to be released next week). It should also work fine with convertdoc (because convertdoc=XXE). Note that: * I did'nt specify @format=linespecific for the textdata. (I don't know what means linespecific). * I used XEP, and not FOP, though I'm sure FOP works fine too. > or could it simply be a bug ? In the case of Solution #2, when used from within XXE, Saxon cannot see any URL in xi:include/@href. Saxon processes a ``flat'' XML document created by XXE: there is no xi:include at all. Solution #1 is routinely used, so I don't think there is a bug here. May be it is a problem caused by your specific style sheet parameters. If you can reproduce this problem with a fresh install of XXE, using DocBook|Convert Document|Convert to PDF, then please tell us how to do it because, if this is the case, you have indeed found a bug.

