RE: [docbook-apps] Generating both a short TOC and TOC for a book?

2011-02-24 Thread Rowland, Larry
Have you looked at the process.empty.source.toc parameter? You will Probably want to add a role attribute to control depth. Regards, Larry Rowland -Original Message- From: Glen Mazza [mailto:glen.ma...@gmail.com] Sent: Tuesday, February 15, 2011 10:46 AM To:

RE: [docbook-apps] Ideas for GSoC 2011

2011-02-10 Thread Rowland, Larry
I think that's a great idea. It would also be helpful to extend it to work as a component in a TomCat environment where Lucene could replace the search engine (for larger help environments). Larry Rowland -Original Message- From: Jirka Kosek [mailto:ji...@kosek.cz] Sent: Thursday,

RE: [docbook-apps] acronyms, abbreviations, definitions

2010-11-16 Thread Rowland, Larry
through a document. Centrally locating the associated expansion reduces redundant coding. Regards, Larry -Original Message- From: Dave Pawson [mailto:da...@dpawson.co.uk] Sent: Thursday, November 11, 2010 12:37 AM To: Rowland, Larry Cc: Cramer, David W (David); n...@n-faktor.net; docbook

[docbook-apps] RE: Different types of document builds

2010-11-16 Thread Rowland, Larry
We used make for a while before adopting Ant. It was much more difficult to explain to writers than Ant proved to be, and customizing the builds was more difficult for them, since they had XML tools for editing DocBook, anyway, but were not familiar with pure text editors. Ant was also

RE: [docbook-apps] acronyms, abbreviations, definitions

2010-11-16 Thread Rowland, Larry
Hello Nathalie, A couple of things: 1) You don't have to have a single glossary database for all your documents. It is quite reasonable to break it up into glossaries that are topic-appropriate. 2) Title was what the W3C consortium recommend at one time for the expansion. I have

RE: [docbook-apps] acronyms, abbreviations, definitions

2010-11-10 Thread Rowland, Larry
The glossentry element includes acronym and abbrev as valid children. This is where it might be best to link the expansion of the acronym or abbreviation to the acronym or abbreviation (the expansion is in the glossterm). A fairly simple extension of the transforms allowed us to have the

RE: [docbook-apps] translated indexes

