From: Mark B. <bur...@gm...> - 2011-01-11 09:22:19
|
Hi, I have just started using jedit and have run into a problem when editing XML files whose content model is defined by schemas but they also have a local doctype declaration (needed if the file contains system entities). The problem is that all the elements in the file are flagged as errors (element type foo must be declared). I attach a small example file that shows this problem. It's outer element and the first lines in the file look like this: <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE dmodule [<!NOTATION cgm PUBLIC "-//USA-DOD//NOTATION Computer Graphics Metafile//EN"> <!ENTITY ICN-S1000DBIKE-AAA-D000000-0-U8025-00502-A-04-1 SYSTEM "./illustrations/ICN-S1000DBIKE-AAA-D000000-0-U8025-00502-A-04-1.CGM" NDATA cgm> <!ENTITY ICN-S1000DBIKE-AAA-DA52000-0-U8025-00523-A-04-1 SYSTEM "./illustrations/ICN-S1000DBIKE-AAA-DA52000-0-U8025-00523-A-04-1.CGM" NDATA cgm> ]> <dmodule xsi:noNamespaceSchemaLocation="http://www.s1000d.org/S1000D_4-0/xml_schema_flat/proced.xsd" xmlns:dc="http://www.purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> ... </dmodule> If I remove the DOCTYPE declaration, jedit, no longer complains about all of the elements but, of course, the entities are no longer defined so it complains about that. Does anyone have a solution/fix for this? Cheers, Mark |