You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by ja...@ws.apache.org on 2004/09/29 10:44:32 UTC
[jira] Closed: (JAXME-37) attributes and custom types
Message:
The following issue has been closed.
Resolver: Jochen Wiedmann
Date: Wed, 29 Sep 2004 1:43 AM
Should be fixed in HEAD and 0.3 branch now.
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/JAXME-37
Here is an overview of the issue:
---------------------------------------------------------------------
Key: JAXME-37
Summary: attributes and custom types
Type: Bug
Status: Closed
Priority: Major
Resolution: FIXED
Project: JaxMe
Versions:
current (nightly)
Assignee:
Reporter: Ramesh Bobba
Created: Tue, 28 Sep 2004 2:16 PM
Updated: Wed, 29 Sep 2004 1:43 AM
Environment: windows XP, RedHat Linux
Description:
If an attribute is of a custom type which is an enumeration, I get the following error:
C:\sandbox\cce\build.xml:159: Following error occured while executing this line
C:\sandbox\cce\build.xml:144: org.apache.ws.jaxme.xs.parser.impl.LocSAXException
: At file:/C:/sandbox/cce/src/com/transerainc/cce/callback/request.xsd, line 15, column 23: Unable to derive package name from an empty namespace URI. Use the schemaBindings to specify a package name.
The schema:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://cce.transerainc.com/gen/request" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns="http://cce.transerainc.com/gen/request" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="request">
<xs:annotation>
<xs:documentation>Comment describing your root element</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="attribute" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:string" use="required"/>
<xs:attribute name="type" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="int"/>
<xs:enumeration value="float"/>
<xs:enumeration value="double"/>
<xs:enumeration value="long"/>
<xs:enumeration value="string"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="app-name" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org