Subject: RE: [xsl] Null Values From: Edmund Mitchell <EMitchell@xxxxxxx> Date: Thu, 29 Mar 2001 12:06:29 -0800 |
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> </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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] value of an element, Java XML | Thread | [xsl] Null Values, Lawrence Pravin |
RE: [xsl] xml to html paragraphing, Pinch, David | Date | Re: [xsl] When test expression, Paul Dupuy, Jr. |
Month |