This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Using extensions in XML - error underfined 'base' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Using extensions in XML - error underfined Watch "Using extensions in XML - error underfined New topic

Using extensions in XML - error underfined 'base'

Julia Dann

Joined: Aug 20, 2004
Posts: 1

I've got the follwong xml and i'm trying to use extension for the first time. It doesn't seem to like it - any suggestions? I've stripped out all the imports to make it a little less complex.

When i try to validate it on XML spy i'm getting an error undefined value for 'base' encountered. Yet i'm using the name i've defined above??

<schema targetNamespace="http://www.somewhere/tGetProductAttributesPerSectorV1" xmlns="" elementFormDefault="unqualified" version="1.00">
<import namespace="" schemaLocation="MessageInfrastructureV2_X.xsd"/>
<element name="GetProductAttributesPerSectorRequest">
<complexType name="test">
<element name="CAPHeader" type="cap:CAPHeader"/>
<element name="MessageHeader" type="mes:MessageHeader"/>
<element name="ProductAttributeCategory" type="pro roductAttributeCategory" minOccurs="0" maxOccurs="unbounded">
<element name="DepartureDate" type="date"/>
<element name="AdultPaxNumber" type="integer" minOccurs="0"/>
</complexType >
<element name="GetProductAttributesPerSectorForWebServiceRequest">
<extension base="test">
<element name="DepartureAirport" type="ord:FullAirport1"/>

Balaji Loganathan
author and deputy

Joined: Jul 13, 2001
Posts: 3150
Welcome to Javaranch Julia,
I don't have xmlspy to readily validate your xsd, however will the example 2 in this page helps you to get an idea ?

Spritle Software Blogs
I agree. Here's the link:
subject: Using extensions in XML - error underfined 'base'
jQuery in Action, 3rd edition