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

xsl:copy question

Subject: xsl:copy question
From: "" <ds5j@xxxxxxxxxx>
Date: Mon, 20 Jan 2003 16:04:19 -0500 (EST)
 xsl:copy question
Hi,

   While editing a copy stylesheet to copy everything except empty attributes I came across some weird results.

   I got th stylesheet to work but did not understand why some attributes were being copied to the next node.

Example:






The problem ocurred with following input:



Output was:



Somehow the stylesheet was copying until it encountered an empty attributed and then it went to the next node and copied the rest of the attributes from the previous node into the next node.

I fixed the stylsheet but would like to understand what was going on and why I go weird results.

My fix was :






I just would to undersrand what was happening , I'm sure the original code was buggy but what was wrong with it?

thanks

D.



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!

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


Current Thread
  • xsl:copy question
    • - Mon, 20 Jan 2003 16:03:44 -0500 (EST) <=
      • <Possible follow-ups>
      • - Fri, 24 Jan 2003 21:30:58 -0500 (EST)

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.