[relaxng-user] Can Jing simply ignore <!DOCTYPE ..> ?

Ken Beesley Ken.Beesley at xrce.xerox.com
Sun Feb 1 17:27:54 ICT 2004


Question:  Can Jing simply ignore <!DOCTYPE ..> ?

I'm using Relax NG with Jing on Solaris and Apple OS X.  Great
stuff.  But here's my little problem/challenge:
 

I've got a set of XML documents (Apple OS X XML keylayout files), old
and new, with

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard SYSTEM 
"file://localhost/System/Library/DTDs/KeyboardLayout.dtd">

at the top.  When these keylayout files are installed
in OS X, they will get DTD-validated by the system.  (This is done
in the background, with any XML errors being written to obscure log
files, so it's very awkward for people like me who are trying to
develop new keylayout files.

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.

Can I somehow tell Jing to simply ignore the <!DOCTYPE ...>
definition and validate the rest of the document using the
specified Relax NG schema?

Thanks,

Ken



**********************************************************************
Kenneth R. Beesley		ken.beesley At xrce DoT xerox DoT com 
Xerox Research Centre Europe    Tel from France:    04  76 61 50 64  	
6, chemin de Maupertuis		Tel from Abroad: +33 4  76 61 50 64
38240 MEYLAN			Fax from France:    04  76 61 50 99
France				Fax from Abroad: +33 4  76 61 50 99

XRCE page:      http://www.xrce.xerox.com
Personal page:  http://www.xrce.xerox.com/people/beesley/home.html
**********************************************************************



More information about the relaxng-user mailing list