I tried this, and looking around for information on the w3
recommendation and others. I add the string and nothing is changed. The
field will not populate in my output table at all if it is an empty
string. If I have any character, or no attribute in the file at all, it
flags red as I wish. I have attached what my origional code was, and
what I changed it to. I have tried many things to get this to work, but
as I said I'm fairly new to this.
<xsl:choose>
<xsl:when
test="CMS27420100_2000C/CMS27420300_2100CA/CMS27420300_2100CA_NM1_ProviderName/@CMS27420300_2100CA_NM103_ProviderLastOrOrganizati onName
!= 0">
<td>
<xsl:value-of
select="CMS27420100_2000C/CMS27420300_2100CA/CMS27420300_2100CA_NM1_ProviderName/@CMS27420300_2100CA_NM103_ProviderLastOrOrganizati onName"/>
</td>
</xsl:when>
<xsl:otherwise>
<td bgcolor="RED"> </td>
</xsl:otherwise>
---------------------------
<xsl:choose>
<xsl:when
test="string(CMS27420100_2000C/CMS27420300_2100CA/CMS27420300_2100CA_NM1_ProviderName/@CMS27420300_2100CA_NM103_ProviderLastOrOrganizati onName)
!= 0">
<td>
<xsl:value-of
select="CMS27420100_2000C/CMS27420300_2100CA/CMS27420300_2100CA_NM1_ProviderName/@CMS27420300_2100CA_NM103_ProviderLastOrOrganizati onName"
/>
</td>
</xsl:when>
<xsl:otherwise>
<td bgcolor="RED"> </td>
</xsl:otherwise>
Thanks
Joe Kesselman wrote:
re*****@gmail.com wrote: there a way to flag both if the attribute has not populated and if it
is just a blank attribute ("")
First thought that occurs to me is string(@yourattribute)="", which
should be true for either case.
>is there a term for just ""
The most commonly used term is "empty string".
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry