[relaxng-user] Can Jing simply ignore <!DOCTYPE ..> ?
G. Ken Holman
gkholman at CraneSoftwrights.com
Sun Feb 1 12:19:18 ICT 2004
At 2004-02-01 17:27 +0100, Ken Beesley wrote:
>Question: Can Jing simply ignore <!DOCTYPE ..> ?
I believe the answer is "no".
The SYSTEM identifier needs to be followed for well-formedness checking,
but you can point that system identifier to a file without ELEMENT
declarations (or with ELEMENT declarations unrelated to the instance) and
Jing will respect your command line argument RNG file and ignore the model
declarations in the document type definition.
>So during development I'd prefer to do
>my own validation based on a tighter Relax NG schema and perhaps
>other semantic processing. I have written a Relax NG schema
>for these keylayout files, but the <!DOCTYPE ...> declaration
>is in the way.
But not because if its content model constraint declarations ... those are
being ignored. You still need it there in case there are any entities that
are needed by the document.
>Can I somehow tell Jing to simply ignore the <!DOCTYPE ...>
>definition and validate the rest of the document using the
>specified Relax NG schema?
As with MSV, Jing needs to follow the SYSTEM identifier but it will ignore
any content model constraints ... so can you put in the place of the DTD
location even an empty file and things should proceed.
I hope this helps.
......................... Ken
--
Public courses: sign up for one or both soon to reserve your seat!
Each week: Monday-Wednesday: XSLT/XPath; Thursday-Friday: XSL-FO
Washington, DC: 2004-03-15 San Francisco, CA: 2004-03-22
Hong Kong, China: 2004-05-17 Bremen, Germany: 2004-05-24
World-wide on-site corporate, government & user group XML training
G. Ken Holman mailto:gkholman at CraneSoftwrights.com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/r/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/r/bc
More information about the relaxng-user
mailing list