W3C home > Mailing lists > Public > xsl-editors@w3.org > April to June 2002

RE: translating xsd's

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Tue, 2 Apr 2002 23:52:43 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E6210602679D08@daemsg02.software-ag.de>
To: "'Serrell, Rachael'" <rachael.serrell@csfb.com>, "'xsl-editors@w3.org'" <xsl-editors@w3.org>
XSLT is in principle capable of performing any transformation from one XML
document to another XML document, schemas included. But I'm afraid this list
isn't the place to ask for programming help: try the xsl-list at
www.mulberrytech.com.

Michael Kay

> -----Original Message-----
> From: Serrell, Rachael [mailto:rachael.serrell@csfb.com]
> Sent: 02 April 2002 16:33
> To: 'xsl-editors@w3.org'
> Subject: translating xsd's
> 
> 
> Hi, 
> I need to transform an xml schema which has attributes into a 
> schema whcih doesn't have attributes (due to an architecture 
> constraint), which in theory should work as an xsd is an xml 
> doc in itself..but I want to convert the structure, not the 
> structure of a populated xml doc ..as I'm not able to do this 
> conventionally on the content of a populated message, is this 
> possible? It's important this is automated as most publishers 
> will be publishing attributes but the broker can't handle them.
> ie, I want to convert the attribute to an element:
> 
> from:
> <xs:element name="size" default="1" minOccurs="0">
> 	<xs:complexType>
> 		<xs:simpleContent>
> 			<xs:extension base="xs:double">
> 				<xs:attribute name="metric" 
> type="bem:metricType" use="required"/>
> 						</xs:extension>
> 					</xs:simpleContent>
> 				</xs:complexType>
> 			</xs:element>
> 
> to:
> 
> <xs:element name="sizeMetric" type="bem:metricType" minOccurs="1"/>
> 
> 
> many thx for any help
> Rachael
> 
> This message is for the named person's use only. It may 
> contain sensitive and private proprietary or legally 
> privileged information. No confidentiality or privilege is 
> waived or lost by any mistransmission. If you are not the 
> intended recipient, please immediately delete it and all 
> copies of it from your system, destroy any hard copies of it 
> and notify the sender. You must not, directly or indirectly, 
> use, disclose, distribute, print, or copy any part of this 
> message if you are not the intended recipient. CREDIT SUISSE 
> GROUP and each legal entity in the CREDIT SUISSE FIRST BOSTON 
> or CREDIT SUISSE ASSET MANAGEMENT business units of CREDIT 
> SUISSE FIRST BOSTON reserve the right to monitor all e-mail 
> communications through its networks. Any views expressed in 
> this message are those of the individual sender, except where 
> the message states otherwise and the sender is authorized to 
> state them to be the views of any such entity.
> Unless otherwise stated, any pricing information given in 
> this message is indicative only, is subject to change and 
> does not constitute an offer to deal at any price quoted. Any 
> reference to the terms of executed transactions should be 
> treated as  preliminary only and subject to our formal 
> written confirmation.
> 
> 
Received on Tuesday, 2 April 2002 16:52:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:53 GMT