[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

selection for xsl:copy

Subject: selection for xsl:copy
From: "Nyberg, Marcus" <mny@xxxxxxxxx>
Date: Thu, 8 Mar 2001 13:13:11 +0100
xslt copy all elements except
Hello!

I'm going to use XSLT to transform one XML-document into another
XML-document. I want to copy all elements from file A (except the element
"archref") to file B.

A.xml

<test>
  <entry colname="blah blah">
    <archref href="e11_34.xml#string(all,"{89308-34234-39840A}") ">
       <unitid>e11/34</unitid>
    </archref>
  </entry>
  <entry colname="blah blah"> '{4243234-AB34435-30008}' 
  </entry>
  <entry colname="blah blah"> '{8434222-C24214-E32323}'
 </entry>
</test>

B.xml

<test>
  <entry colname="blah blah">
  </entry>
  <entry colname="blah blah"> '{4243234-AB34435-30008}' 
  </entry>
  <entry colname="blah blah"> '{8434222-C24214-E32323}'
 </entry>
</test>


I was thinking of using something like the following XSLT to make the
transformation

 <xsl:template match="@*|*|text()">
   <xsl:copy> 
     <xsl:apply-templates select="@*|*|text()"/>
   </xsl:copy>
 </xsl:template>

I need your help to make the XSLT that copies all elements except the
archref-element.

Regards!

/Marcus





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.