Skip to content

Commit 69475ed

Browse files
committed
cubrid : fix XML by converting para to simpara tags via script
1 parent f0c2526 commit 69475ed

File tree

4 files changed

+47
-55
lines changed

4 files changed

+47
-55
lines changed

reference/cubrid/book.xml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 68c2c871505aadf983f16113c5b077b335ce8d76 Maintainer: Luffy Status: ready -->
4-
5-
<book xml:id="book.cubrid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<!-- EN-Revision: 22492de2eede0a31a4ac486489d5475e1536354d Maintainer: Luffy Status: ready -->
4+
<book xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="book.cubrid">
65
<?phpdoc extension-membership="pecl" ?>
76
<title>CUBRID</title>
87
<titleabbrev>CUBRID</titleabbrev>
98

109
<preface xml:id="intro.cubrid">
1110
&reftitle.intro;
12-
<para>
11+
<simpara>
1312
这些函数可以让你访问CUBRID数据库服务。更多关于CUBRID的信息可以在<link xlink:href="&url.cubrid;">CUBRID</link>找到。
14-
</para>
15-
<para>
13+
</simpara>
14+
<simpara>
1615
在<link xlink:href="&url.cubrid.docs;">CUBRID 参考资料</link> 可以找到关于CUBRID的参考资料。
17-
</para>
16+
</simpara>
1817

1918
</preface>
2019

@@ -26,7 +25,6 @@
2625
&reference.cubrid.aliases;
2726

2827
</book>
29-
3028
<!-- Keep this comment at the end of the file
3129
Local variables:
3230
mode: sgml

reference/cubrid/configure.xml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: b8cb80460763c5a1f6546ef863bfd02fe8bd3657 Maintainer: Luffy Status: ready -->
4-
5-
<section xml:id="cubrid.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<!-- EN-Revision: 22492de2eede0a31a4ac486489d5475e1536354d Maintainer: Luffy Status: ready -->
4+
<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="cubrid.installation">
65
&reftitle.install;
76

8-
<para>
7+
<simpara>
98
&pecl.info;
109
<link xlink:href="&url.pecl.package;cubrid">&url.pecl.package;cubrid</link>.
11-
</para>
12-
<para>
10+
</simpara>
11+
<simpara>
1312
&pecl.windows.download;
14-
</para>
15-
<para>
13+
</simpara>
14+
<simpara>
1615
关于在 Linux 和 Windows 系统上的安装手册信息,请阅读包含在包中的这个文件<filename>build-guide.html</filename>。
17-
</para>
16+
</simpara>
1817

1918
</section>
20-
2119
<!-- Keep this comment at the end of the file
2220
Local variables:
2321
mode: sgml

