Project

Profile

Help

Support #4431

closed

<xsl:on-non-empty> and for-each

Added by Vincent Norbert over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2020-01-17
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

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">

I need this to be streamable because the file is 1.46 GB

So I've read about <xsl:on-non-empty> but I'm a noob and I can't find how to make it work with for each

Thanks

Please register to edit this issue

Also available in: Atom PDF