logo       

[jira] Commented: (XERCESJ-1252) error msg on unqualified global attribute : msg#00015

Subject: [jira] Commented: (XERCESJ-1252) error msg on unqualified global attribute confusing
    [ 
https://issues.apache.org/jira/browse/XERCESJ-1252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12497476
 ] 

George Cristian Bina commented on XERCESJ-1252:
-----------------------------------------------

The issue is already recorded and its current status is open, see:
https://issues.apache.org/jira/browse/XERCESJ-819


> error msg on unqualified global attribute confusing
> ---------------------------------------------------
>
>                 Key: XERCESJ-1252
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1252
>             Project: Xerces2-J
>          Issue Type: Improvement
>          Components: XML Schema Structures
>    Affects Versions: 2.9.0
>         Environment: XP Home/SP2; jre 1.5.0_11
>            Reporter: Paul V. Biron
>            Priority: Minor
>
> Given this simple schema document:
> <xs:schema
>               xmlns:xs='http://www.w3.org/2001/XMLSchema'
>               xmlns='urn:test'
>               targetNamespace='urn:test'
>               elementFormDefault='qualified'
>               attributeFormDefault='unqualified'>
>       <xs:element name='root' type='Root'/>
>       <xs:complexType name='Root'>
>               <xs:attribute ref='glob' use='required'/>
>       </xs:complexType>
>       <xs:attribute name='glob' type='xs:string'/>
> </xs:schema>
> and this simple instance:
> <my:root xmlns:my='urn:test' 
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
>               xsi:schemaLocation='urn:test globAttr.xsd' glob='foo'/>
> xerces (correctly) reports the following 2 error msgs:
> [Error] globAttr.xml:2:58: cvc-complex-type.3.2.2: Attribute 'glob' is not 
> allowed to appear in element 'my:root'.
> [Error] globAttr.xml:2:58: cvc-complex-type.4: Attribute 'glob' must appear 
> on element 'my:root'.
> While this is correct (@glob should be qualified) you can imagine who those 
> msgs would confuse a novice.  It's not worth spending a lot of time improving 
> the error messages, but if you can do it quickly it would probably help the 
> uninitiated (suggestion: just prefix 'glob' in the 2nd message...but that 
> might make it harder to understand in other circumstances).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe