Hindi ko baguhin ang masusing paghahanap XSLT napakadalas, kaya ito tila ako climbing maliit na burol sa bawat oras.
Aking pinakabagong araling ito ay: Kaso mahalaga kapag tumutukoy sa isang hanay. Sa aking masusing paghahanap, Ko ang mga haligi tinukoy bilang na ito:
<ugat xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Mga Haligi>
<Column Pangalan="GafTrainingInvoiceNumber" />
<Column Pangalan="GafTrainingInvoiceLocation" />
<Column Pangalan="WorkId"/>
<Column Pangalan="Ranggo"/>
<Column Pangalan="Pamagat"/>
<Column Pangalan="May-akda"/>
<Column Pangalan="Laki"/>
<Column Pangalan="Landas"/>
<Column Pangalan="Paglalarawan"/>
<Column Pangalan="Sumulat"/>
<Column Pangalan="SiteName"/>
<Column Pangalan="CollapsingStatus"/>
<Column Pangalan="HitHighlightedSummary"/>
<Column Pangalan="HitHighlightedProperties"/>
<Column Pangalan="Contentclass"/>
<Column Pangalan="IsDocument"/>
<Column Pangalan="PictureThumbnailURL"/>
</Mga Haligi>
</ugat>
Ang XLST na nagpapakita ng mga numero ng invoice at invoice lokasyon ay hindi naging:
<p>
Training Invoice Number: <xsl:halaga-ng piliin="GafTrainingInvoiceNumber"/>
<br></br>
Training Invoice Location: <xsl:halaga-ng piliin="GafTrainingInvoiceLocation"/>
</p>
Gayunman, the select has to reference the property in all lower case, tulad ng sa:
<p>
Training Invoice Number: <xsl:halaga-ng piliin="gaftraininginvoicenumber"/>
<br></br>
Training Invoice Location: <xsl:halaga-ng piliin="gaftraininginvoicelocation"/>
</p>
Until I corrected that, search results showed the labels (i.e. "Training Invoice Number") but no data.