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

RE: Null Values

Subject: RE: Null Values
From: Edmund Mitchell <EMitchell@xxxxxxx>
Date: Thu, 29 Mar 2001 12:06:29 -0800
xsl stylesheet null values
Hello

There is no standard XSLT function to do this.  You might want to have a
look at www.xmldb.org and see about their work along these lines.
In XSLT, you'd have to do something like:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
   <xsl:for-each select='//*[string(normalize-space(.))]'>
      <xsl:copy-of select='.'/>
	    <xsl:text>&#10;</xsl:text>
   </xsl:for-each>
</xsl:template>
</xsl:stylesheet>

-----Original Message-----
From: Lawrence Pravin [mailto:pravinl@xxxxxxxxxxx]

My requirement is to remove tag names when I convert from one xml to another

xml, if there is no data.
e.g
<F1>1234</F1>
<F2>1234</F2>
<F3></F3>
<F4>1234</F4>

to

<F1>1234</F1>
<F2>1234</F2>
<F4>1234</F4>

Is there any general method to do this, instead of checking node by node.



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


Current Thread
  • Null Values
    • Lawrence Pravin - Thu, 29 Mar 2001 14:57:17 -0500 (EST)
      • <Possible follow-ups>
      • Edmund Mitchell - Thu, 29 Mar 2001 15:07:14 -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.