From 47dfa03e7ea41018009c68916dedc19eb0f6d41e Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sun, 30 May 2010 20:55:17 +0000 Subject: [PATCH] =?UTF-8?q?=E7=BF=BB=E8=AF=91=E4=BA=86=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E7=BC=96=E8=AF=91=E7=9A=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit +YUCHENG HU+ git-svn-id: https://svn.code.sf.net/p/hawebs/svn@52 a2543c7e-f6e9-4f8a-8bff-1ffc34733512 --- hadocs/dita-ot/trunk/out/userguide/dita.list | 4 +- .../trunk/out/userguide/dita.xml.properties | 2 +- .../trunk/out/userguide/tasks/condproc.html | 300 +++++++++++------- 3 files changed, 180 insertions(+), 126 deletions(-) diff --git a/hadocs/dita-ot/trunk/out/userguide/dita.list b/hadocs/dita-ot/trunk/out/userguide/dita.list index 038dbc25..e3a0951f 100644 --- a/hadocs/dita-ot/trunk/out/userguide/dita.list +++ b/hadocs/dita-ot/trunk/out/userguide/dita.list @@ -1,4 +1,4 @@ -#Tue May 25 23:18:32 EDT 2010 +#Sun May 30 16:54:09 EDT 2010 copytosourcelist= hreftargetslist=tasks/info/hacopyright.dita,tasks/condproc.dita,tasks/info/apachelicense.dita,tasks/flagcontent.dita,tasks/proccond.dita,tasks/filtcontent.dita,tasks/showrev.dita fullditatopicfile=fullditatopic.list @@ -37,7 +37,7 @@ codereffile=coderef.list keylist= codereflist= user.input.file.listfile=usr.input.file.list -user.input.dir=D\:\\workdir\\hawebs\\resources\\hadocs\\projects\\hadocs\\dita-ot\\trunk\\src\\userguide +user.input.dir=D\:\\workdir\\hawebs\\resources\\hadocs\\projects\\dita-ot\\trunk\\src\\userguide uplevels= tempdirToinputmapdir.relative.value= conrefpushfile=conrefpush.list diff --git a/hadocs/dita-ot/trunk/out/userguide/dita.xml.properties b/hadocs/dita-ot/trunk/out/userguide/dita.xml.properties index 53f5f2a1..c2ab15c9 100644 --- a/hadocs/dita-ot/trunk/out/userguide/dita.xml.properties +++ b/hadocs/dita-ot/trunk/out/userguide/dita.xml.properties @@ -40,7 +40,7 @@ usr.input.file.list - D:\workdir\hawebs\resources\hadocs\projects\hadocs\dita-ot\trunk\src\userguide + D:\workdir\hawebs\resources\hadocs\projects\dita-ot\trunk\src\userguide conrefpush.list diff --git a/hadocs/dita-ot/trunk/out/userguide/tasks/condproc.html b/hadocs/dita-ot/trunk/out/userguide/tasks/condproc.html index 7ab833fa..fa325a87 100644 --- a/hadocs/dita-ot/trunk/out/userguide/tasks/condproc.html +++ b/hadocs/dita-ot/trunk/out/userguide/tasks/condproc.html @@ -6,10 +6,10 @@ - - - - + + + + @@ -25,96 +25,110 @@ -

条件处理

+

条件处理

- - -

Conditional processing means filtering or flagging information - based on processing-time criteria, such as a target audience, platform, - or product.

- -

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:
product
- -
The product that is the subject of the content, or to which the - content applies.
-
platform
-
The - platform on which the product is deployed.
-
audience
-
The intended audience for the content.
- -
rev
-
The revision or draft during - which the content was added or changed. You can only flag - revisions, not exclude them.
-
otherprops
-
Anything else.
-
-
+

条件处理 (conditional processing) 用于在发现处理时过滤和标记内容,例如目标用户、平台或产品。

-

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.

+

