docbook

Can ENTITY declarations be nested in referenced XML files?

一个人想着一个人 提交于 2019-12-01 09:11:08
问题 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 "..

Convert doc/docx to semantic HTML

北城余情 提交于 2019-12-01 01:55:49
I would like to convert doc/docx documents to semantic HTML. Some wishes/requirements: Semantic HTML such that headers in the document are <h1>, <h2> etc., tables are <table> and so forth. Should preferably be possible to handle headings, lists, tables and images. Graphs and math formulas is a nice extra. • Doesn't have to be converted straight from doc/docx to html, could use an intermediary format, such as xml or docbook. • Should work programatically, and with large number of documents. The closest thing to a solution I've found so far is http://holloway.co.nz/docvert/index.html , but

How do I create JAXB bindings for docbook

£可爱£侵袭症+ 提交于 2019-11-29 14:43:19
When I run xjc against docbook.xsd , I get a lot of errors: parsing a schema... [ERROR] Property "Revision" is already defined. Use <jaxb:property> to resolve this conflict. line 5965 of file:/C:/log/11/04/20/docbook-4.5/dbpoolx.xsd [ERROR] The following location is relevant to the above error line 521 of file:/C:/log/11/04/20/docbook-4.5/dbpoolx.xsd [ERROR] Element "seealsoie" shows up in more than one properties. line 1737 of file:/C:/log/11/04/20/docbook-4.5/dbhierx.xsd [ERROR] The following location is relevant to the above error line 1733 of file:/C:/log/11/04/20/docbook-4.5/dbhierx.xsd

DocBook macros?

偶尔善良 提交于 2019-11-29 07:25:21
Is there any way of defining macros (like tex macros o latex defines) in DocBook documents? DocBook is very verbose, and macros would help a lot. I didn't find them in quickstart tutorials. If so, could anyone provide a simple example or a link to? Thanks Not sure, if this is exactly what you want / if it full fills your requirements, but I'm thinking of ENTITYs. You can define them at the top (of your XML document, so general XML, nothing DocBook specific). As seen here for the 'doc.release.number' and 'doc.release.date'. But they can also be included through an separate file. As seen in the

How do I create JAXB bindings for docbook

风格不统一 提交于 2019-11-28 08:16:48
问题 When I run xjc against docbook.xsd , I get a lot of errors: parsing a schema... [ERROR] Property "Revision" is already defined. Use <jaxb:property> to resolve this conflict. line 5965 of file:/C:/log/11/04/20/docbook-4.5/dbpoolx.xsd [ERROR] The following location is relevant to the above error line 521 of file:/C:/log/11/04/20/docbook-4.5/dbpoolx.xsd [ERROR] Element "seealsoie" shows up in more than one properties. line 1737 of file:/C:/log/11/04/20/docbook-4.5/dbhierx.xsd [ERROR] The

What is the recommended toolchain for formatting XML DocBook? [closed]

安稳与你 提交于 2019-11-28 03:24:15
I've seen Best tools for working with DocBook XML documents , but my question is slightly different. Which is the currently recommended formatting toolchain - as opposed to editing tool - for XML DocBook? In Eric Raymond's 'The Art of Unix Programming' from 2003 (an excellent book!), the suggestion is XML-FO (XML Formatting Objects), but I've since seen suggestions here that indicated that XML-FO is no longer under development (though I can no longer find that question on StackOverflow, so maybe it was erroneous). Assume I'm primarily interested in Unix/Linux (including MacOS X), but I wouldn

DocBook macros?

假如想象 提交于 2019-11-28 01:08:33
问题 Is there any way of defining macros (like tex macros o latex defines) in DocBook documents? DocBook is very verbose, and macros would help a lot. I didn't find them in quickstart tutorials. If so, could anyone provide a simple example or a link to? Thanks 回答1: Not sure, if this is exactly what you want / if it full fills your requirements, but I'm thinking of ENTITYs. You can define them at the top (of your XML document, so general XML, nothing DocBook specific). As seen here for the 'doc

What is the recommended toolchain for formatting XML DocBook? [closed]

偶尔善良 提交于 2019-11-27 00:02:27
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I've seen Best tools for working with DocBook XML documents, but my question is slightly different. Which is the currently recommended formatting toolchain - as opposed to editing tool - for XML DocBook? In Eric Raymond's 'The Art of Unix Programming' from 2003 (an excellent book!