From: Taco Hoekwater <taco@elvenkind.com>
Subject: Re: ConTeXt FAQ format, XML with DTD
Date: Wed, 6 Nov 2002 10:31:20 +0100 [thread overview]
Message-ID: <20021106103120.1d3b4687.taco@elvenkind.com> (raw)
In-Reply-To: <200211051947.47444.angerweit@gmx.net>
Hi Hraban!
Two notes from me, on xml:lang usage.
1st).
xml:lang is not the best solution to language independance. It doesnt
take transliteration into account, and it's specification does not cover
the full ISO language/country spec. Also, it can be quite hard to
intersept xml:lang in a processor.
That's why I always use this parameter entity:
<!ENTITY % lang "language CDATA #IMPLIED
country CDATA #IMPLIED
translit CDATA #IMPLIED">
2nd)
Your DTD is not 100% ok. Most of it is just a matter of
merging ATTLIST specs, but this one:
<!ATTLIST version xml:lang IDREF "en">
is definitely wrong. The IDREF here (and in some other locations)
should be CDATA. Generally speaking, ID and IDREF do more harm
than good in XML files. It's better to express the Id<->Ref relation
in a schema and use CDATA in your Dtds always.
Sorry, no positive input from me today (no time) ;-)
--
groeten,
Taco
next prev parent reply other threads:[~2002-11-06 9:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-05 18:47 Henning Hraban Ramm
2002-11-06 9:31 ` Taco Hoekwater [this message]
2002-11-06 20:20 ` Henning Hraban Ramm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021106103120.1d3b4687.taco@elvenkind.com \
--to=taco@elvenkind.com \
--cc=ntg-context@ref.ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).