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

How to Remove Empty or Unpopulated Attributes When Co

Subject: How to Remove Empty or Unpopulated Attributes When Copying a File
From: floatingisland@xxxxxxx
Date: Sat, 01 Apr 2006 16:01:01 -0500
unpopulated
Hi,

I'm trying to copy everything in an XML file except unpopulated attributes or attributes containing only whitespace. So far, I have not been successful. Although I did manage to copy a file and delete all the attributes using a modified version the style sheet found here: http://www.abbeyworkshop.com/howto/xslt/copy_xml_document/index.html

I've tried variations of other examples, but so far no success. As a side note, does it make a difference in this case if the attributes (empty or populated) have namespaces, beyond including the namespaces in the XSLT Style Sheet.

If it makes a difference, I'm using the XSLT parser in PHP5, which I believe is the libxml parser. Any assistance you could provide would be helpful.

Thanks,

Greg

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-2007 All Rights Reserved.