|
From: Michael C. <chi...@mi...> - 2006-06-27 15:55:44
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Michael Chisholm wrote:
<blockquote cite="mid...@mi..." type="cite">
<pre wrap="">Alan Ezust wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Question #2
Does anyone use jedit with XML plugin and edit files which do NOT have
a DTD, but instead have an XSD schema definition? Does jedit give you
validation/completion? How did you get it working?
Thanks! --alan
</pre>
</blockquote>
<pre wrap=""><!---->
I do this, and it works fine for me. The dropdown appears with tags,
and hitting Enter brings up a dialog with all the attributes et al. I
have jEdit 4.3pre3 and XML plugin 0.16 with Java 1.5.0_06. If I did
anything special to make it work, I don't remember now... maybe I can
try to install the same plugin on a different machine which doesn't
already have it installed and see if it works without modification, and
let you know.
Andy
</pre>
</blockquote>
I started messing around with it and here's what I found. All my
current jEdit installations are 4.3pre3, with XML 0.15 or 0.16. The
completion and validation works fine for them. I tried a brand new
jEdit 4.3pre4 install on a laptop, with XML 0.18. There, completion
works but validation doesn't. I tried writing some malformed Java
code, but got no errors on that either... I checked the parser config
for the SideKick plugin, and saw there was no java parser listed for
java mode. I realized I had to get JavaSideKick to get the parsing
like I had on my other 4.3pre3 installs. So I downloaded and installed
that, and then Java parsing worked and I saw errors. And magically,
the XML errors then started showing up too! I had already verified
that 'xml' parser was set for xml mode in the sidekick configuration.
I also messed with the SideKick auto-parsing settings... but that
seemed to have no effect. Very strange... JavaSideKick appeared to
give jEdit a shot in the arm that made validation work. So XML
parsing, completion, and validation via XSD now works on the 4.3pre4
test-install. Dunno if this helps... :)<br>
<br>
Andy<br>
<br>
</body>
</html>
|