我喜欢有一个包含多个目标受众内容的 docbook xml 文档。是否有一个过滤器可以让我过滤掉“高级”用户才需要的东西?
level 属性是我发明的,用来表达我的想法。
<?xml version="1.0"?>
<book>
<title lang="en">Documentation</title>
<chapter id="introduction" level="advanced">
<title>Introduction for advanced users</title>
</chapter>
<chapter id="introduction" level="basic">
<title>Introduction for basic users</title>
</chapter>
<chapter id="ch1">
<para level="basic">Just press the button</para>
<para level="advanced">
Go to preferences to set your
needs and then start the process
by pressing the button.
</para>
</chapter>
</book>