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

RE: xsl:copy

Subject: RE: xsl:copy
From: "Dudley, Mark" <Mark.Dudley@xxxxxxxxxxxxx>
Date: Thu, 28 Jun 2001 08:11:35 -0400
xsl copy use attribut sets
Hello Franck,

Try this instead:

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

<xsl:template match="@*">
	<xsl:copy/>
</xsl:template>

The key is to apply templates to the attribute nodes as well as any children
elements and text nodes.

Mark Dudley
Xerox, Corp.

-----Original Message-----
From: franck delarue [mailto:frdelarue2000@xxxxxxxx]
Sent: Thursday, June 28, 2001 7:48 AM
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  xsl:copy


hi everybody,
I'd like to use a xsl file that copy the xml file
except some particular tags (in fact single tags like
<hello/>, <bye/>,...). I can do that by copying every
tag of the xml but I'd like an automatic method to
copy the knotes of the xml file and its attributes.

I've used :  
 <xsl:template match="*">
  <xsl:copy> 
   <xsl:apply-templates/>
  </xsl:copy>
 </xsl:template>

it copies every knotes but that method doesn't copy
the atributes of the knotes! I know  that there is an
argument to the <xsl:copy> : use-attribut-sets , but I
don't know how to use it and if it can help me.

Thanks in advance.

=====
__________________________________    ___      ____          \
\  |    \   /    |               \  F R A N C K     D E L A R U E  \  \
\_/    /                   /  + - + - + -     + - + - + - +  /   \
//_________________________________/     \       /
\_____/

___________________________________________________________
Do You Yahoo!? -- Pour faire vos courses sur le Net, 
Yahoo! Shopping : http://fr.shopping.yahoo.com

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

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


Current Thread
  • xsl:copy
    • franck delarue - Thu, 28 Jun 2001 07:53:15 -0400 (EDT)
      • <Possible follow-ups>
      • Dudley, Mark - Thu, 28 Jun 2001 08:17:26 -0400 (EDT) <=

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.