XML hangs while parsing when schema specified
Submitted by Thursday, 29 April, 2004 - 15:10
on
Not sure if this should be a bug or maybe I just messed up.
I'm using jEdit 4.2 Pre 11 with XML 0.13
I created an xsd file (or started to) that's very simple.
-- woodschema.xsd --
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="root" type="xsd:string" />
</xsd:schema>
When I edit this, Error List says "cannot find the declaration of 'xsd:schema'. I get the same kind of error when editing .xslt files. The XML plugin has never asked me to download schema definitions, though the plugin options says it should.
I created an OASIS catalog, like this:
-- system catalog
system "adkwood.xsd" "file:///o:/Holmes/Wood/woodschema.xsd"
public "http://www.adirondackcraft.com/Schemas/AdkWood.xsd" "adkwood.xsd"
Then added the catalog file to the XML plugin catalog list.
Then, I created (or started to) a simple .xml file, like this:
<?xml version="1.0" ?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.adirondackcraft.com/Schemas/AdkWood.xsd">
</root>
When I open this file, sidekick shows "Parsing" and jEdit uses 100% cpu time.
I also tried changing the simple .xml file to this:
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:///o:/Holmes/Wood/woodschema.xsd">
</root>
But it still hangs when I open it.
- questions -
1. why doesn't the XML plugin download schemas for validating xsd or xslt?
2. If the XML plugin did download the schemas or DTDs, where would it store them? I can't find them anywhere
3. What's the correct way to setup a local .xsd file and work on both the xsd and a test xml file at the same time?
Thanks
I'm using jEdit 4.2 Pre 11 with XML 0.13
I created an xsd file (or started to) that's very simple.
-- woodschema.xsd --
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="root" type="xsd:string" />
</xsd:schema>
When I edit this, Error List says "cannot find the declaration of 'xsd:schema'. I get the same kind of error when editing .xslt files. The XML plugin has never asked me to download schema definitions, though the plugin options says it should.
I created an OASIS catalog, like this:
-- system catalog
system "adkwood.xsd" "file:///o:/Holmes/Wood/woodschema.xsd"
public "http://www.adirondackcraft.com/Schemas/AdkWood.xsd" "adkwood.xsd"
Then added the catalog file to the XML plugin catalog list.
Then, I created (or started to) a simple .xml file, like this:
<?xml version="1.0" ?>
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.adirondackcraft.com/Schemas/AdkWood.xsd">
</root>
When I open this file, sidekick shows "Parsing" and jEdit uses 100% cpu time.
I also tried changing the simple .xml file to this:
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="file:///o:/Holmes/Wood/woodschema.xsd">
</root>
But it still hangs when I open it.
- questions -
1. why doesn't the XML plugin download schemas for validating xsd or xslt?
2. If the XML plugin did download the schemas or DTDs, where would it store them? I can't find them anywhere
3. What's the correct way to setup a local .xsd file and work on both the xsd and a test xml file at the same time?
Thanks