MOSS advanced search customization — Case does matter in advanced search XSLT

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.

 

One thought on “MOSS advanced search customization — Case does matter in advanced search XSLT

  1. Ashish Kanoongo
    Hello
     
    I am also facing same problem. I have also added 2 fields, but datas are not populating. Did you resolve the issue?
     
    Ashish
    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *