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

RE: omitting nodes in output doc

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Thu, 8 May 2003 19:31:27 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DCE01@daemsg02.software-ag.de>
To: "Serrell, Rachael" <rachael.serrell@csfb.com>, xsl-editors@w3.org

This list is for comments on the published W3C specifications. For help with
XSLT coding, please use the xsl-list at www.mulberrytech.com

Thank you!

Michael Kay

> -----Original Message-----
> From: Serrell, Rachael [mailto:rachael.serrell@csfb.com] 
> Sent: 08 May 2003 17:23
> To: xsl-editors@w3.org
> Subject: omitting nodes in output doc
> Hi, I need to create a new xsd from an existing xsd, but 
> omitting sections from the existing one..
> say I have in the original xsd
> <xs:complexType name="TradeEnvType">
> 		<xs:sequence>
> 			<xs:element name="Id" type="IdType" 
> maxOccurs="unbounded"/>
> 			<xs:element name="tradeDateTime" 
> type="xs:dateTime"/>
> 			<xs:element name="Version" 
> type="VersionType" minOccurs="0"/>
> 			<xs:element name="ApprovalDetails" 
> type="ApprovalDetailsType" maxOccurs="unbounded"/>
> 	</xs:sequence>
> </xs:complexType>
> In this example I want to output in the new xsd
> <xs:complexType name="TradeEnvType">
> 		<xs:sequence>
> 					<xs:element 
> name="tradeDateTime" type="xs:dateTime"/>
> 			</xs:sequence>
> </xs:complexType>
> (ie, minus Id, Version and ApprovalDetails) ..I thought I 
> could copy the required parts at each node (the whole doc is 
> a lot more structured than the e.g), but the number of nodes 
> to cut out is far fewer... If I do <xsl:copy-of 
> select="node()"/>  from the top, is there a way I can simply 
> identify the elements and their complex types that I want to 
> cut out with a command that will do this?
> many thx
> 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 
> 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 Thursday, 8 May 2003 13:31:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:22 UTC