jEdit Community - Resources for users of the jEdit Text Editor
XMLPlugin and Schema Validation
Submitted by webengr on Monday, 19 April, 2004 - 00:38

This could well be user error, which is why I am not using the "Report a Bug" link.

I am editing an XML schema in jEdit 4.2pre11, using XMLPlugin 0.13 (plus its required companions), running on JDK 1.4.2_04/Win2K. No matter what I do, I get this error in the Error List:

   cvc-elt.1: Cannot find the declaration of element 'xs:schema'.

The XML Insert pane shows the proper tags available, so jEdit did find a schema somewhere. Also, the target file does validate against my schema. Using "Edit tag at caret" to edit the <xs:schema> tag brings up the expected dialog box, BUT it also deletes the namespace binding for the "xs:" prefix.

I could be doing something wrong, but I didn't find any clues in the plugin documentation. Here is what my schema looks like at the moment:

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element ...>
    etc...
</xs:schema>

I have tried several permutations with various attributes for <xs:schema>, but I don't think that is the root cause. Any hints?

PCS

Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
useful links
by Anonymous on Wed, 30/03/2005 - 18:30
Our escort service allows you to experience encounters with females or males of different zodiac signs.Each of our escorts has its own personality for you to discover.Come in, visit our site read your erotic horoscope and see who could be your best companion.
XMLPlugin and Schema Validation
by vldmr on Thu, 30/12/2004 - 01:24
Any news here? I've got the same problem. Is it solved yet?

Thanks
Look having an other problem
by Marcogringo on Thu, 21/10/2004 - 09:38
This plugin looks having an other problem.
Look at that :
here
Some type of bug
by Anonymous on Mon, 19/04/2004 - 19:37
I see this in every XML document that uses a namespace in the same tag that declares it. It *looks* like the validation is not able to retroactively apply the namespace declared within the tag to the tag itself.

$.02

Eric Everman
 
Some type of bug
by Anonymous on Sun, 12/12/2004 - 12:46
Has this been looked at ?

Is there any way to fix it ?
Well AFAIK this is not a JEdi
by Anonymous on Mon, 19/04/2004 - 11:20
Well AFAIK this is not a JEdit problem. JEdit uses Apache Xerces for XML-Validation. Though Xerces can validate XML-instance files, it can not do so directly for schemas.

So, if you want to just validate your schema, you should create a dummy XML file pointing to a valid schema and to the schema you want to validate.
 
same problem with XSL stylesheets
by Anonymous on Thu, 30/12/2004 - 14:01
I don't think this problem is related to schemas. I have the same error with an XSL document:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
cvc-elt.1: Cannot find the declaration of element "xsl:stylesheet"

I'm using JEdit 4.2 with XML plugin 0.13. This error did not occur with JEdit 4.1, so this is a regression.
Xerces can validate my file without any problem as long as I specify the schema to use for validation. Since JEdit does element name completion, I assume the schema is already recognized, and could be used for validation.
I put this in the wrong forum
by webengr on Mon, 19/04/2004 - 03:19
I should have posted this in either the "Troubleshooting" or "Using jEdit" forum. I would delete this topic, but I do not see a way for an end user to do it. My apologies.
 
 
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