473,406 Members | 2,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Is it possible to split an xml schema in two separate files

I want to split a xml schema in two xml schema files where the first
file has general schemas and the other part has specific schemas. The
general schema can the be used by other schemas (written in other
files) which uses the same elements. Is this possible to do?

Jun 7 '07 #1
2 5505
Simon wrote:
I want to split a xml schema in two xml schema files where the first
file has general schemas and the other part has specific schemas. The
general schema can the be used by other schemas (written in other
files) which uses the same elements. Is this possible to do?
With the XSD schema language you an write schema modules and include
them with xs:include:
<http://www.w3.org/TR/xmlschema-0/#element-include>

If you define elements or attributes in different namespaces then you
are even required to to have one module for each target namespace where
you then use xs:import to import the schema for one target namespace
into the schema for a second target namespace:
<http://www.w3.org/TR/xmlschema-0/#import>


--

Martin Honnen
http://JavaScript.FAQTs.com/
Jun 7 '07 #2
On 7 Jun, 10:49, Simon <simon0...@gmail.comwrote:
I want to split a xml schema in two xml schema files where the first
file has general schemas and the other part has specific schemas. The
general schema can the be used by other schemas (written in other
files) which uses the same elements. Is this possible to do?
It's most certainly possible if the two schemas define the contents
for two different namespaces.

It's a bit more of an issue if the two (or more) schema files specify
the contents of a single namespace. This is because the namespace URI
typically is associated with a single file (although the URI does not
necessarily resolve to the schema file).

It has been suggested that in this case, the two schema files should
be included (using xs:include) into a third schema file with the same
namespace. The third schema file then becomes the 'master' file that
is intended to be the reference point for the namespace.

HTH (and makes sense!),

Pete.
--
=============================================
Pete Cordell
Codalogic Ltd
for XML Schema to C++ data binding visit
http://www.codalogic.com/lmx/
=============================================

Jun 7 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: ted | last post by:
Hello, I have a HTML table in my XSL that basically handles the layout of the whole page. I'm using xsl:include to split up the XSL into separate files. Is there a trick or technique to put...
0
by: Jedi | last post by:
I want to split one big schema file into some small schema files. So I can replace or update or extend the current schema in the different verion of applications. Any one know any good ideas, or...
2
by: PeterW | last post by:
I have an xml file from which I want to generate an xsd schema and at a later stage a cs class. The xml file has a mix of defined namespaces and also an empty namespace. These are defined as...
7
by: Rory Campbell-Lange | last post by:
I have a number of web applications which have a large amount of their logic written in plpgsql. For each particular application I have a separate instance of a database. If I need to update...
5
by: Jeff | last post by:
We are using .Net and the wsdl Utility to generate proxies to consume web services built using the BEA toolset. The data architects on the BEA side create XML schemas with various entities in...
1
by: drb | last post by:
Hi, Newbie question #2 - hope that's OK! I'm trying to create a WSDL file using one or more XSD schema files. While WSDL.exe doesn't seem to support the XSD "import" function, if I include a...
1
by: Rico | last post by:
Hello, I have a database in 2005 that I'd like to copy and attach in 2000. Is this possible? if so, how do I do it? I've tried doing a number of things from just trying to attach to the db...
1
by: christian.eickhoff | last post by:
Hi, I have a general question regarding the parsing of XSD files, referenced within the namespace using Apache Xerces 2.7.0 (CDT). My current c++ application can parse and validate an XML file...
1
by: Ben | last post by:
We currently use SSIS to build DTS packages in which we store changes to our database schema, as well as scripts that need to be run upon each release. This works well for small sets of changes...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.