From 22a93b59c3868665c59bc3ff27c1d571b721616c Mon Sep 17 00:00:00 2001
From: YuCheng Hu The arbitrary values can accumulate in a document over time and
- have meaning only to the original author. However, you can use a
- set of standard metadata attributes on content instead of them.
- Rather than being suitable for filtering only, you can use the
- metadata for filtering, flagging, and future search and retrieval
- processes, because it is process-independent and merely provides
- information about the content. The following attributes are intended for conditional processing,
- and are available on most elements:
Each attribute takes zero or more space-delimited string values. For - example, you can use the product attribute to identify that an - element applies to two particular products.
-Coordinate the values you use with your team, so that all the - information can be consistently processed with the same value - definitions.
-At processing time, specify the values you want to exclude and the - values you want to flag.
-You can define what to do with these values in a filtering file. - Open the ditaval file to edit it, and input the actions to take - for the properties and revisions you want to process.
-At processing time, you can specify the filter file by entering
- the
Specify the attribute and value you want to exclude. For - example, exclude when audience="admin". For an element to be - excluded, all the values in at least one attribute must be set - to exclude. For example, if a paragraph applies to two - audiences (audience="admin programmer") both values must be set - to exclude in the filtering file before the paragraph is - excluded.
-You cannot exclude revisions, only choose whether or not to flag - them.
-Specify the attribute and value you want to flag. On output, the - element will be flagged with the image you specify, or, in the - case of revisions, with the method you specify. For an element - to be flagged, at least one flagged value must be present. For - example, if a paragraph applies to two audiences, either one - set to flag will flag the element.
-Given this source:
+ 随着时间和原始作者的意图,可以在文档中积累任何变量特性。
+ 但是,你可以使用一些标准的 metadata 特性来替代这些变量特性,而不仅仅局限于过滤,当然你也可以用这些 metadata特性来过滤、查找和恢复处理;因为它们是单独处理的,同时也提供了关于内容的相关信息。
+
+ 下面的一特性被考虑条件处理并适用于几乎所有的元素:
+
+
+
+ 每一个特性使用空格来分开字符串变量。 + 例如,你可以使用产品特性来识别被用于两个特定产品的同一元素。 +
++ 协调好你项目小组和你使用的变量,那么所有的信息可以被考虑为同一的内容定义来处理。 +
++ 在处理时,可以使用特殊的变量来标记你不希望处理的和你希望特殊表示的。 +
++ 你可以在一个过滤文件中定义如何处理一些变量。 + 在 ditaval 文件中来编辑和输入到你希望的处理条件中来说明处理内容和版本。 +
+
+ 在处理时,你可以通过输入
+ 你希望忽略掉的一些特殊的特性和变量。 + 例如,当 audience="admin"时忽略掉。 + 当一个元素被忽略掉时候,其中的所有变量中必须是所有特性被设置为忽略。 + 例如,如果有一个段落适用于2个不同的用户 (audience="admin programmer") 这2个变量必须在过滤器里面都被设置为忽略后这一个段落才能被忽略不处理。 +
++ 你不可以通过选择而不是标记的方式来忽略版本不处理。 +
++ 指定你希望标记的特性和变量。 + 在输出候,元素将会使用你指定的图片来标记或使用你指定版本标记。 + 对于一个被标记的元素,至少但却需要一个标记变量。 + 例如,如果一个段落被指定为2个用户,任何一个用户被标记了,那么这个元素也会被标记。 +
+假定下面的代码:
+
And this filter file:
You should get this output:
The first list item remains because it applies to admin audience - and programmer audience. The second list item is removed - because it applies to programmers only, and programmer-specific - information has been excluded. The third list item is removed - because it applies to programmers as well: the fact that it - applies to the Unix platform does not save it from exclusion. - The fourth list item is flagged based on its platform - attribute.
-添加这个过滤文件
+ 你应该会得到下面的输出:
+
+
+
+ 第一个列出的项目,因为这个使用于 admin 用户和 programmer 用户。 + 第二个列出的项目被删除了,因为仅仅适用于 programmer 用户,因为 programmer 用户特定的的信息被忽略了。 + 第三个列出的项目被删除了,因为这个也仅仅适用于 programmer 用户。 + 事实上,这个适用于Unix平台的忽略条件而没有被忽略。 + 第四个列出的项目被标记了平台特性。 +
+