RE: omitting nodes in output doc

"Kay, Michael" <[email protected]>
Newsgroups gmane.org.w3c.xsl-editors
Message-ID <[email protected]>
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:[email protected]] 
> Sent: 08 May 2003 17:23
> To: [email protected]
> 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 
> 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.
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.