[docbook-apps] Problem with simplelist and pdf?

2007-05-02 Thread Ken Morse
I'm seeing a problem where a simplelist doesn't appear to be formatted correctly for FOP: ?xml version=1.0 encoding=UTF-8? !DOCTYPE book PUBLIC -//OASIS//DTD DocBook XML V4.5//EN http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd; book chapter id=ch1 titlesimplelist/title simplelist

[docbook-apps] Re: Problem with simplelist and pdf?

2007-05-02 Thread Ken Morse
implemented with tables -- but perhaps it is just an oversight in fo/lists.xsl. Ken On 5/2/07, Ken Morse [EMAIL PROTECTED] wrote: I'm seeing a problem where a simplelist doesn't appear to be formatted correctly for FOP: ?xml version=1.0 encoding=UTF-8? !DOCTYPE book PUBLIC -//OASIS//DTD DocBook

[docbook-apps] pstotext Windows binary?

2007-05-04 Thread Ken Morse
Anyone know where I might find a Windows binary for pstotext? The link (http://www.research.compaq.com/SRC/virtualpaper/pstotext.html) for this utility referenced in Bob Stayton's book seems to be dead -- in fact I think the whole www.research.compaq.com is no longer good. I'd like to try Bob's

Re: [docbook-apps] pstotext Windows binary?

2007-05-06 Thread Ken Morse
That's great, Mauritz -- I'll check-out pdftotext and see if it can be used like pstotext. Thanks very much, Ken On 5/5/07, Mauritz Jeanson [EMAIL PROTECTED] wrote: A similar tool called pdftotext is included in the Xpdf package. You should be able to use that instead of pstotext. See

Re: [docbook-apps] Using Japanese in FOP

2007-05-17 Thread Ken Morse
XEP might work for you George -- they have a trial versions available if you want to just test it. http://www.renderx.com/tools/xep.html Ken On 5/16/07, Eckel, George [EMAIL PROTECTED] wrote: I have a docbook book that has been translated into Japanese. FOP will not produce a PDF. Seems

[docbook-apps] insert.xref.page.number ignored when using xreflabel

2007-05-22 Thread Ken Morse
Using the 1.72.0 FO stylesheets, I noticed that xref has a page number reference appended when a xreflabel is used, even when insert.xref.page.number is set to no (the default). For example, if I slightly tweak one of the cross reference examples from Bob Stayton's book to include an xreflabel:

Re: [docbook-apps] insert.xref.page.number ignored when using xreflabel

2007-05-22 Thread Ken Morse
of the stylesheet. Ken On 5/22/07, M.Canales.es [EMAIL PROTECTED] wrote: El Martes, 22 de Mayo de 2007 20:40, Ken Morse escribió: Rendering your example with FOP-0.93 the page number is here on both cases, using @xreflabel or not, just like the stylesheets want. From fo/xref.xsl: xsl:template

Re: [docbook-apps] profiling=hiding?

2007-05-23 Thread Ken Morse
How are you doing the profiling, Cheri? You need to set the condition to what you want to show up -- any other setting for that condition (including no setting at all) makes it disappear during the profiling phase. For example, if you have the following code: sect1 condition=internal

Re: [docbook-apps] profiling=hiding?

2007-05-24 Thread Ken Morse
Hi Dmitry, Actually, if an empty string is used, the profiled section will disappear. For example: xsltproc --stringparam profile.condition '' --output output.xml profiling/profile.xsl input.xml You're right about not setting profile.condition at all though; in that case the profiled section

[docbook-apps] Proper way to specify UNC path in XML catalog

2007-05-30 Thread Ken Morse
Hello, I've recently run into trouble trying to specify a UNC pathname in an XML catalog. The pathname has the form: \\server\path\ For xsltproc, the following seems to work: file:/server/path/ (5 forward slashes) and for Saxon/Xerces this works: file:server/path/ (4 forward

Re: [docbook-apps] Proper way to specify UNC path in XML catalog

2007-05-30 Thread Ken Morse
Hi Chris, Were you thinking of the SMB File Sharing URI Scheme ( http://www.ietf.org/internet-drafts/draft-crhertel-smb-url-12.txt)? That would be an excellent way of specifying a UNC pathname like \\server\path: smb://server/path This is still a draft specification though and I'm not sure

Re: [docbook-apps] Proper way to specify UNC path in XML catalog

2007-05-31 Thread Ken Morse
Thanks very much for the pointers Dave. For the moment, I'm temporarily assigning a drive letter to the server in the build script and using that since all the processors seem to handle driver letters better than UNC paths in catalogs: net use U: \\server\path /persistent:no and then in the

Re: [docbook-apps] linebreak causing page citation to become question mark

2007-06-04 Thread Ken Morse
I haven't seen this behavior before with xrefs, Cheri. Have you looked at the fo output produced by Saxon to see if the page references look ok? Do you see any difference in the fo output between the page references that look ok and that ones that do not? If the FO output is ok, then maybe the

[docbook-apps] Formatting multiple subtitles

2007-06-05 Thread Ken Morse
Hello, I've got a DocBook document with multiple subtitle elements (bookinfo) and I'd like to style each of them a bit differently on the recto side of the title page (by default at least, all the subtitles have the same formatting applied). I'm mostly looking to tweak font size, font-weight,

Re: [docbook-apps] Formatting multiple subtitles

2007-06-05 Thread Ken Morse
Great idea Scott -- works very well. Thanks, Ken On 6/5/07, Scott Hudson [EMAIL PROTECTED] wrote: Ken, what about using the role attribute on subtitle to distinguish them? Then you can write some template code to process each of the different subtitle roles appropriately? Best regards,

Re: [docbook-apps] retrieve-class-name only fetching the chapter's first section name

2007-06-08 Thread Ken Morse
Hi Tom, I think you need to set the number number higher to include the appropriate section level. From the 1.72.0 docs: The marker.section.level parameter controls the depth of section levels that may be displayed in running headers and footers. For example, if the value is 2 (the default),

Re: [docbook-apps] retrieve-class-name only fetching the chapter's first section name

2007-06-08 Thread Ken Morse
I think you can use marker.section.level to control the level of sections that are displayed in a running header, Tom. See Bob Stayton's DocBook XSL book or check our the reference online at http://sagehill.net/docbookxsl/PrintHeaders.html#RunningSections. Ken On 6/8/07, Tom Copeland [EMAIL

Re: [docbook-apps] Generate custom XSL templates

2007-06-12 Thread Ken Morse
Not sure if this is the problem or not Luca but with xsltproc, you need to use either -o filename (one dash) or --output filename (two dashes). Does that make any difference? Ken On 6/12/07, Luca Giandoso [EMAIL PROTECTED] wrote: I'm using docbook distribution 1.71.0. I would like to customize

Re: [docbook-apps] Generate custom XSL templates

2007-06-12 Thread Ken Morse
, Luca Giandoso [EMAIL PROTECTED] wrote: Ken, thank you for you answer and sorry for the stupid error posting the message but that's not the problem. Any other ideas? Luca On 6/12/07, Ken Morse [EMAIL PROTECTED] wrote: Not sure if this is the problem or not Luca but with xsltproc, you need to use

Re: [docbook-apps] Validating DocBook V5.0

2007-06-14 Thread Ken Morse
- George Cristian Bina - http://aboutxml.blogspot.com/ oXygen/ XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com Jirka Kosek wrote: Ken Morse wrote: As an alternative, I thought I might use xmllint -- anyone know

Re: [docbook-apps] Included images too big in fop PDF output

2007-07-18 Thread Ken Morse
Hi Stefano, See also http://www.oasis-open.org/archives/docbook-apps/200704/msg00150.html I've had this problem myself and have resolved it for screen shots by not setting any size information in the DocBook source, but rather by setting the resolution on the image files. For XEP, I've found

[docbook-apps] Referencing Official copy of stylesheets

2007-08-03 Thread Ken Morse
We tend to include a line like the following near the top of our customization layer stylesheets: xsl:import href= http://docbook.sourceforge.net/release/xsl/1.72.0/html/docbook.xsl/ We then use catalogs to map the web address to something local on the users PC -- but it's nice to know that if

Re: [docbook-apps] Referencing Official copy of stylesheets

2007-08-06 Thread Ken Morse
I think you're right Mike -- we'll just go ahead and host these files ourselves. Thanks a ton, Ken On 8/6/07, Michael(tm) Smith [EMAIL PROTECTED] wrote: Why not host a copy on one of your organization's own servers? --Mike

Re: [docbook-apps] Making hyperlinks of page numbers in PDF index

2007-08-13 Thread Ken Morse
Check out this thread, Cheri: http://www.oasis-open.org/archives/docbook/200506/msg9.html It doesn't look too good for the 0.20.5 version of FOP. Perhaps the 0.93version is better? I've switched from FOP to XEP and XEP definitely supports this. Ken On 8/13/07, Dennison, Cheri [EMAIL

[docbook-apps] Fourth Edition of DocBook XSL: The Complete Guide?

2007-08-16 Thread Ken Morse
I've really enjoyed your book, Bob and have found it invaluable in building documents using the DocBook XSL stylesheets. Do you plans for a new edition that covers DocBook 5? Ken

Re: [docbook-apps] customization layer for DocBook 5.0: The Transition Guide

2007-08-29 Thread Ken Morse
Hi Mike, Thanks for all the good information about the stylesheets. Your response to Brett has prompted me to ask a few, hopefully related, questions: I notice that the howto.xml file you pointed to at https://docbook.svn.sourceforge.net/svnroot/docbook/trunk/docbook/relaxng/docbook/howto/is

Re: [docbook-apps] ulink doesn't show as footnote when using XSL-NS Stylesheets

2007-08-31 Thread Ken Morse
Bug is checked in, https://sourceforge.net/support/tracker.php?aid=1785519. If I learn anything more, or determine a fix, I'll post an update. Is there anyway to add XSL-NS as a category in the bug tracker? Thanks, Ken On 8/31/07, Michael(tm) Smith [EMAIL PROTECTED] wrote: Ken Morse [EMAIL

Re: [docbook-apps] ulink doesn't show as footnote when using XSL-NS Stylesheets

2007-09-05 Thread Ken Morse
the XSL stylesheets then a special transformation for link in fo/xref.xsl would need to be added. Ken On 8/31/07, Michael(tm) Smith [EMAIL PROTECTED] wrote: Ken Morse [EMAIL PROTECTED], 2007-08-31 07:33 -0400: Bug is checked in, https://sourceforge.net/support/tracker.php?aid=1785519. If I

Re: [docbook-apps] ulink doesn't show as footnote when using XSL-NS Stylesheets

2007-09-06 Thread Ken Morse
, then the footnote count would need to handle both ulink (as it does now) as well as handling the link changes. Can we do this with a single xsl:number.../ or would we have to split things up? Ken On 9/6/07, Michael(tm) Smith [EMAIL PROTECTED] wrote: Ken Morse [EMAIL PROTECTED], 2007-09-05 15

Re: [docbook-apps] ulink doesn't show as footnote when using XSL-NS Stylesheets

2007-09-10 Thread Ken Morse
Very cool Mike! I'll check out the changes and see how they work out with my docs. Thanks for all the hard work, Ken On 9/10/07, Michael(tm) Smith [EMAIL PROTECTED] wrote: On 9/6/07, Ken Morse [EMAIL PROTECTED] wrote: The additional twist I've found to this is that even with the patch

Re: [docbook-apps] Upgrading from 4.3 to 5.0

2007-09-10 Thread Ken Morse
A great place to start is DocBook 5.0: The Transition Guide: http://docbook.org/docs/howto/. -Ken On 9/10/07, kravalmel [EMAIL PROTECTED] wrote: Hi, I have to update from DocBook 4.3 to 5.0 asap. Can anyone tell me how to do this? How can I do this quickly? I have been building documents

Re: [docbook-apps] ulink doesn't show as footnote when using XSL-NS Stylesheets

2007-09-16 Thread Ken Morse
Mike! Ken On 9/10/07, Michael(tm) Smith [EMAIL PROTECTED] wrote: On 9/6/07, Ken Morse [EMAIL PROTECTED] wrote: The additional twist I've found to this is that even with the patch, the footnote numbers are not output. Yeah, after looking at the code a bit, I could see that this problem

Re: [docbook-apps] problem with HTMLHelp and Turkish content

2007-09-24 Thread Ken Morse
The HTML Help compiler has some real limitations when it comes to character sets and the toc/index; it's amazing that the compiler hasn't been updated in such a long time. I haven't yet found a good way to configure the character set for the index but you can change the font -- is it possible the

[docbook-apps] First title in chunked output

2008-01-03 Thread Ken Morse
Hello, Anyone know of a way to treat the *first* div class=titlepage on a chunked XHTML output page differently? Bob Stayton's book has a nice example covering Styling section headings with CSShttp://sagehill.net/docbookxsl/UsingCSS.html#StylingSectHeads(page 72 in the Fourth Edition) but the CSS

[docbook-apps] Customizing chapter.titlepage

2008-01-03 Thread Ken Morse
Hello, I'd like to change the output generated by chapter.titlepage (in html/titlepage.templates.xsl) but when I include a copy of it in my customization layer, I get the following errors from xsltproc: xsltproc --output title.html html.xsl title.xml runtime error: file html.xsl line 17 element

Re: [docbook-apps] First title in chunked output

2008-01-06 Thread Ken Morse
make a CSS selector more specific by including the div that contains the div with class=titlepage. div.chapter div.titlepage { } Bob Stayton Sagehill Enterprises [EMAIL PROTECTED] - Original Message - From: Jere Käpyaho [EMAIL PROTECTED] To: Ken Morse [EMAIL PROTECTED] Cc

[docbook-apps] Chunked files output directory for root element

2008-02-14 Thread Ken Morse
Is there a way to have only the root element chunk go to a different folder than the other chunk files without resorting to a dbhtml dir processing instruction? With recent versions of Macintosh OS X, it's typical to have the root element (index.html) in a top-level folder, and the rest of the

[docbook-apps] Re: Chunked files output directory for root element

2008-02-16 Thread Ken Morse
=local-name(.) = 'book' xsl:texttopfolder//xsl:text /xsl:when xsl:otherwise xsl:texttopfolder/subfolder//xsl:text /xsl:otherwise /xsl:choose ... /xsl:template Ken On Feb 14, 2008 4:30 PM, Ken Morse [EMAIL PROTECTED] wrote: Is there a way to have only the root element

[docbook-apps] Problem with legalnotice link

2008-02-21 Thread Ken Morse
I noticed today when using the generate.legalnotice.link option with the 1.73.2 stylesheets that the href and the filename don't match -- the href has a ln- prefix. For example, if the source looks like: book bookinfo legalnotice id=legalnotice para Blah

Re: [docbook-apps] Problem with legalnotice link

2008-02-21 Thread Ken Morse
Thanks for pointing that out, Mauritz. The snapshot does work better, although not completely as expected. The snapshot does now generate an filename and an href that match; the difference is that the id of legalnotice no longer seems to be used -- a generated id is used even if the legalnotice id

Re: [docbook-apps] Problem with legalnotice link

2008-02-22 Thread Ken Morse
Message- From: Ken Morse Thanks for pointing that out, Mauritz. The snapshot does work better, although not completely as expected. The snapshot does now generate an filename and an href that match; the difference is that the id of legalnotice no longer seems to be used

[docbook-apps] Adding registered trademark to title on book title page

2008-10-09 Thread Ken Morse
Hello, I'd like to add a registered trademark symbol to a title on the recto side of a book title page. I don't think changing the contents of the title tag makes sense since I'll want to use that elsewhere without the mark. In addition, I'll probably want to control how the mark prints (maybe a

[docbook-apps] CSS background image missing in CHM

2009-09-30 Thread Ken Morse
Hello, I'm using the 1.7.20 htmlhelp stylesheets to build a .CHM (HTML Help) file. Recently I added a background image via the separate CSS file: body { ... background: #fff url(images/bg-side.png) repeat-y; ... } Even though I have the *htmlhelp.enumerate.images* option turned on though, the

Re: [docbook-apps] CSS background image missing in CHM

2009-09-30 Thread Ken Morse
We could do that but the I believe the hhp file is rebuilt from scratch every time the stylesheet process is run; it would be better if there was some other way to add image files. Ken On Wed, Sep 30, 2009 at 2:44 PM, Richard Quadling rquadl...@googlemail.comwrote: Assuming that the hhp file

Re: [docbook-apps] CSS background image missing in CHM

2009-10-02 Thread Ken Morse
=$htmlhelp.enumerate.images You'll have to trace through the process and figure out how to add your extra images to the list by customizing that template. Bob Stayton Sagehill Enterprises b...@sagehill.net - Original Message - *From:* Ken Morse kenneth.mo...@gmail.com *To:* DocBook Apps docbook

[docbook-apps] How to customize a template from division.xsl?

2014-08-10 Thread Ken Morse
I'm trying to customize the *book* template from the dvision.xls stylesheet and run into an error for xsltproc. At this point, I'm not even changing the template, but simply putting a copy of it in my customization file produces the error, I/O error : Is a directory (happens when chunking the

[docbook-apps] Minimum TOC depth?

2014-08-13 Thread Ken Morse
Has anyone figured out a way to have a *minimum* TOC depth? With HTML output, I'll sometimes see a page that has a single TOC that simply points to the first section -- in that case, it would be really nice to just skip the TOC. (On a related note, with chunk.first.sections turned off, even when