This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Re: DOCBOOK: Validation Error with article XMLDocumentin Chinese
- From: Jirka Kosek <jirka at kosek dot cz>
- To: David Cramer <dcramer at broadjump dot com>
- Cc: Sidney Lu <lu at sinica dot edu dot tw>, docbook-apps at lists dot oasis-open dot org
- Date: Mon, 01 Apr 2002 23:09:08 +0200
- Subject: Re: DOCBOOK-APPS: Re: DOCBOOK: Validation Error with article XMLDocumentin Chinese
- References: <97B71B827DFB2B448A73EC00E5DA0EE61534C9@logos.inhouse.broadjump.com>
David Cramer wrote:
> nsgmls -wxml -s C:/programs/jade/xml.dcl wrapper.xml
> nsgmls:C:/programs/jade/xml.dcl:1:W: SGML declaration was not implied
> nsgmls:ko/glossary.xml:3:10:E: non SGML character number 154
> nsgmls:ko/glossary.xml:3:13:E: non SGML character number 150
> nsgmls:ko/glossary.xml:9:15:E: non SGML character number 149
> <...>
> nsgmls:I: maximum number of errors (200) reached; change with -E option
>
> SGML validation exited abnormally with code 1 at Mon Apr 01 11:20:53
>
> At the top of wrapper.xml and ko/glossary.xml I have <?xml version="1.0"
> encoding="utf-8"?>.
>
> Is there anything else I should check or something I can do to
> troubleshoot my setup?
You must set environment variable SP_ENCODING to value "XML" or "UTF-8".
In the first case, nsgmls will use encoding specified in XML
declaration, in the second UTF-8 will be assumed.
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz