[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Lot of doubts about formatting with xsltproc
I believe (a) and (b) were answered by Paul. For (c), you need to customize the gentext templates, and that process is described here: http://www.sagehill.net/docbookxsl/CustomGentext.html For (d) I don't quite understand what you are trying to accomplish. I'm not sure what you mean by "return lines". In the example XML you posted on your website, the <blockquote> element won't validate. The <attribution> element comes first (the stylesheet will put it last), and your large <quote> must be enclosed in a <para>. The stylesheets generally don't do well with documents that are not valid. For (e), the stylesheets themselves do not generate a plain text file. I usually generate HTML, and then use a character-based web browser in 'dump' mode to get formatted plain text. You might look at 'w3m', 'lynx', or 'links' for that purpose. Sometimes you can open it in a browser and do a Save As and select text. For (f), the public identifiers that point to the OASIS site are messed up because OASIS changed how they manage their website so that stable URLs are difficult or impossible. The DocBook Technical Committee is trying to fix this problem. For a tutorial, I think my book can help you get started with DocBook XSL: http://www.sagehill.net/docbookxsl/index.html Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "maurizio codogno" <puntomaupunto@tin.it> To: <docbook-apps@lists.oasis-open.org> Sent: Wednesday, May 12, 2004 7:27 AM Subject: [docbook-apps] Lot of doubts about formatting with xsltproc Dear all, I am trying to put up a DocBook system (task not so easy on Cygwin...), and the first document I am working on is a set of quotations. I managed to convert a sample file, with command xsltproc file:///lib/docbook-xsl/xhtml/docbook.xsl citazioni.xml > citazioni.html You may see both files at http://xmau.com/scra/ . I have a lot of doubts, however. Most of them must be simple, and if someone could point me to a good tutorial I would be really grateful. (a) I would like to have my output coded in ISO-8859-1 rather than in UTF-8; it's not mandatory, since a remote page is loaded fine, but I am annoyed since I cannot see the file correctly on my local machine. Is it possible to do so? (b) Another nuisance is that the output is a loooong line. Is there a way to have it split? (c) I don't want to see the standard text like "Sommario" and "Capitolo 1". Is there a way to modify the behaviour of the transformation filter? (d) Am I correct in inferring that the "right" way to have some leading and trailing space between quotes, and return lines between quotes in a blockquote block, is to apply a style sheet? If so, is there a way to add its location in the original XML file? (BTW, I would have preferred to use <para> instead of <quote>, but I think that it is not possible, right?) (e) I also want to start from the XML source and generate a plain text file in a format apt to be used by fortune. What should I do? (f) (and last!) Why the public identifier for DocBook does not seem to work? what should I do in order to cope with this? TIA, .mau. To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]