Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 15 Oracle Analytics Lounge
- 214 Oracle Analytics News
- 43 Oracle Analytics Videos
- 15.7K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 78 Oracle Analytics Trainings
- 14 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Hide xml tags without data in transformed xml using xsl template in Fusion BIP reports

We are using xsl template in Fusion BIP report to create the output in xml format. Can you let us know if there is a way in xsl template to not display the tags in transformed xml when there is no data. There are multiple xml tags and we don't want to add <xsl:if> for each of the tags in xsl template. Is there any better approach to handle it.
Any response and solution is appreciated.
Answers
-
0
-
Hi @User_CFV13 ,
Can you try using the test option?
Like this for example, to hide a description field when its null.
<xsl:if test="DESCRIPTION and string-length(DESCRIPTION) > 0">
<xsl:element name="description">
<xsl:value-of select="DESCRIPTION"/>
</xsl:element>
</xsl:if>
0