468,290 Members | 1,993 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,290 developers. It's quick & easy.

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 1471
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Kiran | last post: by
6 posts views Thread by Larry Menard | last post: by
3 posts views Thread by Sindarian | last post: by
1 post views Thread by Najib Abi Fadel | last post: by
3 posts views Thread by Bartholomew Simpson | last post: by
2 posts views Thread by MrBee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.