[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Whacky XML editor in Intellij IDEA

  • To: xml-dev <xml-dev@l...>
  • Subject: Whacky XML editor in Intellij IDEA
  • From: Oleg Tkachenko <oleg@t...>
  • Date: Fri, 29 Oct 2004 23:21:24 +0200
  • Organization: Multiconn Technologies
  • User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.3) Gecko/20040910

intellij uri is not registered
Hello!

Talking about namespaces - surprisingly I found out there is a growing 
amount of developers who truly believe any namespace URI in a XML 
document must be resolvable to a schema document and otherwise XML 
document isn't valid.

After some hot debates I found out the root of this belief is whacky 
behaviour of (new?) Intellij IDEA's XML editor.
I just installed fresh IDEA release, created new XML file and typed
<foo xmlns="http://whacky.com"/>
IDEA markes this line as error, highlighting "http://whacky.com" in red 
and tooltiping "URI is not registered (Settings | IDE Settings | 
Resources)". That means I supposed to go to Resources dialog and either 
add http://whacky.com to the list of ignored external resources or to 
map it to a local XML schema file.

I googled out a thread in IDEA support forum [1], where they defend this 
behaviour, referring to the section 4.3.2 of the "XML Schema Part 1: 
Structures" [2], which particularly says:

"Note:  Experience suggests that it is not in all cases safe or 
desirable from a performance point of view to dereference namespace 
names as a matter of course. User community and/or consumer/provider 
agreements may establish circumstances in which such dereference is a 
sensible default strategy: this specification allows but does not 
require particular communities to establish and implement such 
conventions. Users are always free to supply namespace names as schema 
location information when dereferencing is desired: see below."

and:

"Given a namespace name (or none) and (optionally) a URI reference from 
xsi:schemaLocation or xsi:noNamespaceSchemaLocation, schema-aware 
processors may implement any combination of the following strategies, in 
any order:
...
5 Attempt to resolve the namespace name to locate such a resource."

So they believe that's just fine and conformant.

Now while it's weird for me when XML editor forces me to resolve 
namespace URI, apparently many Java devs working in IDEA (which is quite 
popular IDE) take it as granted.
Can we (and should we) do something about it?


[1] http://www.intellij.net/forums/thread.jsp?forum=5&thread=2021
[2] http://www.w3.org/TR/xmlschema-1/#schema-loc
-- 
Oleg Tkachenko
http://blog.tkachenko.com
Multiconn Technologies, Israel


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.