473,405 Members | 2,171 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.

XML Schema: resolve finale resulting schema after inheritances and redefines

Hi,
i have a very complex XSD with frequently use of xsd:extension,
xsd:restriction and xsd:redefine. Now i would like to process
a XSL transformation based on the *resulted* Schema. But I
don't know, how I get the resulted schema.

Example:
========

[schemaA.xsd]
<xsd:complexType name="myElType" final="restriction">
<xsd:attribute name="id" type="xsd:ID" use="required"/>
</xsd:complexType>
<xsd:element name="myEl" type="fcms:myElType"/>

[schemaB.xsd]
<xsd:redefine schemaLocation="schemaA.xsd">
<xsd:complexType name="myElType">
<xsd:complexContent>
<xsd:extension base="fcms:myElType">
<xsd:attribute name="date" type="xsd:date" use="required"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:redefine>

RESULTED Schema would be:
<xsd:complexType name="myElType" final="restriction">
<xsd:attribute name="id" type="xsd:ID" use="required"/>
<xsd:attribute name="date" type="xsd:date" use="required"/>
</xsd:complexType>
<xsd:element name="myEl" type="fcms:myElType"/>
Is there any tool or idea, how I can resolve this Problem
(my prefered solution would be in saxon)

salute
Thomas
Sep 7 '05 #1
3 1285
Thomas Fischer writes:
i have a very complex XSD with frequently use of xsd:extension,
xsd:restriction and xsd:redefine. Now i would like to process
a XSL transformation based on the *resulted* Schema. But I
don't know, how I get the resulted schema.


XSV [1] has command line switches to process only schema document (no
validation of an instance) (-i) and reflect out the resulting PSVI(-r),
which contains the whole constructed schema in an XML representation
of the component structure.

Someone may have a stylesheet which can turn this back into schema
documents in the official XML representation -- it wouldn't be at all
hard to write.

ht

[1] http://www.ltg.ed.ac.uk/~ht/xsv-status.html
--
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]
Sep 7 '05 #2
Hi Henry,
thank you for your answer ...

Henry S. Thompson wrote:
[1] http://www.ltg.ed.ac.uk/~ht/xsv-status.html


.... but your URL doesn't work:
403 Forbidden
You don't have permission to access /~ht/xsv-status.html on this server.

salute
Thomas
Sep 7 '05 #3
Thomas Fischer writes:
Hi Henry,
thank you for your answer ...

Henry S. Thompson wrote:
[1] http://www.ltg.ed.ac.uk/~ht/xsv-status.html


... but your URL doesn't work:
403 Forbidden
You don't have permission to access /~ht/xsv-status.html on this server.


Sorry to all -- my machine was taken down by local computing staff for
most of yesterday :-( -- please try again.

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]
Sep 9 '05 #4

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

Similar topics

2
by: wooks | last post by:
<?xml version='1.0'?> <userlogin xmlns="urn:faster:userlogin" xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> <login>mick</login> <password>brown</password> </userlogin> Above is my...
0
by: C. M. Sperberg-McQueen | last post by:
wooks (wookiz@hotmail.com) wrote: > <?xml version='1.0'?> > <userlogin xmlns="urn:faster:userlogin" > xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'> > <login>mick</login> > ...
0
by: Michael Bane | last post by:
Am I right in thinking that... 1) in <redefine> I can either extend OR restrict a type but not both? 2) in <redefine> it's not possible to change a type from say <xs:string> to <xs:integer>? ...
4
by: Gordon Dickens | last post by:
I have target xml to generate from schema. All of the XML instances have the same global element i.e. <base>. I would like to combine all of the schemas into a single schema where I could...
0
by: kyancy | last post by:
Hello All. We have several XML schemas to describe common component document parts. We then create new XML schemas as necessary that use "xsd:import schemaLocation=whateverLocation.." to include...
1
by: Ed Bacon | last post by:
I am trying to produce a generic "audit report" for various transactions in our application. Each transaction type defines a document (and has an associated schema). When a transaction leads to a...
1
by: Mr. Almenares | last post by:
Hello: I’m trying to do a schema with recurrent structure for a Book like a Node can have many Nodes inside or One leave. So, the leaves have an attribute that is Identifier. My goal is define...
2
by: LesleyW | last post by:
I'm using a public set of schemas for GML, avaiable at www.opengis.net/gml. They all include or import each other but live in a folder hierarchy, so the import statement includes...
2
by: Glenn Davy | last post by:
Hi all I'm in the process of upgrading a job from .mdb to .adp->msde & am reconsidering some aspects of the design of me schema while I'm at it. One of the tasks of this job is to schedule the...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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.