I don’t modify advanced search XSLT very often, so it seems like I’m climbing small hills every time.
My newest lesson is this: Case matters when referencing a column. In my advanced search, I have columns defined as this:
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Columns>
<Column Name="GafTrainingInvoiceNumber" />
<Column Name="GafTrainingInvoiceLocation" />
<Column Name="WorkId"/>
<Column Name="Rank"/>
<Column Name="Title"/>
<Column Name="Author"/>
<Column Name="Size"/>
<Column Name="Path"/>
<Column Name="Description"/>
<Column Name="Write"/>
<Column Name="SiteName"/>
<Column Name="CollapsingStatus"/>
<Column Name="HitHighlightedSummary"/>
<Column Name="HitHighlightedProperties"/>
<Column Name="ContentClass"/>
<Column Name="IsDocument"/>
<Column Name="PictureThumbnailURL"/>
</Columns>
</root>
The XLST that displays the invoice number and invoice location had been:
<p>
Training Invoice Number: <xsl:value-of select="GafTrainingInvoiceNumber"/>
<br></br>
Training Invoice Location: <xsl:value-of select="GafTrainingInvoiceLocation"/>
</p>
However, the select has to reference the property in all lower case, as in:
<p>
Training Invoice Number: <xsl:value-of select="gaftraininginvoicenumber"/>
<br></br>
Training Invoice Location: <xsl:value-of select="gaftraininginvoicelocation"/>
</p>
Until I corrected that, search results showed the labels (i.e. "Training Invoice Number") but no data.