Re: [docbook-apps] Re: Including a variable in an xlink:href value

2018-01-10 Thread Mark Craig
Hello Janice, Since you're using Maven, as a workaround you could use bare Maven expressions and perform Maven filtering on the source before using the docbkx plugin. Maven filtering replaces expressions like ${project.version} with the values of their Maven properties. For example, in a 1.0.0-SN

Re: [docbook-apps] Switching manpage generation from docbook-SGML to docbook-xml

2017-10-06 Thread Mark Craig
Hello, If you get the DocBook XSL stylesheets, you can probably do the conversion with the xsltproc tool as shown in http://www.sagehill.net/docbookxsl/RefentryToMan.html Hope it helps, Mark PS The XSL conversion works fine in the toolchain I'm using (in a Maven project, so with a plugin based o

Re: [docbook-apps] Re: [docbook] future of DocBook XML Schema (XSD)?

2016-10-18 Thread Mark Craig
Hi, At present we are using declarations that reference the XSD, such as: http://docbook.org/ns/docbook"; version="5.0" xml:lang="en" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://docbook.org/ns/docbook http://docbook.org/x

[docbook-apps] Re: Profiling/conditional text based on document context?

2016-06-22 Thread Mark Craig
Thanks, Simon. I'll look how we could integrate use of PACBook into the build. Regards, Mark

[docbook-apps] Profiling/conditional text based on document context?

2016-06-21 Thread Mark Craig
Hello, We use profiling/conditional text already at build time and it works fine. What is the right way to set up conditional text to have the condition depend on the document context? In other words, if the document is included in book 1, exclude this and include that. If the document is includ

Re: [docbook-apps] javascript to chunked xhtml output from docbook

2016-05-08 Thread Mark Craig
Hello, If you can store the JavaScript in a separate file, then you can reference the file with the html.script parameter: http://docbook.sourceforge.net/release/xsl/1.79.1/doc/html/html.script.html The stylesheets basically copy the content of the parameter element to a script element in the hea

[docbook-apps] mark.optional.procedure.steps for HTML in 1.79.0?

2015-10-24 Thread Mark Craig
Hello, In testing 1.79.0, I was pleased to find this turned on by default: http://snapshots.docbook.org/xsl/doc/fo/mark.optional.procedure.steps.html What is the equivalent parameter for HTML output? Regards, Mark

Re: [docbook-apps] Restrictive Docbook XML editor which enforces Docbook schema?

2015-01-15 Thread Mark Craig
Hello, IDEs like Eclipse and IntelliJ IDEA don’t quite prevent you from inserting the wrong element or attribute, but once you’ve fetched the XSD they help with tag completion and also immediately flag invalid markup (in red text for example). Both those IDEs let you run validation, making it s

Re: [docbook-apps] Coloring only internal links in FO?

2014-06-04 Thread Mark Craig
t; Can someone please file a bug report on the DocBook SourceForge site to > capture this problem so it can be fixed? > > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > On 6/4/2014 2:52 AM, Mark Craig wrote: > >> Just a quick follow up question... >> &g

Re: [docbook-apps] Coloring only internal links in FO?

2014-06-04 Thread Mark Craig
olink"; attribute? (I was thinking of elements having the xlink:role=" http://docbook.org/xlink/role/olink"; attribute as being olinks, too.) Regards, Mark On Wed, Jun 4, 2014 at 11:36 AM, Mark Craig wrote: > Thanks Nick! > > vs. http://docbook.org/xlink/role/olink";>

Re: [docbook-apps] Coloring only internal links in FO?

2014-06-04 Thread Mark Craig
Mark, > > > > Then I doubt the > will work. Have you tried linking using targetptr=”foochap />, if you haven’t there are some additional actions > required such as generating the target data files. > > > > I have a sample (on an internal network) if you need

Re: [docbook-apps] Coloring only internal links in FO?

2014-06-04 Thread Mark Craig
t on the docbkx user forum that you was using link instead? > > > > Regards > > > > Nick > > > > > > *From:* Mark Craig [mailto:mark.cr...@gmail.com] > *Sent:* Tuesday, June 03, 2014 9:41 PM > *To:* Bob Stayton > *Cc:* DocBook Apps > *Subj

