Just a small tip that might help you with the future XML support.
Have a look at RELAX NG (http://www.oasis-open.org/committees/relax-ng/) 
as a better alternative to the W3C XML Schema (XSD). It is easier to use 
as well as more powerful than XSD for a many editing situations. It is 
particularily suitable for modeling ANT's option of using either an 
attribute or a child element.

Even if you decide not to use it yourselves, I would be extremely happy 
if you based the validation support on Sun's MSV library (or equivalent) 
  to get support for validation using DTD, XML Schema, Relax NG in a 
plugable way.

I hope you don't mind me sharing my opinions on XML technologies. If I 
go to far off topic for the intended XML support in IDEA, let me know 
and I'll try to stop.

/Fredrik Lindgren

Mike Aizatsky wrote:

 > Hi,
 >
 > It looks like ant.dtd is broken somehow. Can you send me it?
 >
 > BTW there's <IDEA_HOME>/config/xml/ant.xsd file in IDEA
 > distribution. It contains the first try to create ant schema. It's
 > by no means complete. We just created it for our own build file.
 > Give it a try. If it doesn't have some tasks/options you need, feel
 >  free to modify it. It would be also great if you send us your
 > modifications to include it next IDEA build.
 >
 > Best regards, Mike Aizatsky. ------------------------------ IntelliJ
 >  Software, "Develop with pleasure!" http://www.intellij.com
 >
 >
 >
 >> -----Original Message----- From: [EMAIL PROTECTED]
 >> [mailto:[EMAIL PROTECTED]] On Behalf Of Mеns af Klercker 
Sent: Saturday, February 09, 2002 2:31 PM
 >>To: Eap-List@Intellij
 >>Subject: [Eap-list] internal error on code completion in XML (#602)
 >>
 >>Hi!
 >>
 >>When using an external DTD-file specified with absolut path (i.e.
 >><!DOCTYPE project SYSTEM "e:\dtds\ant.dtd">), I get an "Internal error"
 >>warning and the following exception in console when trying to get tag
 >>completion. It does start to display some completions, but that is 
aborted
 >>when the warning comes up. The DTD is generated by the <antstructure> 
task
 >>in Ant. I Also have the ant.dtd file defined as an external resource 
(with
 >>path), but I couldn't get that working so I tried with an absolute path
 >>and got this...
 >>
 >>[157999488]  ERROR - mpletion.CodeCompletionHandler -
 >>java.lang.NullPointerException
 >>        at
 >>com.intellij.codeInsight.completion.xml.XmlTagLookupHandler.a(XmlTagLookup
 >>Handler.java:16)
 >>        at
 >>com.intellij.codeInsight.completion.CodeCompletionHandler.a(CodeCompletion
 >>Handler.java:23)
 >>        at com.intellij.codeInsight.completion.b.invoke(b.java:27)
 >>        at com.intellij.codeInsight.actions.a.run(a.java:1)
 >>        at com.intellij.psi.impl.o.run(o.java:0)
 >>        at
 >>com.intellij.vfs.VirtualFileManager.b(VirtualFileManager.java:89)
 >>        at com.intellij.psi.impl.v.c(v.java:308)
 >>        at com.intellij.codeInsight.actions.b.run(b.java:0)
 >>        at com.intellij.command.a.b.a(b.java:10)
 >>        at com.intellij.codeInsight.actions.y.actionPerformed(y.java:20)
 >>        at
 >>com.intellij.ide.desktop.impl.IdeMainFrame.processKeyEvent(IdeMainFrame.ja
 >>va:60)
 >>        at
 >>com.intellij.ide.desktop.impl.IdeMainFrame.a(IdeMainFrame.java:87)
 >>        at com.intellij.editor.b.f.a(f.java:30)
 >>        at com.intellij.editor.b.t.a(t.java:826)
 >>        at com.intellij.editor.b.t.a(t.java:774)
 >>        at com.intellij.editor.b.t.a(t.java:372)
 >>        at com.intellij.editor.b.c.keyPressed(c.java:6)
 >>        at java.awt.Component.processKeyEvent(Component.java:3677)
 >>        at javax.swing.JComponent.processKeyEvent(JComponent.java:2014)
 >>        at java.awt.Component.processEvent(Component.java:3553)
 >>        at java.awt.Container.processEvent(Container.java:1164)
 >>        at java.awt.Component.dispatchEventImpl(Component.java:2593)
 >>        at java.awt.Container.dispatchEventImpl(Container.java:1213)
 >>        at java.awt.Component.dispatchEvent(Component.java:2497)
 >>        at
 >>java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155)
 >>        at
 >>java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135)
 >>        at java.awt.Container.dispatchEventImpl(Container.java:1200)
 >>        at java.awt.Window.dispatchEventImpl(Window.java:914)
 >>        at java.awt.Component.dispatchEvent(Component.java:2497)
 >>        at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
 >>        at
 >>java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.
 >>java:131)
 >>        at
 >>java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.ja
 >>va:98)
 >>        at
 >>java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
 >>        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
 >>
 >>
 >>cheers,
 >>/Måns
 >>
 >>Tacton Systems AB, Saltmätargatan 7, 113 59 Stockholm, Sweden
 >>Phone +46 8 6900750, Direct +46 8 6900767, Mobile +46 730 324932
 >>[EMAIL PROTECTED] | http://www.tacton.com
 >>
 >>
 >
 >
 > _______________________________________________
 > Eap-list mailing list
 > [EMAIL PROTECTED]
 > http://www.intellij.com/mailman/listinfo/eap-list
 >
 >


 >> >>Sent: Saturday, February 09, 2002 2:31 PM To: Eap-List@Intellij 
