Re: RELAX NG and system entities
Sebastian Rahtz <[email protected]> Sat, 20 Nov 2004 18:18:14 +0000
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <[email protected]> |
Matthew Burgess wrote: > > From what I can gather, being a complete newbie to RELAX NG, system > entities aren't usable with RELAX NG (and schema languages in general). > The two are unrelated, really. Entity expansion takes place at the XML parsing stage, before validation by schema is applied. Any XML processor has to read a DTD subset, grok the entities declared there, and expand instances later. You can't _declare_ entities in a schema, as you used to be able to with external DTDs, thats the difference. Your example will carry on working just fine, if you just remove SYSTEM "myDoctype.dtd" and use a RelaxNG validator or other XML tool. Well, maybe some tools will protest, but the ones I use daily (jing, libxml2, rnv) do what I expect. -- Sebastian Rahtz Information Manager, Oxford University Computing Services 13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431 OSS Watch: JISC Open Source Advisory Service http://www.oss-watch.ac.uk