Re: [docbook-apps] Coloring only internal links in FO?

2014-06-03 Thread Mark Craig
tivate the coloring? Regards, Mark On Fri, May 2, 2014 at 11:34 PM, Mark Craig wrote: > Thanks Bob, Chris, > > At least I see what the expected behavior is. > > No doubt a problem somewhere in my own code. > > Mark > > > > On Fri, May 2, 2014 at 7:53 PM, Bob

Re: [docbook-apps] Coloring only internal links in FO?

2014-05-02 Thread Mark Craig
active). > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > > On 5/2/2014 12:07 AM, Mark Craig wrote: > >> Hello, >> >> What is the right way with the 1.78.1 stylesheets to color only internal >> links in FO? >> >> I'

[docbook-apps] Coloring only internal links in FO?

2014-05-02 Thread Mark Craig
Hello, What is the right way with the 1.78.1 stylesheets to color only internal links in FO? I'd like to deactivate external olinks in PDF output with activate.external.olinks, and then leave external links the same color as surrounding text, but keep color on internal links (and URLs) because wi

[docbook-apps] NPE when building RTF from .fo

2014-02-25 Thread Mark Craig
Hello, With DocBook XSL 1.78.1 and Apache FOP 1.1, I'm running into an NPE when building RTF. Has anyone else run into this? I first encountered this issue with docbkx-tools, https://code.google.com/p/docbkx-tools/issues/detail?id=112 Here's how I reproduce it driving the stylesheets with xsltpr

Re: [docbook-apps] Fitting tall images in PDF

2014-01-06 Thread Mark Craig
xsl > to make the right stuff come out in the fo. In particular the templates > and name="image.content.height"> are important. > > Really this should be a feature of the stock xslts though. > > Regards, > David > > On 01/05/2014 03:58 AM, Mark Craig wrote

Re: [docbook-apps] Fitting tall images in PDF

2014-01-05 Thread Mark Craig
Thanks Bob and David, What's the right way to pass the "scale-down-to-fit" attribute value into the FO? I've tried adding them as attributes on with some XSL that I was using before to handle wide images. Here's the template where xmlns:db=" http://docbook.org/ns/docbook"; exclude-result-prefixe

[docbook-apps] Fitting tall images in PDF

2014-01-02 Thread Mark Craig
Hello, As suggested in http://www.sagehill.net/docbookxsl/ImageSizing.html, I have been using to keep images at their natural size unless too wide to fit. What are the settings to do the same with regard to image depth (i.e. height)? In other words, keep images at their natural size unless too t

Re: [docbook-apps] Olinks in PDF missing valid destination?

2013-10-24 Thread Mark Craig
7;, right? That parameter's default > value should probably be 1, now that all XSL-FO processors support the > fragment identifiers. > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > *From:* Mark Craig > *Sent:* Thursday, October 24, 2013 6:00 AM &

Re: [docbook-apps] Olinks in PDF missing valid destination?

2013-10-24 Thread Mark Craig
2013, at 3:38 PM, Mark Craig wrote: > Hi Nick, > > Thanks very much for your help. > > Following your suggestion does the trick: > > book > > As a result, the link gets resolved as an internal-destination in the .fo, > and this works fine in the PDF. > >

Re: [docbook-apps] Olinks in PDF missing valid destination?

2013-10-23 Thread Mark Craig
ovide the location > of the documents). > > Regards > > Nick > > > From: Mark Craig [mailto:mark.cr...@gmail.com] > Sent: Wednesday, October 23, 2013 10:11 AM > To: DocBook Apps > Subject: [docbook-apps] Olinks in PDF missing valid destination? > >

[docbook-apps] Olinks in PDF missing valid destination?

2013-10-23 Thread Mark Craig
Hello, In the past I have successfully set up Olink resolution for HTML. I have read and tried to implement http://www.sagehill.net/docbookxsl/OlinkPrintOutput.html#PdfLinkingSetup But I'm not managing to do the same for PDF. A clickable link of the Olink is there in the PDF, but with no valid

Re: [docbook-apps] Listitem overwrites text in orderedlist

2013-10-01 Thread Mark Craig
Hi Matteo, Setting orderedlist.label.width, http://docbook.sourceforge.net/release/xsl/current/doc/fo/orderedlist.label.width.html, seemed to help. Setting that to 1.8em instead of the default 1.2em seemed to fix the problem for lists having a double-digit number of items, http://sources.forg

Re: [docbook-apps] Wide verbatim shading overflowing into right margin in PDF

2013-07-12 Thread Mark Craig
width * $monospace.verbatim.font.width > > where $monospace.verbatim.font.width is one of the DocBook parameters, whose > default value is 0.60em. You can adjust either the width or the param to get > a narrower box. > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net >

Re: [docbook-apps] Re: Eliminating soft hyphens shown in mid line?

2013-04-19 Thread Mark Craig
I have put together a small .fo and seen the issue with the FOP nightly build, so have mailed their user list. Thanks again. Mark On Fri, Apr 19, 2013 at 9:56 AM, Mark Craig wrote: > With docbkx-tools if I set the FO processor extensions correctly and > comment out the custom fonts,

Re: [docbook-apps] Re: Eliminating soft hyphens shown in mid line?

2013-04-19 Thread Mark Craig
rated for each processor may trip up the process. > I've found that FOP is the most picky about failing on unrecognized code, > so going from FOP to something else usually works. > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > *From:* Mark Craig > *Sen

Re: [docbook-apps] Re: Eliminating soft hyphens shown in mid line?

2013-04-18 Thread Mark Craig
des FOP? That would > settle whether it is a FOP problem. > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > From: Mark Craig > Sent: Thursday, April 18, 2013 6:48 AM > To: docbook-apps@lists.oasis-open.org > Subject: [docbook-apps] Re: Eliminating soft h

[docbook-apps] Re: Eliminating soft hyphens shown in mid line?

2013-04-18 Thread Mark Craig
> • .\ > • .-­" > • .a > • .Z Mark On Thu, Apr 18, 2013 at 3:23 PM, Mark Craig wrote: > Hello, > > Apologies if this is really a FOP question. I'm a bit out of my depth. > > I've added some FO customization based on Bob Stayton's helpful sugge

[docbook-apps] Eliminating soft hyphens shown in mid line?

2013-04-18 Thread Mark Craig
Hello, Apologies if this is really a FOP question. I'm a bit out of my depth. I've added some FO customization based on Bob Stayton's helpful suggestion on putting hyphenation within table cells, adding soft hyphens after . i

Re: [docbook-apps] how works

2012-04-18 Thread Mark Craig
Hello, The documentation at http://www.docbook.org/tdg51/en/html/email.html doesn't seem to give a definitive answer, "In some processing environments, email may automatically generate a hypertext link (a mailto: URL)." The 1.76.1 stylesheets definitely generate an active mailto:usern...@domai

Re: [docbook-apps] make.clean.html &

2012-03-28 Thread Mark Craig
n > Sagehill Enterprises > b...@sagehill.net > > > - Original Message - From: "Mark Craig" > To: "Jirka Kosek" > Cc: > Sent: Wednesday, March 28, 2012 6:49 AM > Subject: Re: [docbook-apps] make.clean.html & > > > Thank you, Jirka

Re: [docbook-apps] make.clean.html &

2012-03-28 Thread Mark Craig
Thank you, Jirka, for your reply. I have filed 3512384: "Wrap verbatim w/ when make.clean.html=1" to track this. Regards, Mark On Mar 28, 2012, at 3:02 PM, Jirka Kosek wrote: > On 28.3.2012 14:30, Mark Craig wrote: > >> Is there already an RFE for wrapping pre-

[docbook-apps] make.clean.html &

2012-03-28 Thread Mark Craig
Hello, Since switching to make.clean.html=1 (with 1.76.1), I've been happy feeling like I can just change the CSS if need at some point to restyle HTML output in place. But I'm starting to think the XSL ought to wrap a element around pre-formatted content, not just because of https://bugzill

Re: [docbook-apps] inlinemedia figure

