Re: RELAX NG and system entities
Matthew Burgess <[email protected]> Sun, 21 Nov 2004 19:27:16 +0000
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Organization | Linux From Scratch |
| Message-ID | <[email protected]> |
Sebastian Rahtz wrote: > 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. Many thanks for everyones comments on this. The above suggestion was the bit I was missing, and indeed everything is working fine now. RELAX NG and entities would appear to co-exist quite happily here :-) Thanks again, Matt.