If you're going to be printing each non-empty element out, you could do the following:
Code: ( xml )
-
<xsl:for-each select="my:PODBatch/my:POD/my:Customer/*[.!='']"><!-- select all non-empty elements -->
-
<xsl:value-of select="."/><br/>
-
</xsl:for-each>
Otherwise, you can do the following:
1. Declare the xsi namespace in your stylesheet node.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2. If test
Code: ( text )
-
<xsl:if test="my:PODBatch/my:POD/my:Customer/my:CustomerAddressLine1 != ''"/>
-
<xsl:value-of
-
select="my:PODBatch/my:POD/my:Customer/my:CustomerAddressLine1"/><br/>
-
</xsl:if>