+ 随着时间和原始作者的意图,可以在文档中积累任何变量特性。 + 但是,你可以使用一些标准的 metadata 特性来替代这些变量特性,而不仅仅局限于过滤,当然你也可以用这些 metadata特性来过滤、查找和恢复处理;因为它们是单独处理的,同时也提供了关于内容的相关信息。 +

-

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.

+
是关于内容的主题,或可应用于那些内容。
-

Setting conditions

- -

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 /filter:{args.input.valfile} output option - to name the ditaval file that has these entries.

+
用于说明产品可以部署在那里。
-
+ + +
目标用户
-

Excluding information

- -

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.

+ + +
版本
-
+
在内容修改或添加的时形成正式版本或草稿版本。你可以仅标识版本而使用他们。
-

Flagging information

- -

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.

+ + +
其他特性
-
+
任意。
-

Example

- -
Given this source:
<ul>
+			
+		
+ +
+ +

+ 每一个特性使用空格来分开字符串变量。 + 例如,你可以使用产品特性来识别被用于两个特定产品的同一元素。 +

+ +

+ 协调好你项目小组和你使用的变量,那么所有的信息可以被考虑为同一的内容定义来处理。 +

+ +

+ 在处理时,可以使用特殊的变量来标记你不希望处理的和你希望特殊表示的。 +

+ +

设定条件

+ +

+ 你可以在一个过滤文件中定义如何处理一些变量。 + 在 ditaval 文件中来编辑和输入到你希望的处理条件中来说明处理内容和版本。 +

+ +

+ 在处理时,你可以通过输入/filter:{args.input.valfile}来指定过滤文件来确定输出选项。 +

+ +
+ +

忽略信息

+ +

+ 你希望忽略掉的一些特殊的特性和变量。 + 例如,当 audience="admin"时忽略掉。 + 当一个元素被忽略掉时候,其中的所有变量中必须是所有特性被设置为忽略。 + 例如,如果有一个段落适用于2个不同的用户 (audience="admin programmer") 这2个变量必须在过滤器里面都被设置为忽略后这一个段落才能被忽略不处理。 +

+ +

+ 你不可以通过选择而不是标记的方式来忽略版本不处理。 +

+ +
+ +

标记信息

+ +

+ 指定你希望标记的特性和变量。 + 在输出候,元素将会使用你指定的图片来标记或使用你指定版本标记。 + 对于一个被标记的元素,至少但却需要一个标记变量。 + 例如,如果一个段落被指定为2个用户,任何一个用户被标记了,那么这个元素也会被标记。 +

+ +
+ +

示例

+ +
假定下面的代码: +
<ul>
   <li audience="admin programmer">
     This is important for lots of reasons
   </li> 
@@ -128,56 +142,96 @@
     This applies on Unix
   </li>
 </ul>
+ +
+ +
添加这个过滤文件 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
特性变量行为标记
audienceprogrammerexclude 
platformunixflag../images/ngunix.gif
-
And this filter file: -
- - - - - - - - - - - - - - - - - - - - - - -
AttributeValueActionFlag
audienceprogrammerexclude 
platformunixflag../images/ngunix.gif
-
-
-
You should get this output:
  • This is - important for lots of reasons
  • -
  • This applies on Unix
  • - -
-
-
+
-

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.

-
+
-
+ 你应该会得到下面的输出: + +
+
    +
  • 这个因为很多原因而很重要
  • + +
  • 这个使用于Unix
  • + +
+ +
+ + +
+ + +

+ + 第一个列出的项目,因为这个使用于 admin 用户和 programmer 用户。 + + 第二个列出的项目被删除了,因为仅仅适用于 programmer 用户,因为 programmer 用户特定的的信息被忽略了。 + + 第三个列出的项目被删除了,因为这个也仅仅适用于 programmer 用户。 + + 事实上,这个适用于Unix平台的忽略条件而没有被忽略。 + + 第四个列出的项目被标记了平台特性。 + +

+ +
+ +