Support #4431
Updated by Michael Kay over 4 years ago
Hi, I've an XML with the following structure ~~~ <xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/> <xsl:template match="/"> <DATA> <categories> <category ID="1"> <value>A</value> <value>B</value> <value>C</value> </category> <category ID="2"> <value/> </category> </categories> </DATA> </xsl:template> ~~~ I made a XSLT with a for each like this ~~~ <xsl:for-each select="DATA/categories/category/value"> <ROW MODID="" RECORDID=""> <COL><FIELD><xsl:value-of select="."/></FIELD ></COL> </ROW> </xsl:for-each> ~~~ But this returns the empty value of `<category ID="2">` <category ID="2"> I need this to be streamable because the file is 1.46 GB So I've read about `<xsl:on-non-empty>` <xsl:on-non-empty> but I'm a noob and I can't find how to make it work with for each Thanks