Print

Print


Any chance that the titles in question have an <emph> element or a special character/diacritic?  We've encountered glitches with both those things. 

Michele

(be green - don't print this email!)
~~~~~~~~~~~~~~~~~~
Michele Combs
Manuscripts Librarian
Special Collections Research Center
Syracuse University Libraries
222 Waverly Ave.
Syracuse, NY  13244
315-443-2081
[log in to unmask]
~~~~~~~~~~~~~~~~~~ 




-----Original Message-----
From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Robert Young Walser
Sent: Monday, April 12, 2010 5:16 PM
To: [log in to unmask]
Subject: Mysterious xsl search results

Searching our giant EAD instance with XSL is producing strange results. The EAD document includes item-level descriptions which often include multiple titles: a primary title in the <did><unittitle><title> and sometimes multiple alternate titles in <scopecontent><p><title> tags. 

We've been using xsl stylesheets to locate text in these titles using these xsl statements:
After creating a node-set of all the items in the collection
<xsl:for-each select=".//title">
	<xsl:if test="contains(string(.) , $SearchTitle)">
              code to display the item

What is odd is that the results are consistent but not what I'd expect.
The search string is only found some of the time when the test is true. In other words, the xsl consistently misses some items for which the test should be true. Any advice on tracing this mystery?

Thanks,
Bob Walser
The James Madison Carpenter Project
www.hrionline.ac.uk/carpenter