2010-09-27 Thread Rowland, Larry
We use an XSLT script to add the sortas attribute to the documents before we turn it over to the Japanese localizers, since some of the translation memory tools they use do not allow them to modify the structure of the document (and the attributes attached to an element is considered part of

RE: [docbook-apps] translated indexes

2010-09-27 Thread Rowland, Larry
, Rowland, Larry wrote: We use an XSLT script to add the sortas attribute to the documents before we turn it over to the Japanese localizers, since some of the translation memory tools they use do not allow them to modify the structure of the document (and the attributes attached to an element

RE: [docbook-apps] translated indexes

2010-09-27 Thread Rowland, Larry
on the attribute. Regards, Larry Rowland -Original Message- From: Jean-Christophe Helary [mailto:jean.christophe.hel...@gmail.com] Sent: Monday, September 27, 2010 8:32 AM To: DocBook Apps Subject: Re: [docbook-apps] translated indexes On 27 sept. 10, at 23:21, Rowland, Larry wrote: We use an XSLT

RE: [docbook-apps] draft.mode default to no?

2010-09-20 Thread Rowland, Larry
I believe it was set to maybe so that the status attribute on things like chapters and sections can be used to indicate that part of a document is draft (in documents that may take months to complete, being able to indicate that part of a document is draft is important, since significant

RE: [docbook-apps] Controlling the publishing process - shell scripts, Ant, other tools

2010-08-26 Thread Rowland, Larry
We have a fairly complex Ant based system that uses an individual build file for each document that includes a set of build files that have the actual targets for building; this allows us to customize things like file names and destination paths easily. Each document can be processed into a

RE: [docbook-apps] Get total page

2010-08-20 Thread Rowland, Larry
Did you look at Bob Stayton's write-up on consecutive page numbers (it includes a bit on page x of y): http://www.sagehill.net/docbookxsl/PrintHeaders.html#ConsecutivePageNumbers If you are going to do much with DocBook, Bob's reference is pretty much essential. Regards, Larry Rowland

[docbook-apps] RE: TOC position in the document

2010-08-20 Thread Rowland, Larry
There is a parameter in the FO transforms that might be helpful. We use empty toc elements to indicate where to generate a ToC and set this parameter accordingly: http://docbook.sourceforge.net/release/xsl/current/doc/fo/process.empty.source.toc.html Our transforms have considerable

RE: [docbook-apps] Website: is there any additional *short* title for use in the TOC / left column?

2010-07-14 Thread Rowland, Larry
Did you try providing a titleabbrev element with the alternate, shorter title. That is normally what is used for providing a title that is shorter than the full title. I am not that familiar with the Website grammar, but I know that is how it works in other contexts. Regards, Larry Rowland

RE: [docbook-apps] Re: Website: is there any additional *short* title for use in the TOC / left column?

2010-07-14 Thread Rowland, Larry
: [docbook-apps] Re: Website: is there any additional *short* title for use in the TOC / left column? Rowland, Larry larry.rowl...@hp.com writes: Did you try providing a titleabbrev element with the alternate, shorter title. Many thanks for the hint, Larry! Tried it, but to no success. Well

RE: [docbook-apps] xslt for source code

2010-06-30 Thread Rowland, Larry
I would suggest looking at the following sections in Bob Stayton's excellent reference on DocBook XSL. On using external code files: http://www.sagehill.net/docbookxsl/ExternalCode.html On syntax highlighting: http://www.sagehill.net/docbookxsl/SyntaxHighlighting.html Regards, Larry Rowland

RE: [docbook-apps] aligning text

2010-06-23 Thread Rowland, Larry
You might want to read Bob Stayton's write-up on using CSS: http://www.sagehill.net/docbookxsl/UsingCSS.html From: PC Thoms [mailto:pcth...@gmail.com] Sent: Wednesday, June 23, 2010 1:11 PM To: docbook-apps@lists.oasis-open.org Subject: [docbook-apps] aligning text I'm converting some older

RE: [docbook-apps] DocBook and InDesign

2010-06-18 Thread Rowland, Larry
There actually is a mechanism for preserving directives for publishing in a specific output format: processing instructions. If they become very dense, they make the markup hard to read, but the mechanism is there. Processing instructions are ignored if they are not recognized by a processing

RE: [docbook-apps] appendix vs. reference?

2010-06-14 Thread Rowland, Larry
The reference section contains refentry elements, which were originally developed to produce man pages for UNIX-like systems. In general references contain descriptions of things like commands, code-libraries, functions, and configuration file formats (in general, the things that users and

RE: [docbook-apps] [OT] - Doc in Wiki system

2010-06-01 Thread Rowland, Larry
Jan, I know of a couple of things that might lead an organization to adopting Wiki technology for their help systems. 1) User annotation. One of the things lost when paper went away was the ability of users to add their own information to a document. This is important, particularly

RE: [docbook-apps] How to generate lia href=xx../a/li?

2010-05-13 Thread Rowland, Larry
You might consider using a simplelist instead: simplelist type=vert memberulink url=xxx//member !-- uses the URL for anchor text -- memberulink url=yyymy anchor text/ulink/member simplelist It does not generate a ul, but does not require the para elements. If you want a symbol preceding

[docbook-apps] RE: chapter title without chapter

2010-05-05 Thread Rowland, Larry
This is controlled by the generated text mechanism, which is described in Bob Stayton's excellent reference: http://www.sagehill.net/docbookxsl/CustomGentext.html You need to redefine the templates with the name chapter (there are a number of them for different purposes). The section in

RE: [docbook-apps] Document driven switching TOC on/off

2010-04-19 Thread Rowland, Larry
You might want to check the parameter: process.empty.source.toc in the parameter reference for FO or HTML. Do a search for docbook parameters to find an online version, although you should check the copy of the parameter reference that came with the specific version of the transforms that

RE: [docbook-apps] How do I highlight inline text ?

2010-04-12 Thread Rowland, Larry
Another thing to keep in mind is that DocBook already has a large assortment (some people say too many, but others of us disagree) of semantic elements available that describe many features of computers. Before investing in time to create a new class of things by using a role on emphasis, make

RE: [docbook-apps] XInclude quiestion

2010-04-12 Thread Rowland, Larry
It sounds like the xincludes are being passed through to the DocBook transforms rather than being resolved before the processing is taking place. Take a look at Bob Stayton's write-up: http://www.sagehill.net/docbookxsl/Xinclude.html His reference on DocBook XSL is excellent. Regards, Larry

RE: [docbook-apps] Colored listings

2010-04-12 Thread Rowland, Larry
Marty, Bob Statyton has a good discussion of program listings: http://www.sagehill.net/docbookxsl/ProgramListings.html There is a section on syntax highlighting (which differentiates among things like keywords, constants, and parameters) at the bottom of the ToC on this page. Regards, Larry

RE: [docbook-apps] RE: Test condition to check if the current node is the first child

2010-03-01 Thread Rowland, Larry
: [docbook-apps] RE: Test condition to check if the current node is the first child Larry, Thanks for the suggestion. But it does not work if white spaces exist between note and para such As note para ... /para/note Sherwood -Original Message- From: Rowland, Larry

[docbook-apps] RE: Test condition to check if the current node is the first child

2010-02-24 Thread Rowland, Larry
You might try testing for there being no preceding sibling: preceding-sibling::node() = '' Regards, Larry Rowland From: Sherwood Hu [mailto:sherw...@morovia.com] Sent: Wednesday, February 24, 2010 1:26 PM To: docbook-apps@lists.oasis-open.org Subject:

RE: [docbook-apps] Error while trying to put together a document with xsltproc

2009-12-10 Thread Rowland, Larry
A DOCTYPE declaration in XML requires a system value, and yours does not appear to have one. The declaration should look more like this: !DOCTYPE book PUBLIC -//OASIS//DTD DocBook XML V4.4//EN http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd;[ !ENTITY cereals productnameFrobozz

RE: [docbook-apps] improve DocBook's HTML output

2009-11-30 Thread Rowland, Larry
While I agree that embedding the CSS in the header is not the best solution, particularly for chunked output, we are sometimes required to deliver files into existing delivery environments that require file-per-file replacement of HTML files that were originally produced using output from

RE: [docbook-apps] Pasting footnotes from DocBook-generated HTML into OpenOffice

2009-09-24 Thread Rowland, Larry
That's interesting. I tried it on Ubuntu Linux with OpenOffice 2.4.1 and it worked, opening my sample DocBook file as a word-processing document. When I tried on my Windows XP system, with OO 2.3.1 (what was installed there -- I don't use Windows very much and haven't kept it up to date), I

RE: [docbook-apps] Pasting footnotes from DocBook-generated HTML into OpenOffice

2009-09-22 Thread Rowland, Larry
Jennifer, Word does support internal links. I am not sure which versions of DocBook and OpenOffice you are using or the platform you are working on, but OpenOffice can import some DocBook versions. You set the document type to DocBook in the Open dialog box and then open the XML file. Your

RE: [docbook-apps] mediaobject in lots tocs

2009-08-21 Thread Rowland, Larry
Dave, Figures are formal objects, that is, they have titles. Mediaobjects are not, and thus do not have titles. In general, only formal objects show up in lists of things that are auto generated. If you want a mediaobject to show up in a list, the general practice is to wrap it in a figure.

RE: [docbook-apps] mediaobject in lots tocs

2009-08-21 Thread Rowland, Larry
- From: Dave Pawson [mailto:da...@dpawson.co.uk] Sent: Friday, August 21, 2009 11:13 AM To: Rowland, Larry Cc: docbook-apps@lists.oasis-open.org Subject: Re: [docbook-apps] mediaobject in lots tocs On 21/08/09 17:10, Rowland, Larry wrote: Dave, Figures are formal objects, that is, they have

RE: [docbook-apps] Keywordset within the Refentry tree

2009-08-06 Thread Rowland, Larry
The keywordset is generally a child of an information block of some sort. In 4.x, that would be refentryinfo, in 5.x, it is an info element. Larry Rowland From: Kathleen Mattson [mailto:kathl...@millermattson.com] Sent: Thursday, August 06, 2009 1:43 PM To:

RE: [docbook-apps] PNG Images rendering on XML-FO-PDF

2009-08-05 Thread Rowland, Larry
Daniele, Moreover I don't understand why the FO processor stretch the images instead using their original size! Part of this is because the size of a PNG has much to do with the way the image is viewed. Another is that not all PNG creation tools store an accurate resolution in pixels per inch

RE: [docbook-apps] xlstproc questions (was: CSS begging)

2009-05-18 Thread Rowland, Larry
We use Apache Ant to control builds. It is possible to use it directly to invoke a transform (using the XSLT task). By default, Xalan is bound as the XSLT transform engine, but it can be replaced with Saxon fairly easily. A big advantage it has is working cross-platform, which is important

RE: [docbook-apps] Docbook images/graphics. Where do you keep them?

2009-05-14 Thread Rowland, Larry
are just PNG and photos are JPEG, unless they have callouts, which we do by overlaying them on the image using SVG). LRR Rowland, Larry wrote: We have over 15000 books in multiple languages on docs.hp.com, so we share the assets. You're just a big show-off Larry :-) We use a versioned

RE: [docbook-apps] Docbook images/graphics. Where do you keep them?

2009-05-14 Thread Rowland, Larry
I put a copy of our style assets directory at the root of my hard drive. We always use the /styles/... type of path on our production pages that are aimed at the Web. That way if I open the file on my Windows system the styles are available, too. Larry Rowland -Original Message-

RE: [docbook-apps] Docbook images/graphics. Where do you keep them?

2009-05-14 Thread Rowland, Larry
, 2009 11:41 AM To: Rowland, Larry Cc: docbook-apps Subject: Re: [docbook-apps] Docbook images/graphics. Where do you keep them? Rowland, Larry wrote: Actually, I was just trying to set the context -- I don't even work on that part of the production process any longer. The smaller your

RE: [docbook-apps] Docbook images/graphics. Where do you keep them?

2009-05-14 Thread Rowland, Larry
by the user in the Ant property. The style assets are delivered in a different directory. LRR -Original Message- From: DavePawson [mailto:da...@dpawson.co.uk] Sent: Thursday, May 14, 2009 11:45 AM To: Rowland, Larry Cc: docbook-apps Subject: Re: [docbook-apps] Docbook images/graphics. Where do

RE: [docbook-apps] xinclude ...... of plain text?

2009-05-13 Thread Rowland, Larry
The xinclude syntax includes a parse attribute that indicates whether to treat as XML or text. A programlisting is designed for displaying files such as configuration files. Not sure if that is exactly what you were looking for. Larry Rowland -Original Message- From: DavePawson

RE: [docbook-apps] Element [...] not allowed in this context

2009-05-11 Thread Rowland, Larry
As nearly as I can tell, you are attempting to include a chapter inside a chapter (StaffServices.xml, which is a chapter includes Cataloging.xml, which is also a chapter). You also have a para following the inclusion of Cataloging.xml, which would be a para following a chapter (or section, if

RE: [docbook-apps] Very basic svn and DocBook question

2009-04-29 Thread Rowland, Larry
Karen, The XML is what needs to be preserved in your source tree. If some of your documentation is shipped with a product, the result files are likely to be checked into the product build tree (we check in ZIP files of the help system for most of our products along with some PDF documents).

[docbook-apps] RE: [docbook] Re: [docbook-apps] slides: how to balance presentation and content

2009-01-15 Thread Rowland, Larry
Most of control of specific output characteristics is done with processing instructions in DocBook. This allows specifics for different outputs to be specified (using dbfo and dbhtml type identifiers within the processing instructions). I guess this is part of the philosophy of trying to

RE: [docbook-apps] documenting code

2009-01-05 Thread Rowland, Larry
+-- | Another problem I have, a long command line, e.g. calling | java, saxon for a transform, | docbook has no | | linejava -cp . | linebreak/main.class | linebreak/param1 | etc | | To enable XSLT to re-build a single line from one | split, for the sake of convenience? +-- We face this

RE: [docbook-apps] fo:external-graphic w/ # in file name

2008-12-03 Thread Rowland, Larry
The pound character is a reserved character in the URL syntax and should not be used in file names. Since the value you are specifying is a URL, you need to observer the syntax of URLs. From the spec: Hash for Fragment Identifiers The hash (#, ASCII 23 hex) character is reserved as a