问题标签 [docbook-5]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
macros - 如何在 DocBook 5.0 中正确包含常量字符串?
我正在开发的软件有用 DocBook 4.2 和 DTD 编写的文档,我想迁移到 5.0 并放弃 DTD。大部分内容都已迁移,但最后剩下的一件事是版本宏。我曾经有一个名为 version.ent 的文件(由 Makefile 生成):
然后在我想要包含软件版本的每个文件中引用该文件一次:
有了这些,就可以做这样的事情:
在不使用 DTD 的情况下,应该如何在 DocBook 5.0 中实现这种机制?
xml - Docbook中自建元素下的元素评估
我目前正在处理一些复杂的 DocBook 文档,特别是其 xslt 到 FO 的转换(以及从那里到 PDF)。
在这种情况下,我正在努力解决工作流程的某些特征,并希望这里有人可以给我一些提示。
我有一个名为 description 的自定义元素,它在我的架构中定义如下:
使用此元素可以正常工作,然后在我的样式表中我想将元素的内容放入一个表格中,如下所示:
基本上,一切正常,但这里的棘手点是描述元素通常包含其下的一些元素,这些元素不再被评估,而仅被视为文本。这意味着文本被复制到表格中,但样式表不生成段落:-(
我可以在我的样式表中添加对元素的显式处理,但我想必须有一种更简单的方法,因为这种处理已经由 DocBook 样式表本身实现。
那么,是否有人知道如何说服样式表也评估我的 custome 元素下的元素?
在此先感谢诺伯特
docbook - 如何将文档从版本 4 转换为 5
是否有将 docbook 4.3 书籍转换为最新 DocBook 5 的自动方式(或使用最少的手动更正)?
html - 是否可以在 DocBook 5 中创建和使用模板结构?
我正在使用 DocBook 5。是否可以创建具有某些结构的模板(我们称之为“mytable”),例如:
并重用“mytable”并将变量传递给模板?所以从概念上讲,我可以这样做:
依此类推,每一个都扩展为一个“informaltable”元素。
docbook - 具有多列的部分
我想要一个包含多 (2) 列的部分(或类似部分),并用目录填充它,以便项目分布在列上。
作为 LaTeX 中的参考,这可以通过以下方式完成:
xml - 如何在 Docbook 中进行多通道处理
我是 docbook 的新手,但找不到一个像样的方法来一步完成多重转换;需要对结果进行一些后处理。我想在第一步中在 docbook xml 结构中添加一个带有标题和一些文本的部分,然后在第二步中生成转换以获取我的 pdf 文件
simpleXMLtoXML.xsl
我的 XSl 文件生成 PDF
谢谢你的帮助。
xml - docbook 中没有分页符
我为我正在写的一本书采用了 docbook 的方式。很多美好的事情,但是,经过大量的工作,我开始后悔了。我使用 XMLmind 进行渲染部分(和 Bbedit 进行编辑)。最后一滴是当我意识到没有简单的方法在文档文档中插入分页符时。也就是说,除非您研究了所有 XSL 文档并尝试使用与 XMLmind 不同的样式表。
从http://www.sagehill.net/docbookxsl/PageBreaking.html我看到我应该把
某处,和
我需要强制分页的地方。但重点是:这是由 XMLmind 处理的 xml 文件的标头:
应该在哪里添加模板?
回答您的问题,原始代码是:
我想在第一部分和第二部分之间插入一个分页符。
docbook - 如何为非技术性写作定制 DocBook?
我知道Text Encoding Initiative的指南为非技术文本(如诗歌、小说等)定义了一个 XML 词汇表,但如果可能的话,我想坚持使用 DocBook,即使它没有用于对话、诗歌的 XML 元素, ETC。
xml - How can both XML declaration and DTD be optional in the spec if they are both prerequisites to validity and well-formedness of an XML document?
Chewing my way through the latest XML 1.0 specification, and an XML document is defined as follows:
The spec states that
-
[Definition: An XML document is valid if it has an associated document type declaration and if the document complies with the constraints expressed in it.]
and well-formed if "It meets all the well-formedness constraints given in this specification." (see definition).
The definition of document type declaration has two well-formedness constraints and one validity constraint so if it's omitted the XML document cannot be considered a valid.
There is a minimal XML document example in there,
and I understand why it is well-formed but not valid, but it still doesn't explain how the DTD can be optional if it is required for an XML document to be valid.
Background for this question
Started reading the XML spec because wanted to get a better understanding before getting into DocBook 5 but it's manual states that "DocBook V5.0 is thus defined using a powerful schema language called RELAX NG" so it "does not depend on DTDs anymore", and the example shown completely omits the DTD too.