reference/cubrid/examples.xml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 7c9f1adb4b7d55a7a37b0503ec895412a6ecc656 Maintainer: Luffy Status: ready -->
4-
5-
<chapter xml:id="cubrid.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
3+
<!-- EN-Revision: 22492de2eede0a31a4ac486489d5475e1536354d Maintainer: Luffy Status: ready -->
4+
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="cubrid.examples">
65
&reftitle.examples;
7-
<para>下面是一个在PHP和CUBRID建立连接的简单的例子。本节将覆盖最基本和最显著的特性。下面的代码需要连接CUBRID数据库,这意味着 CUBRID服务和 CUBRID Broker已经运行。</para>
8-
<para>下面用demodb数据库作为例子举例。默认在安装时就创建了。确认此数据库已经被创建。</para>
9-
6+
<simpara>下面是一个在PHP和CUBRID建立连接的简单的例子。本节将覆盖最基本和最显著的特性。下面的代码需要连接CUBRID数据库,这意味着 CUBRID服务和 CUBRID Broker已经运行。</simpara>
7+
<simpara>下面用demodb数据库作为例子举例。默认在安装时就创建了。确认此数据库已经被创建。</simpara>
8+
109
<example>
1110
<title>数据查询的例子</title>
1211
<programlisting role="php">
@@ -33,10 +32,10 @@
3332
* Connect to CUBRID Server. Do not make the actual connection, but
3433
* only retain the connection information. The reason for not making
3534
* the actual connection is to handle transaction more efficiently
36-
* in the 3-tier architecture.
35+
* in the 3-tier architecture.
3736
*/
3837
$cubrid_con = @cubrid_connect($host_ip, $host_port, $db_name);
39-
38+
4039
if (!$cubrid_con) {
4140
echo "Database Connection Error";
4241
exit;
@@ -49,7 +48,7 @@
4948
* Now make the actual connection to the CUBRID Server.
5049
*/
5150
$result = cubrid_execute($cubrid_con, $sql);
52-
51+
5352
if ($result) {
5453
/**
5554
* Get the column names from the result set created by the SQL query.
@@ -60,28 +59,28 @@
6059
*/
6160
$num_fields = cubrid_num_cols($result);
6261
/**
63-
* List the column names of the result set on the screen.
62+
* List the column names of the result set on the screen.
6463
*/
6564
echo "<tr>";
66-
65+
6766
while (list($key, $colname) = each($columns)) {
6867
echo "<td align=center>$colname</td>";
6968
}
70-
69+
7170
echo "</tr>";
72-
71+
7372
/**
7473
* Get the results from the result set.
7574
*/
7675
while ($row = cubrid_fetch($result)) {
7776
echo "<tr>";
78-
77+
7978
for ($i = 0; $i < $num_fields; $i++) {
8079
echo "<td align=center>";
8180
echo $row[$i];
8281
echo "</td>";
8382
}
84-
83+
8584
echo "</tr>";
8685
}
8786
}
@@ -121,7 +120,7 @@
121120
$host_port = 33000;
122121
$db_name = "demodb";
123122
$cubrid_con = @cubrid_connect($host_ip, $host_port, $db_name);
124-
123+
125124
if (!$cubrid_con) {
126125
echo "Database Connection Error";
127126
exit;
@@ -155,7 +154,6 @@
155154

156155

157156
</chapter>
158-
159157
<!-- Keep this comment at the end of the file
160158
Local variables:
161159
mode: sgml

reference/cubrid/setup.xml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,62 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: d345f907bb0e43530c8280e556746263e5c97f4b Maintainer: anonymous #27375 Status: ready -->
3+
<!-- EN-Revision: 22492de2eede0a31a4ac486489d5475e1536354d Maintainer: anonymous #27375 Status: ready -->
44
<!-- Reviewed: no -->
5-
6-
<chapter xml:id="cubrid.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5+
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="cubrid.setup">
76
&reftitle.setup;
87

9-
<section xml:id="cubrid.requirements" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
8+
<section xmlns="http://docbook.org/ns/docbook" xml:id="cubrid.requirements">
109
&reftitle.required;
11-
<para>
10+
<simpara>
1211
为使这些函数可用,必须安装CUBRID和编译CUBRID PHP库,提供CUBRID支持。
13-
</para>
12+
</simpara>
1413
</section>
1514

1615
&reference.cubrid.configure;
1716

1817
<section xml:id="cubrid.configuration">
1918
&reftitle.runtime;
20-
<para>
19+
<simpara>
2120
无运行时配置
22-
</para>
21+
</simpara>
2322
</section>
2423

2524
<section xml:id="cubrid.resources">
2625
&reftitle.resources;
27-
<para>
26+
<simpara>
2827
在CUBRID中使用四种资源类型。第一个用于连接数据库的链接标识符,第二个是保存一个查询结果的资源类型,以及最后两个保存BLOB/CLOB查询结果的资源数据类型。
29-
</para>
28+
</simpara>
3029
<section xml:id="cubrid.resources.connection-identifier">
3130
<title>connection 标识符</title>
32-
<para>
31+
<simpara>
3332
由 <function>cubrid_connect</function>,
3433
<function>cubrid_connect_with_url</function>,
3534
<function>cubrid_pconnect</function> 以及
3635
<function>cubrid_pconnect_with_url</function>返回的一个连接标识符。
37-
</para>
36+
</simpara>
3837
</section>
3938
<section xml:id="cubrid.resources.request-identifier">
4039
<title>request 标识符</title>
41-
<para>
40+
<simpara>
4241
由 <function>cubrid_prepare</function> 和 <function>cubrid_execute</function>返回的一个请求标识符。
43-
</para>
42+
</simpara>
4443
</section>
4544
<section xml:id="cubrid.resources.lob-identifier">
4645
<title>LOB 标识符</title>
47-
<para>
46+
<simpara>
4847
由<function>cubrid_lob_get</function>返回的一个LOB 标识符。
49-
</para>
48+
</simpara>
5049
</section>
5150
<section xml:id="cubrid.resources.lob2-identifier">
5251
<title>LOB2 标识符</title>
53-
<para>
54-
由 <function>cubrid_lob2_new</function>返回或从结果集中获取的一个LOB 标识符
55-
</para>
52+
<simpara>
53+
由 <function>cubrid_lob2_new</function>返回或从结果集中获取的一个LOB 标识符
54+
</simpara>
5655
</section>
5756

5857
</section>
5958

6059
</chapter>
61-
6260
<!-- Keep this comment at the end of the file
6361
Local variables:
6462
mode: sgml

0 commit comments

Comments
 (0)