jEdit Community - Resources for users of the jEdit Text Editor
XML hangs while parsing when schema specified
Submitted by bkc on Thursday, 29 April, 2004 - 15:10
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
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
xsd schema response?
by Anonymous on Tue, 12/10/2004 - 15:03
I have the same problem with jedit finding the xsd:schema definition as this poster pointed out months ago. Yet, I see no response.

This really puts a kink in validating xml schema with Jedit. Should I be using a different tool?
 
Try this: <xsd:schema x
by Anonymous on Thu, 14/10/2004 - 18:58
Try this:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd">
...
 
Thanks for the tip but I don'
by goa103 on Wed, 02/03/2005 - 17:15
Thanks for the tip but I don't understand why we would have to locate the schema using the xsi:schemaLocation attribute. Shouldn't the parser locate it using the xmlns attribute ?
 
That works
by Anonymous on Fri, 15/10/2004 - 21:04
It works for me. Thanks for the tip.

-yogesh
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293