Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » [SOLVED] Attribute 'attrname' is not allowed to appear in element 'elem'
[SOLVED] Attribute 'attrname' is not allowed to appear in element 'elem' [message #634043] Wed, 20 October 2010 11:24
leniviy  is currently offline leniviy Friend
Messages: 8
Registered: October 2009
Junior Member
Attribute 'attrname' is not allowed to appear in element 'elem', XML Catalog
1) Eclipse is right, fix your XML
2) If you really need to keep this bad xml, download the xsd, add missing attr into it, go to preferences, XML Catalog,
add your modified xsd there
key type: Namespace Name
key : the original xsd url (if xsi:schemaLocation="a b", use "b" or try both)

Real life example, jboss tools installed, pages.xml :
<?xml version="1.0" encoding="UTF-8"?>
<pages xmlns=""
       login-view-id="/login.xhtml" no-conversation-view-id="/login.xhtml" >
    <page view-id="/pages/foo.xhtml" login-required="true" on-postback="false">
        <rewrite pattern="/foo"/>

validation error: Attribute 'on-postback' is not allowed to appear in element 'page'. pages.xml

1) I download
2) find node and add missing attribute "on-postback"
    <xs:attributeGroup name="">
        <xs:attribute name="on-postback" default="true" type="pages:tf-boolean"/>
        <xs:attribute name="action" type="xs:token" />

3) Add modified pages-2.2.xsd with key:
Previous Topic:Nested lib folder structure at deployment on JBoss AS 5.1 in server view
Next Topic:Throwing an exception from a web service
Goto Forum:

Current Time: Sun Oct 25 15:25:18 GMT 2020

Powered by FUDForum. Page generated in 0.01800 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top