docbook

DocBook 5 rendering without abbrev tag

谁说我不能喝 提交于 2019-12-25 02:55:45
问题 My DocBook 5 document contains glossentry tags that contain abbrev tags. The abbrev tags do not seem to contribute anything whatsoever to the rendered HTML. I'm new to DocBook and XSLT. Where do I need to start looking to change this? I've been looking through the docs and aside from being surprised by this apparently being the default behaviour, I'm not sure where to look next to troubleshoot. Setup: My DocBook file starts simply with <book xmlns:xl="http://www.w3.org/1999/xlink"> . I point

Certain element for docbook table does not get written by stylesheet

时间秒杀一切 提交于 2019-12-25 02:29:26
问题 I'm currently using a XSLT stylesheet to transform an XML document into a docbook document. The document has to contain quite a few tables and some of them have pretty complex formatting. When writing docbook, I will usually format table cells by adding a description like <?dbhtml bgcolor="#EEEEEE" ?> and this usually works fine. However, I did not find a way to print this part of the document out from the transformation process. Here is one of the templates: <xsl:template match="//ns:chapter

Source code pretty printer with DocBook or XML output?

邮差的信 提交于 2019-12-23 00:29:31
问题 Is there some source code pretty printer out there that is able to generate DocBook, or at least XML output from my C sources? I want to include some good looking source code examples in my DocBook document. 回答1: I'm not sure what you mean by a pretty-printer that generates XML, but if you want code examples in DocBook documents to be nicely colourized when transformed to HTML or FO/PDF output, take a look at XSLTHL. This is an XSLT extension module (written in Java) that decorates the

DocBook-XML and webhelp

岁酱吖の 提交于 2019-12-22 08:34:48
问题 Following the steps mentioned here: http://docbook.sourceforge.net/release/xsl/current/webhelp/docs/ch02s01.html ant webhelp -Doutput-dir=test-ouput (ouput is a typo in the documentation I think, but I tested it with test-ouput and test-output with the same result) Tested with Windows 8 and Windows 8.1 java version "1.7.0_51" ant 1.8.2 and ant 1.9.3 docbook-xsl-1.78.1 xerces-2_11_0 saxon6-5-5 Any idea where I should look towards? Output: Buildfile: D:\apps\docbook-xsl-1.78.1\webhelp\build.xml

find next-to-last node with xpath

我怕爱的太早我们不能终老 提交于 2019-12-22 04:39:17
问题 I have a XML document with chapters and nested sections . I am trying to find, for any section, the first second-level section ancestor. That is the next-to-last section in the ancestor-or-self axis. pseudo-code: <chapter><title>mychapter</title> <section><title>first</title> <section><title>second</title> <more/><stuff/> </section> </section> </chapter> my selector: <xsl:apply-templates select="ancestor-or-self::section[last()-1]" mode="title.markup" /> Of course that works until last()-1

DocBook to Word Conversion?

社会主义新天地 提交于 2019-12-21 04:08:12
问题 I need some help with conversion of DocBook files to Microsoft Word files. Do I need an XSL file for the transformation? 回答1: Yes, you do need an XSL file. You can get XSL files for DocBook from the free DocBook XML distribution. Then, you run a free XSLT transformer such as Saxon. If you run Saxon from a command line, you give it the name of your DocBook file, and the name of one of the stylesheets, and it will transform your file according to the rules in the stylesheet. What you need to do

Getting an unwanted second title page when processing docbook to PDF via fop

空扰寡人 提交于 2019-12-13 04:42:21
问题 I'm constructing a standard book format in dockbook xml then formatting it to PDF via fop. When I construct the final PDF however i'm getting a second broken title page that has the title and the inline image again. On this page the title is justified across the whole page (so spread oddly) and the image is off-centre. The title also has an additional colon after it that is not present in the book title. If I remove the title page using XSL parameters, the title page is removed, but the

DocBook vs. HTML - difference

倾然丶 夕夏残阳落幕 提交于 2019-12-12 04:36:26
问题 What is practical difference between HTML5 and DocBook? By the word "practical" I mean differences in workflow. This question is about difference . I'm not asking what is better. So, this question is about the facts , and so, I hope it would not be closed as opinion-based . 回答1: DocBook separates the content and its formatting. With single XML source you can produce: Various flavors of the same format Single HTML page Set of HTML pages with TOC, breadcrumbs, back of the book index Output in

Overriding match=“*” template from DocBook XSL

萝らか妹 提交于 2019-12-11 23:55:43
问题 DocBook XSL includes a template that matches all element <xsl:template match="*"> <xsl:message> .... </xsl:message> </xsl:template> I need to override it with another template because my source XML tree contains more that just the DoocBook XML. If I specify such a template in the file it overrides all templates in DocBook XSL. It seems like that all imported templates, are prioritized on the order of import only, and NOT according to how specific the template is. <?xml version='1.0'?> <xsl

Saxon doesn't support `saxon:output` anymore

吃可爱长大的小学妹 提交于 2019-12-11 19:44:07
问题 I'm trying to use Saxon 9.1.0.8 HE to apply (recent) Docbook XSL, and getting this: Don't know how to chunk with SAXON 9.1.0.8 from Saxonica Processing terminated by xsl:message at line 46 in chunker.xsl Docbook XSL source claims that: <!-- This stylesheet works with XSLT implementations that support --> <!-- exsl:document, saxon:output, or Xalan's redirect:write --> <!-- Note: Only Saxon 6.4.2 or later is supported. --> ...and a visit to line 46 mentioned in the error message (which tests