2012-03-26 Thread Mark Craig
Hello Jeff, You might try normalizing the DPI settings in the .png files, as described in http://stackoverflow.com/questions/4261838/xsl-fo-image-size-issue-with-pdfs Most of the .png files seem to start out at 72 or 96 DPI, whereas they may need to be 160 DPI or more to look right in the PDF.

Re: [docbook-apps] Customizing title page for PDF

2012-03-25 Thread Mark Craig
Yes, I see the same result when using fo/titlepage.xsl from the stylesheet distribution for example. However, if I use template/titlepage.xsl as described in http://www.sagehill.net/docbookxsl/TitlePageNewElems.html then I get an XSL stylesheet full of content. Hope it helps, Mark On Sun, Mar 25

Re: [docbook-apps] Generate relative longdesc on ?

2012-03-23 Thread Mark Craig
Nevermind, thanks, Bob, http://docbook.svn.sourceforge.net/viewvc/docbook?view=revision&revision=9246 Regards, Mark On Mar 23, 2012, at 1:55 PM, Mark Craig wrote: > Just checking… no objections apparently since last week. > > Should I have opened an issue somewhere to tra

Re: [docbook-apps] Generate relative longdesc on ?

2012-03-23 Thread Mark Craig
t; > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > > - Original Message - From: "Mark Craig" > To: > Sent: Sunday, March 18, 2012 1:04 AM > Subject: Re: [docbook-apps] Generate relative longdesc on ? > > > Thanks, Bob, for the

Re: [docbook-apps] Olink sitemap for chunked HTML?

2012-03-22 Thread Mark Craig
;&documentfooTargetswebhelp; >         > baseuri="../../../otherproduct/bardocument/html/">&bardocumentTargetswebhelp; >       >   > > > Peter > > On Thu, Mar 22, 2012 at 2:07 PM, Mark Craig wrote: >> Hello, >> >> I'm stum

[docbook-apps] Olink sitemap for chunked HTML?

2012-03-22 Thread Mark Craig
Hello, I'm stumped getting the sitemap right to resolve Olinks in chunked HTML. The Olinks between different files of the same document seem to come out fine. But Olinks between documents are broken. Bob Stayton's book, DocBook XSL: The Complete Guide, has solved lots of the DocBook XSL proble

Re: [docbook-apps] Generate relative longdesc on ?

2012-03-18 Thread Mark Craig
support for > this attribute in the stylesheets rather than fix it since it appears to be > useless.  Any objections? > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > > > - Original Message - > From: Mark Craig > To: docbook-apps@lists.oasis-open.

[docbook-apps] Generate relative longdesc on ?

2012-03-16 Thread Mark Craig
Hello, What HTML customization serves to get relative paths in the longdesc attribute on img elements? The longdesc links and pages are fine, so it's not something noticeable when browsing. But img elements in HTML are coming out with absolute paths in longdesc attributes. For example: The

Re: [docbook-apps] make.clean.html and Firefox handling of white-space: pre ?

2012-02-10 Thread Mark Craig
Adding > another param that would keep make.clean.html for other things but override > this output to ? > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > > - Original Message - From: "Mark Craig" > To: > Sent: Friday, Feb

[docbook-apps] make.clean.html and Firefox handling of white-space: pre ?

2012-02-10 Thread Mark Craig
Hello, I liked setting and using "white-space: pre;" in the CSS. Of course, I did this expecting readers to be able to copy/paste the pre formatted content in a sort of WYSIWYG way. But I didn't test in Firefox until a reviewer mentioned that all the newlines were gone when he pasted. Then I

Re: [docbook-apps] Chunking and custom.css.source ?

2012-02-09 Thread Mark Craig
all the others, and should have a > priority="1" added so it takes precedence. > > Yet another reason to get the next release out soon. 8^) > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > > - Original Message - > From: Mark Cr

[docbook-apps] Chunking and custom.css.source ?

2012-02-07 Thread Mark Craig
Hello, What should I be doing to get the CSS from a custom.css.source file to be picked up in chunked HTML? Works fine for plain (non-chunked) HTML output with 1.76.1. Mail from last April makes it sound like there might have been a bug, http://lists.oasis-open.org/archives/docbook-apps/201104/

