LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-22-2006, 02:07 PM   #1
Omni
Member
 
Registered: Sep 2003
Posts: 54

Rep: Reputation: 15
XML Schema element references


I have two schemas that define an element X, each has their own namespace. A third imports the schemaLocation and namespace of the first two. This 'Third' references element X from the first file "<element ref="One:X"/>". 'One' is the prefix to the targetNamespace of the first file.

The fourth schema imports the third, and has an element reference as such: "<element ref="Third:X"/>", since X is referenced in the third file from the first.

Unfortunatly, I get "Third.xsd - Message: Element must have a name or a ref attribute - element ignored".

So how do I go about referencing an element up the 'import' chain?

Beleive me, I know this is complicated as hell, I don't like it either, but there is a lot going on in these files beyond this. I'm not confident I can solve this problem on my own like I did that one this morning.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Schema Namespaces and element redefinition Omni Programming 1 09-22-2006 09:52 AM
XML Schema - redifinition of tags Omni Programming 2 09-20-2006 10:48 AM
Need help finding an XML Schema validator Omni Programming 2 09-11-2006 03:10 PM
XML question multiple parents for child element pld Programming 1 03-17-2005 02:14 PM
XML Schema complexType eric.r.turner Programming 1 12-28-2003 04:01 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration