Skip to content

Commit a8ed017

Browse files
author
André L F S Bacci
committed
Example of transforming DTD entities into XML entities
1 parent 6400027 commit a8ed017

4 files changed

Lines changed: 64 additions & 13 deletions

File tree

contributors.ent

Lines changed: 0 additions & 12 deletions
This file was deleted.

docbookcs.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
</paths>
2222

2323
<entities>
24-
<file>contributors.ent</file>
2524
<file>extensions.ent</file>
2625
<file>language-defs.ent</file>
2726
<file>language-snippets.ent</file>

entities/entities-remove.ent

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf8" ?>
2+
<!-- $Revision:$ -->
3+
<!--
4+
5+
This is a "remove" XML Entity file.
6+
See doc-base/script/text-entities.php for details.
7+
8+
Place here only deprecated entities that are expected NOT
9+
be being used in any part of the manual.
10+
11+
If an entity moved here is used in a language in your control,
12+
this means that the entity on the original file is planned to be
13+
removed, or already was removed.
14+
15+
DO NOT TRANSLATE THIS FILE.
16+
17+
This file is tracked by revcheck, so translations have a heads up
18+
when a entity is removed from doc-en. On translations, leave an
19+
empty <entities/> element at the end of file, only updating the revtag.
20+
21+
-->
22+
23+
<entities xmlns = "http://docbook.org/ns/docbook"
24+
xmlns:xlink = "http://www.w3.org/1999/xlink"
25+
translate = "remove">
26+
27+
<!-- Erased in 2026-06, long time empty -->
28+
<entity name="frontpage.authors"/>
29+
<entity name="frontpage.editors"/>
30+
31+
</entities>

entities/entities.ent

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="utf8" ?>
2+
<!-- $Revision:$ -->
3+
<!--
4+
5+
# Description
6+
7+
This is a translatable XML Entity file.
8+
See doc-base/script/text-entities.php for details.
9+
10+
Place here small entities that are expected to be translated.
11+
For big or complex entities, please create an individual entity
12+
file at doc-lang/entities/entityname.xml.
13+
14+
Keep the lines strictly under 79 columns, to make the process of
15+
manual translation easier, and to not wrap around on automatic
16+
emails.
17+
18+
-->
19+
20+
<entities xmlns = "http://docbook.org/ns/docbook"
21+
xmlns:xlink = "http://www.w3.org/1999/xlink"
22+
translate = "yes">
23+
24+
<entity name="extcat.intro">
25+
<title>Extension List/Categorization</title>
26+
<simpara>This appendix categorizes more than 150 extensions documented
27+
in the PHP Manual by several criteria.</simpara>
28+
</entity>
29+
30+
<entity name="extcat.alphabetical"><title>Alphabetical</title></entity>
31+
<entity name="extcat.alphabetical"><title>Alphabetical</title></entity>
32+
33+
</entities>

0 commit comments

Comments
 (0)