Re: [docbook-apps] Syntax Highligher java.lang.StringIndexOutOfBoundsException: String index out of range: -1

2011-11-29 Thread Mark Craig
Hello, In a project I'm working on I hit the same StringIndexOutOfBoundsException. I'm guessing the Xslthl parser really expects to see constructs that correspond to the language to highlight. What was breaking in my document was: ldapport=1389 That's okay in a Java .properties file, so I thou

Re: [docbook-apps] Setting up a DocBook system

2011-11-19 Thread Mark Craig
Hello Richard, David Cramer is write in mentioning user-friendly editors. Templates/examples for typical documents might help, too. Few complaints from part-time or novice authors concern the build system. Instead, they get lost in markup choices or putting a document together from scratch. Rega

Re: [docbook-apps] cacute missing in PDF only

2011-10-07 Thread Mark Craig
sult the FOP list on this one. > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > > - Original Message - > From: Mark Craig > To: Bob Stayton > Cc: docbook-apps@lists.oasis-open.org > Sent: Thursday, October 06, 2011 2:17 AM > Subject: Re: [d

Re: [docbook-apps] cacute missing in PDF only

2011-10-06 Thread Mark Craig
closely resemble the main font. See: > > http://www.sagehill.net/docbookxsl/SpecialChars.html#MissingChars > > Bob Stayton > Sagehill Enterprises > b...@sagehill.net > > > - Original Message - > From: Mark Craig > To: docbook-apps@lists.oasis-open.o

[docbook-apps] cacute missing in PDF only

2011-10-05 Thread Mark Craig
Hello, I have a ć (cacute, ć) missing in PDF (not HTML or RTF). This seems to be the error: Oct 5, 2011 7:07:42 PM org.apache.fop.events.LoggingEventListener processEvent WARNING: Glyph "?" (0x107, cacute) not available in font "Helvetica-Bold". If I go into LibreOffice, I can enter *ć* in Helv

[docbook-apps] XSL-FO size of embedded fonts?

2011-08-01 Thread Mark Craig
Hello, I'm weighing the value of embedding a font vs. sticking with the defaults in PDF, and am not sure whether to be surprised at how much embedding a font increases the size of small files. The font families are DejaVu TrueType. I am not using encoding-mode="single-byte" in the font metrics

Re: [docbook-apps] Draftmode image location

2011-05-25 Thread Mark Craig
Hello, Another alternative that seems to work across versions of the stylesheets as long as you have web access is to point to http://docbook.sourceforge.net/release/images/draft.png. Regards, Mark On Wed, May 25, 2011 at 9:40 PM, Barton Wright wrote: > You could set up a symbolic link in your

Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?

2011-05-19 Thread Mark Craig
Thanks very much for insistingm Peter and David. That's much better. Regards, Mark On Thu, May 19, 2011 at 5:28 PM, Mark Craig wrote: > Aha, . I'll try that. > > Regards, > Mark > > On Thu, May 19, 2011 at 5:20 PM, David Cramer wrote: > >> -BEGIN

Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?

2011-05-19 Thread Mark Craig
; publishing process. I'm surprised that a customization for HTML has > > any effect on your FO. > > > > Peter > > > > On Thu, May 19, 2011 at 9:45 AM, Mark Craig > wrote: > >> Hello, thanks for your suggestion. > >> This is what I tried

Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?

2011-05-19 Thread Mark Craig
er > > On Thu, May 19, 2011 at 9:45 AM, Mark Craig wrote: > > Hello, thanks for your suggestion. > > This is what I tried after I found user.footer.content only gets used > when > > chunking. > > Trouble is, I can insert the file in the HTML following the instructions

Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?

2011-05-19 Thread Mark Craig
' http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script></body> It would be cool if there were something like user.footer.content that worked without

Re: [docbook-apps] How to insert JavaScript near end of HTML without chunking?

2011-05-19 Thread Mark Craig
Hello, thanks for your suggestion. This is what I tried after I found user.footer.content only gets used when chunking. Trouble is, I can insert the file in the HTML following the instructions you cite. But either I get effectively "