aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-06-07 19:44:22 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-06-07 19:44:22 +0000
commit3bb5364812ac0013260f9add43bacd7b4ef9169d (patch)
treeb5cea4ccf724183128847e9eb962d5e6f558d62f
parent0f205e2127a17a3f1e3fe642d2215a55930a8978 (diff)
downloaddoc-3bb5364812ac0013260f9add43bacd7b4ef9169d.tar.gz
doc-3bb5364812ac0013260f9add43bacd7b4ef9169d.zip
- Add namespace declarations to entities
Notes
Notes: svn path=/projects/db5/; revision=41860
-rw-r--r--en_US.ISO8859-1/books/arch-handbook/mac.ent44
-rw-r--r--zh_CN.GB2312/books/arch-handbook/mac.ent40
2 files changed, 42 insertions, 42 deletions
diff --git a/en_US.ISO8859-1/books/arch-handbook/mac.ent b/en_US.ISO8859-1/books/arch-handbook/mac.ent
index e05ac48e87..76a5938a76 100644
--- a/en_US.ISO8859-1/books/arch-handbook/mac.ent
+++ b/en_US.ISO8859-1/books/arch-handbook/mac.ent
@@ -3,11 +3,11 @@
<!ENTITY mac.mpo "mpo">
<!ENTITY mac.thead '
- <colspec colname="first" colwidth="0"/>
- <colspec colwidth="0"/>
- <colspec colname="last" colwidth="0"/>
+ <colspec xmlns="http://docbook.org/ns/docbook" colname="first" colwidth="0"/>
+ <colspec xmlns="http://docbook.org/ns/docbook" colwidth="0"/>
+ <colspec xmlns="http://docbook.org/ns/docbook" colname="last" colwidth="0"/>
- <thead>
+ <thead xmlns="http://docbook.org/ns/docbook">
<row>
<entry>Parameter</entry>
<entry>Description</entry>
@@ -17,14 +17,14 @@
'>
<!ENTITY mac.externalize.paramdefs '
- <paramdef>struct label *<parameter>label</parameter></paramdef>
- <paramdef>char *<parameter>element_name</parameter></paramdef>
- <paramdef>struct sbuf *<parameter>sb</parameter></paramdef>
- <paramdef>int <parameter>*claimed</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">struct label *<parameter>label</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">char *<parameter>element_name</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">struct sbuf *<parameter>sb</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">int <parameter>*claimed</parameter></paramdef>
'>
<!ENTITY mac.externalize.tbody '
- <tbody>
+ <tbody xmlns="http://docbook.org/ns/docbook">
<row>
<entry><parameter>label</parameter></entry>
<entry>Label to be externalized</entry>
@@ -49,11 +49,11 @@
</tbody>
'>
-<!ENTITY mac.externalize.para "
- <para>Produce an externalized label based on the label structure passed.
+<!ENTITY mac.externalize.para '
+ <para xmlns="http://docbook.org/ns/docbook">Produce an externalized label based on the label structure passed.
An externalized label consists of a text representation of the label
contents that can be used with userland applications and read by the
- user. Currently, all policies' <function>externalize</function> entry
+ user. Currently, all policies&apos; <function>externalize</function> entry
points will be called, so the implementation should check the contents
of <parameter>element_name</parameter> before attempting to fill in
<parameter>sb</parameter>. If
@@ -62,17 +62,17 @@
if an error occurs while externalizing the label data. Once the policy
fills in <parameter>element_data</parameter>, <varname>*claimed</varname>
should be incremented.</para>
-">
+'>
<!ENTITY mac.internalize.paramdefs '
- <paramdef>struct label *<parameter>label</parameter></paramdef>
- <paramdef>char *<parameter>element_name</parameter></paramdef>
- <paramdef>char *<parameter>element_data</parameter></paramdef>
- <paramdef>int *<parameter>claimed</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">struct label *<parameter>label</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">char *<parameter>element_name</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">char *<parameter>element_data</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">int *<parameter>claimed</parameter></paramdef>
'>
<!ENTITY mac.internalize.tbody '
- <tbody>
+ <tbody xmlns="http://docbook.org/ns/docbook">
<row>
<entry><parameter>label</parameter></entry>
<entry>Label to be filled in</entry>
@@ -96,9 +96,9 @@
</tbody>
'>
-<!ENTITY mac.internalize.para "
- <para>Produce an internal label structure based on externalized label data
- in text format. Currently, all policies' <function>internalize</function>
+<!ENTITY mac.internalize.para '
+ <para xmlns="http://docbook.org/ns/docbook">Produce an internal label structure based on externalized label data
+ in text format. Currently, all policies&apos; <function>internalize</function>
entry points are called when internalization is requested, so the
implementation should compare the contents of
<parameter>element_name</parameter> to its own name in order to be sure
@@ -108,4 +108,4 @@
<parameter>element_name</parameter> does not match its own name, or when
data can successfully be internalized, in which case
<varname>*claimed</varname> should be incremented.</para>
-">
+'>
diff --git a/zh_CN.GB2312/books/arch-handbook/mac.ent b/zh_CN.GB2312/books/arch-handbook/mac.ent
index f16cc59b68..55052253b1 100644
--- a/zh_CN.GB2312/books/arch-handbook/mac.ent
+++ b/zh_CN.GB2312/books/arch-handbook/mac.ent
@@ -4,11 +4,11 @@ $FreeBSD$ -->
<!ENTITY mac.mpo "mpo">
<!ENTITY mac.thead '
- <colspec colname="first" colwidth="0"/>
- <colspec colwidth="0"/>
- <colspec colname="last" colwidth="0"/>
+ <colspec xmlns="http://docbook.org/ns/docbook" colname="first" colwidth="0"/>
+ <colspec xmlns="http://docbook.org/ns/docbook" colwidth="0"/>
+ <colspec xmlns="http://docbook.org/ns/docbook" colname="last" colwidth="0"/>
- <thead>
+ <thead xmlns="http://docbook.org/ns/docbook">
<row>
<entry>参数</entry>
<entry>说明</entry>
@@ -18,14 +18,14 @@ $FreeBSD$ -->
'>
<!ENTITY mac.externalize.paramdefs '
- <paramdef>struct label *<parameter>label</parameter></paramdef>
- <paramdef>char *<parameter>element_name</parameter></paramdef>
- <paramdef>struct sbuf *<parameter>sb</parameter></paramdef>
- <paramdef>int <parameter>*claimed</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">struct label *<parameter>label</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">char *<parameter>element_name</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">struct sbuf *<parameter>sb</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">int <parameter>*claimed</parameter></paramdef>
'>
<!ENTITY mac.externalize.tbody '
- <tbody>
+ <tbody xmlns="http://docbook.org/ns/docbook">
<row>
<entry><parameter>label</parameter></entry>
<entry>将用外部形式表示的标记</entry>
@@ -48,25 +48,25 @@ $FreeBSD$ -->
</tbody>
'>
-<!ENTITY mac.externalize.para "
- <para>根据传入的标记结构,产生一个以外部形式表示的标记。
+<!ENTITY mac.externalize.para '
+ <para xmlns="http://docbook.org/ns/docbook">根据传入的标记结构,产生一个以外部形式表示的标记。
一个外部形式标记,是标记内容的文本表示,它由用户级的应用程序使用,是用户可读的。
目前的MAC实现方案将依次调用策略的相应入口函数,因此,
具体策略的实现代码,需要在填写sb之前,先检查element_name中指定的名字。
如果element_name中的内容与你的策略名字不相符,则直接返回0。
仅当转换标记数据的过程中出现错误时,才返回非0值。
一旦策略决定填写element_data,递增*claim的数值。</para>
-">
+'>
<!ENTITY mac.internalize.paramdefs '
- <paramdef>struct label *<parameter>label</parameter></paramdef>
- <paramdef>char *<parameter>element_name</parameter></paramdef>
- <paramdef>char *<parameter>element_data</parameter></paramdef>
- <paramdef>int *<parameter>claimed</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">struct label *<parameter>label</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">char *<parameter>element_name</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">char *<parameter>element_data</parameter></paramdef>
+ <paramdef xmlns="http://docbook.org/ns/docbook">int *<parameter>claimed</parameter></paramdef>
'>
<!ENTITY mac.internalize.tbody '
- <tbody>
+ <tbody xmlns="http://docbook.org/ns/docbook">
<row>
<entry><parameter>label</parameter></entry>
<entry>将被填充的标记</entry>
@@ -89,10 +89,10 @@ $FreeBSD$ -->
</tbody>
'>
-<!ENTITY mac.internalize.para "
- <para>根据一个文本形式的外部表示标记数据,创建一个内部形式的标记结构。
+<!ENTITY mac.internalize.para '
+ <para xmlns="http://docbook.org/ns/docbook">根据一个文本形式的外部表示标记数据,创建一个内部形式的标记结构。
目前的MAC方案将依次调用所有策略的相关入口函数,来响应标记的内部转换请求,
因此,实现代码必须首先通过比较element_name中的内容和自己的策略名字,
来确定是否需要转换element_data中存放的数据。
类似的,如果名字不匹配或者数据转换操作成功,该函数返回0,并递增*claimed的值。</para>
-">
+'>