473,405 Members | 2,141 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,405 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 1669
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.