473,215 Members | 1,244 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,215 software developers and data experts.

Creating an aggregate schema

Does anyone know of an existing tool or template to merge the contents
of a base schema and an extension schema that uses the <redefine> tag
to extend the base schema?

I need to extract a subset of a very large schema so that I can use it
with JAXB. I have created an xslt template to do this, and it works
as long as the entire schema is in one file. The trouble is, I need
to work with an extended schema, and xslt does not recognize the
<redefine> tag as anything special, so it does not know how to include
the contents of the base schema.

I can probably build a pre-processing template that uses the
document() function in order to produce a merged schema, but I'd
rather use something that's already out there and working.

TIA for any suggestions.

Regards,
Ed
Jul 20 '05 #1
2 1661
ed************@iname.com (Ed Trembicki-Guy) writes:
Does anyone know of an existing tool or template to merge the contents
of a base schema and an extension schema that uses the <redefine> tag
to extend the base schema?


Using XSLT to implement W3C XML Schema compilation, as it were, is a
pretty-near impossible task. I recommend you use one of the schema
processors such as XSV or Xerces which provide PSVI reflections out as
XML, and work from that. I'm not aware of anything which converts
such output back in to one schema document per namespace, but it
shouldn't be too hard.

ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Jul 20 '05 #2
Nevermind. It rained all weekend, so I wrote the template I needed.
It will need a little tweaking to be completely generic and/or
comprehensive, but it's addressing my current needs.

ed************@iname.com (Ed Trembicki-Guy) wrote in message news:<db**************************@posting.google. com>...
Does anyone know of an existing tool or template to merge the contents
of a base schema and an extension schema that uses the <redefine> tag
to extend the base schema?

I need to extract a subset of a very large schema so that I can use it
with JAXB. I have created an xslt template to do this, and it works
as long as the entire schema is in one file. The trouble is, I need
to work with an extended schema, and xslt does not recognize the
<redefine> tag as anything special, so it does not know how to include
the contents of the base schema.

I can probably build a pre-processing template that uses the
document() function in order to produce a merged schema, but I'd
rather use something that's already out there and working.

TIA for any suggestions.

Regards,
Ed

Jul 20 '05 #3

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

Similar topics

0
by: Jeremy Summers | last post by:
Has anyone run into problems creating typed datasets from complex schemas? I am attempting to create a Typed Dataset in Visual Studio .Net from a .xsd schema file for a industry standard web...
3
by: Kiran | last post by:
Hi, I want to back up my data in some table in SQL server and import it back using Bulk Load of SQL server 2K. I can use the following code to backup the data in XML ...
6
by: Larry Menard | last post by:
Folks, I know that DB2 does not (yet?) support this, but I wonder if anyone can suggest a work-around. I've seen article...
3
by: Sindarian | last post by:
I have a Schema from the folk that shows how they want the data received. I have my own database that has that data, but in a different way (they use 33 freaking tables to store what I do in 1)....
1
by: Najib Abi Fadel | last post by:
Hi i have an ordered table of dates let's say: 1/1/2004 8/1/2004 15/1/2004 29/1/2004 5/2/2004 12/2/2004
1
by: R.A.M. | last post by:
Hello, I am learning SQL Server 2005. I have (correctly) written in .NET assembly DemoSQLServer with aggregate function AvgNoMinMax in class Demo and I have added assembly to database...
16
by: pukivruki | last post by:
hi, I wish to create a temporary table who's name is dynamic based on the argument. ALTER PROCEDURE . @PID1 VARCHAR(50), @PID2 VARCHAR(50), @TICKET VARCHAR(20)
0
by: jackfrancy | last post by:
Hi , When I tried to create web reference (Proxy Class) from WSDL.EXE or Visual Studio 2003 web Reference Tool Following error has occurred . “The error message from each known type may help...
3
by: Bartholomew Simpson | last post by:
I am writing some C++ wrappers around some legacy C ones - more specifically, I am providing ctors, dtors and assignment operators for the C structs. I have a ton of existing C code that uses...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...

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.