I have a custom xsl file that I use to show items in bold when a boolean fields equals to false.
I've set up the xsl using SharePoint Designer, then I exported the Xsl node in a xsl file. I deploy this xsl file using a feature, and I reference it from views node in a list schema using the XslLink node.
My condition is this one :
<tr>
<xsl:attribute name="style">
<xsl:if test="normalize-space($thisNode/@IsRead.value) != '1'"
ddwrt:cf_explicit="1">font-weight: bolder;</xsl:if>
<xsl:if test="$Collapse">display:none;</xsl:if>
</xsl:attribute>
When the IsRead is false, the row should appears in bold.
This condition is working only if I include the field in the viewfields of my view. If I remove it, the condition is always true.
I remove the field from the viewfields, because I don't want to display the value of field, just using it for display rule.
Can I use a non displayed field in a formatting rule ? How can I avoid to put my field in the viewfields?