This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Including character sets
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Aidan Lister" <aidanis at gmail dot com>, <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 13 Dec 2004 17:29:28 -0800
- Subject: Re: [docbook-apps] Including character sets
- References: <40c9f840412110255a86174c@mail.gmail.com>
In the XML 1.0 specification, section 2.8, it says:
"If both the external and internal subsets are used, the internal subset is
considered to occur before the external subset."
That means the PE has not yet been declared when you try to call it within
your internal subset.
Anyway, the DTD already includes all the character entities from ent/*.ent
in the DTD distribution. You should not need to include them yourself.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Aidan Lister" <aidanis@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Saturday, December 11, 2004 2:55 AM
Subject: [docbook-apps] Including character sets
> Hi list (again),
>
> I'm a little confused on how I should be including character sets. The
> docbook manual says:
>
> The %isonum; parameter entity includes the ISO character entities with
> the public identifier: etc.
>
> >From this, I assumed I would be able to place %isonum; in my doctype as
follows:
>
> <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4CR2//EN"
> "http://www.oasis-open.org/docbook/xml/4.4CR2/docbookx.dtd" [
> %isogrk3;
> %isonum;
> ]>
>
> This would then include the respective character sets.
>
> However, this did not work - lint threw an error:
>
> article.xml:4: parser warning : PEReference: %isonum; not found
>
> I'm know including it as follows, which works, but I'm always looking
> for better ways :)
>
> <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4CR2//EN"
> "http://www.oasis-open.org/docbook/xml/4.4CR2/docbookx.dtd" [
> <!ENTITY % isogrk3 PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN//XML"
> "http://www.w3.org/2003/entities/iso8879/isogrk3.ent">
> %isogrk3;
> <!ENTITY % isonum PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special
> Graphic//EN//XML"
> "http://www.w3.org/2003/entities/iso8879/isonum.ent">
> %isonum;
> ]>
>
> Any clarifications appreciated,
>
> Kind regards,
> Aidan
>
>