Re: Help needed to use ENTITY in docbook5 (convert from docbook4)
Jirka Kosek <[email protected]> Mon, 28 May 2018 12:08:44 +0200
| Newsgroups | gmane.text.docbook.misc |
|---|---|
| Message-ID | <[email protected]> |
On 25.5.2018 9:23, victory wrote: > I think this is caused by this change: > https://github.com/docbook/docbook.org/issues/17 Please note that there were not made change. The problem is that with DocBook 4 people usually used external entities to break document into several smaller files. If this approach is used entities defined in the main file are inherited to files included via entity mechanism. For DocBook 5 XInclude is usually used for modularity. With XInclude situation is different. Each xincluded file is parsed separately and does not inherit entity declarations from the main file. So with XInclude entity declarations has to be repeated at the beginning of each file. But in fact this is not directly related to differences between DocBook 4 and 5. You can use XInclude with DocBook 4 or external entities with DocBook 5. But using entities for accented characters in 2018 seems really wrong. Appropriate Unicode characters should be used directly in the files. Jirka -- ------------------------------------------------------------------ Jirka Kosek e-mail: [email protected] http://xmlguru.cz ------------------------------------------------------------------ Professional XML and Web consulting and training services DocBook/DITA customization, custom XSLT/XSL-FO document processing ------------------------------------------------------------------ Bringing you XML Prague conference http://xmlprague.cz ------------------------------------------------------------------
signature.asc
(application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (MingW32) iEYEARECAAYFAlsL1SwACgkQzwmSw7n0dR6wtgCfUD7LdI5a9xxJ9Das6tSrJnc5 jFgAnjkTj4lzEpIDUWzvGCB5i30OG+FS =9O59 -----END PGP SIGNATURE-----