docbook

DocBook-XML and webhelp

自闭症网瘾萝莉.ら 提交于 2019-12-05 12:05:40
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 validate: clean: [delete] Deleting directory D:\apps\docbook-xsl-1.78.1\webhelp\test-ouput chunk:

find next-to-last node with xpath

点点圈 提交于 2019-12-05 04:32:21
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 isn't defined (the current node is the first section). If the current node is below the second section, i

Creating documentation with maven

ⅰ亾dé卋堺 提交于 2019-12-04 04:35:06
I'm just in the middle of revisiting maven. Our team had a bad experience when we last looked at this, as it was during the period when maven was rearchitecting from 1.x to 2.x, so a lot of the dependencies we needed hadn't been moved across to the new repositories. However, I have the time to reconsider now. I am interested in using maven and either LaTeX or DocBook for creating documentation, and I was wondering if anyone had any experiences to share, project/module structure, good plugins to use, etc... Many thanks :-) Edit: Just to clarify, I was looking to write a technical article/book,

Convert word (.docx) to docbook

此生再无相见时 提交于 2019-12-04 03:18:13
I have been tasked to find a way to convert a large amount of .docx files to docbook 5. Currently, we open the file in openoffice and save to docbook. This is a time consuming task, but I am confident there is a better way. These files will then be processed further to our custom relax NG schema. Therefore this conversion does not need to be flawless. I have looked around, and will continue to investigate some leads, but have not found anything usefull. looking at Convert doc/docx to semantic HTML they have suggested upCast , but this does not seem appropriate to my needs. I am looking for

How to generate pdf from docbook 5.0

感情迁移 提交于 2019-12-03 04:25:26
问题 I've written a docbook 5.0 document with the header: <?xml version="1.0" encoding="UTF-8"?> <book version="5.0" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:svg="http://www.w3.org/2000/svg" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns/docbook"> and docbook2pdf on Ubuntu 9.10 prints many error messages and doesn't do any pdf document.

从 Word 到 Docbook, 最后用 Pandoc, 让程序员爱上写文档

妖精的绣舞 提交于 2019-12-03 03:32:25
写文档一直是程序员非常讨厌的工作, 甚至和改需求一样令人厌烦. 在程序员眼里比写程序还难, 即便强制执行下来文档质量也很难让人满意. 相信大多数公司写文档都是用 Word, 笔者也是用了 Word 写了好几个项目的文档. 架构, 设计, 运维等好几份, 呵呵, 即便是写的再好, 交给客户也基本是不看的. 一个文档是项目组内好几个成员编写的, 大家各写各的模块, 各自的实现, 然后一起合并, 合并时修改字体, 字号, 目录等, 第一次合并还好, 再升级几个版本后, 大家改了哪里, 没改哪里, 根本看不出来. 于是我就开始找一些文档工具. 个人一直看 Spring 的项目文档, Pdf 格式和在线 Html 格式都写的非常漂亮. 相信大家都很熟悉. 如下: 于是锁定了 Docbook 这个文档工具. Docbook 是支持 Maven 的, 在 pom 的 plugins 中加上支持 Docbook 的 plugin. ''' <plugin> <groupId>org.jboss.maven.plugins</groupId> <artifactId>maven-jdocbook-plugin</artifactId> <version>2.3.8</version> <extensions>true</extensions> <dependencies> <dependency>

best way to implement custom pretty-printers

自作多情 提交于 2019-12-03 01:27:21
Customizing pprint.PrettyPrinter The documentation for the pprint module mentions that the method PrettyPrinter.format is intended to make it possible to customize formatting. I gather that it's possible to override this method in a subclass, but this doesn't seem to provide a way to have the base class methods apply line wrapping and indentation. Am I missing something here? Is there a better way to do this (e.g. another module)? Alternatives? I've checked out the pretty module, which looks interesting, but doesn't seem to provide a way to customize formatting of classes from other modules

How to generate pdf from docbook 5.0

↘锁芯ラ 提交于 2019-12-02 17:46:53
I've written a docbook 5.0 document with the header: <?xml version="1.0" encoding="UTF-8"?> <book version="5.0" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:svg="http://www.w3.org/2000/svg" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:db="http://docbook.org/ns/docbook"> and docbook2pdf on Ubuntu 9.10 prints many error messages and doesn't do any pdf document. The errors are: openjade:test.xml:2:0:E: prolog can't be omitted unless CONCUR NO and LINK EXPLICIT NO

xslt flattening out child elements in a DocBook para element

女生的网名这么多〃 提交于 2019-12-02 16:41:27
问题 I am transforming some generated DocBook xml (from Doxygen) to my companies xml which is really a subset of DocBook. There is a para element like the following: <para>some text..... <literallayout> </literallayout> more text.... <table> ... </table> even more text <table>...</table> <literallayout>text also look here</literlayout> more text <link xlink:href="http://someurl.com"> </para> As our subset of docbook does NOT like block elements within a para, like table, or figure, i would like to

Can ENTITY declarations be nested in referenced XML files?

巧了我就是萌 提交于 2019-12-01 10:32:31
I'm working on a rather large DocBook XML document. The main book has the chapters but includes all the subsections by reference using entities. Something like this: main.book.xml : <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ <!ENTITY section1 SYSTEM "../fragments/section1.xml"> <!ENTITY section2 SYSTEM "../fragments/section2.xml"> <!ENTITY section3 SYSTEM "../fragments/section3.xml"> <!ENTITY section3_a SYSTEM "../fragments/section3_a.xml"> <!ENTITY section3_b SYSTEM "../fragments/section3_b.xml"> <!ENTITY section3_c