Subject:
 >>  [Eap-list] internal error on code completion in XML (#602)
 >>
 >> Hi!
 >>
 >> When using an external DTD-file specified with absolut path (i.e. 
<!DOCTYPE
 >>  project SYSTEM "e:\dtds\ant.dtd">), I get an "Internal error" warning
 >>  and the following exception in console when trying to get tag 
completion.
 >>  It does start to display some completions, but that is aborted when
 >>  the warning comes up. The DTD is generated by the <antstructure>
 >>  task in Ant. I Also have the ant.dtd file defined as an external
 >>  resource (with path), but I couldn't get that working so I tried
 >>  with an absolute path and got this...
 >>
 >> [157999488]  ERROR - mpletion.CodeCompletionHandler - 
java.lang.NullPointerException
 >>

 >> at 
com.intellij.codeInsight.completion.xml.XmlTagLookupHandler.a(XmlTagLookup
 >>

 >> Handler.java:16) at 
com.intellij.codeInsight.completion.CodeCompletionHandler.a(CodeCompletion
 >>

 >> Handler.java:23) at
 >> com.intellij.codeInsight.completion.b.invoke(b.java:27) at
 >> com.intellij.codeInsight.actions.a.run(a.java:1) at
 >> com.intellij.psi.impl.o.run(o.java:0) at 
com.intellij.vfs.VirtualFileManager.b(VirtualFileManager.java:89)
 >>

 >> at com.intellij.psi.impl.v.c(v.java:308) at
 >> com.intellij.codeInsight.actions.b.run(b.java:0) at
 >> com.intellij.command.a.b.a(b.java:10) at
 >> com.intellij.codeInsight.actions.y.actionPerformed(y.java:20) at 
com.intellij.ide.desktop.impl.IdeMainFrame.processKeyEvent(IdeMainFrame.ja
 >>

 >> va:60) at 
com.intellij.ide.desktop.impl.IdeMainFrame.a(IdeMainFrame.java:87)
 >>

 >> at com.intellij.editor.b.f.a(f.java:30) at
 >> com.intellij.editor.b.t.a(t.java:826) at
 >> com.intellij.editor.b.t.a(t.java:774) at
 >> com.intellij.editor.b.t.a(t.java:372) at
 >> com.intellij.editor.b.c.keyPressed(c.java:6) at
 >> java.awt.Component.processKeyEvent(Component.java:3677) at
 >> javax.swing.JComponent.processKeyEvent(JComponent.java:2014) at
 >> java.awt.Component.processEvent(Component.java:3553) at
 >> java.awt.Container.processEvent(Container.java:1164) at
 >> java.awt.Component.dispatchEventImpl(Component.java:2593) at
 >> java.awt.Container.dispatchEventImpl(Container.java:1213) at
 >> java.awt.Component.dispatchEvent(Component.java:2497) at 
java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155)
 >>

 >> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135)
 >>

 >> at java.awt.Container.dispatchEventImpl(Container.java:1200) at
 >> java.awt.Window.dispatchEventImpl(Window.java:914) at
 >> java.awt.Component.dispatchEvent(Component.java:2497) at
 >> java.awt.EventQueue.dispatchEvent(EventQueue.java:339) at 
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.
 >>

 >> java:131) at 
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.ja
 >>

 >> va:98) at 
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
 >>

 >> at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
 >>
 >>
 >> cheers, /Måns
 >>
 >> Tacton Systems AB, Saltmätargatan 7, 113 59 Stockholm, Sweden Phone
 >>  +46 8 6900750, Direct +46 8 6900767, Mobile +46 730 324932 
[EMAIL PROTECTED]
 >>  | http://www.tacton.com
 >>
 >>
 >
 >
 > _______________________________________________ Eap-list mailing list 
[EMAIL PROTECTED]
 > http://www.intellij.com/mailman/listinfo/eap-list
 >
 >


 > > [EMAIL PROTECTED] http://www.intellij.com/mailman/listinfo/eap-list
 >

 >
 >



_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to