Categories
- All Categories
- 15 Oracle Analytics Sharing Center
- 19 Oracle Analytics Lounge
- 222 Oracle Analytics News
- 44 Oracle Analytics Videos
- 15.8K Oracle Analytics Forums
- 6.1K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 83 Oracle Analytics Trainings
- 15 Oracle Analytics Data Visualizations Challenge
- Find Partners
- For Partners
Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture
Hide xml tags without data in transformed xml using xsl template in Fusion BIP reports

User_CFV13
Rank 1 - Community Starter
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.
Tagged:
0
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