<?xml version="1.0"  encoding="UTF-8" standalone="no"?> 
<!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by Pat Case (Library of Congress) -->
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by Pat Case (CRS) -->
<!--<!DOCTYPE spec SYSTEM "C:\w3c\FTTF\Use Cases\xmlspec.dtd" [-->
<!DOCTYPE spec SYSTEM "http://www.w3.org/2002/xmlspec/dtd/2.2/xmlspec.dtd" [
<!ENTITY date.day "14">
<!ENTITY date.month "February">
<!ENTITY date.monthnum "02">
<!ENTITY date.year "2003">
<!ENTITY doc.date "&date.year;&date.monthnum;&date.day;">
<!ENTITY doc.prefix "WD-xmlquery-full-text-use-cases">
<!ENTITY url.group "http://www.w3.org/XML/Group/">
<!ENTITY url.group.ql "&url.group;xmlquery/">
<!ENTITY url.internal "http://www.w3.org/Style/XSL/Group/xpath2-tf/&doc.prefix;-&doc.date;.html">
<!ENTITY url.external "http://www.w3.org/TR/&date.year;/&doc.prefix;-&doc.date;/">
<!ENTITY url.this "&url.external;">
<!ENTITY w3c.tr "http://www.w3.org/TR">
<!ENTITY doc.shortname "xmlquery-full-text-use-cases">
<!ENTITY doc.w3c-designation "WD-&doc.shortname;">
<!ENTITY doc.publoc "&w3c.tr;/&date.year;/&doc.w3c-designation;-&doc.date;">
<!ENTITY doc.latestloc "&w3c.tr;/&doc.shortname;">
<!ENTITY nbsp "&#160;">
]>
<!--<?xml-stylesheet type="text/xsl" href="C:\w3c\FTTF\Use Cases\full-text.xsl"?>-->
<?xml-stylesheet type="text/xsl" href="full-text.xsl"?>
<spec w3c-doctype="wd">
<header>
<title>XQuery and XPath Full-Text Use Cases</title>
<version/>
<w3c-designation>&doc.w3c-designation;-&doc.date;</w3c-designation>
<w3c-doctype>W3C Working Draft</w3c-doctype>
<pubdate>
<day>&date.day;</day>
<month>&date.month;</month>
<year>&date.year;</year>
</pubdate>
<!--<publoc>
<loc href="&doc.publoc;">&doc.publoc;</loc>
</publoc>-->
<publoc>
<loc href="&url.this;">&url.this;</loc>
</publoc>
<altlocs>
<loc href="&url.this;xmlquery-full-text-use-cases.xml">XML</loc>
</altlocs>
<latestloc>
<loc href="&doc.latestloc;">&doc.latestloc;</loc>
</latestloc>
<!--<prevlocs>
			<loc href="http://www.w3.org/TR/2001/WD-xmlquery-text-use-cases-20020831">
            http://www.w3.org/TR/2001/WD-xml-query-text-use-cases-20020831</loc>
		</prevlocs>-->
<authlist>
<author>
<name>Sihem Amer-Yahia</name>
<affiliation>AT&amp;T Labs</affiliation>
</author>
<author>
<name>Pat Case</name>
<affiliation>Library of Congress</affiliation>
</author>
</authlist>
<status>
<p>This is a public W3C Working Draft for review by W3C Members and other interested parties. This section describes the status of this document at the time of its publication. It is a draft document and may be updated, replaced, or made obsolete by other documents at any time. It is inappropriate to use W3C Working Drafts as reference material or to cite them as other than "work in progress." A list of current public W3C technical reports can be found at <loc href="http://www.w3.org/TR/">http://www.w3.org/TR/. </loc>
</p>
<p>The Full-Text Use Cases have been defined jointly by the <loc href="http://www.w3.org/XML/Query.html">XML Query Working Group</loc> 
and the <loc href="http://www.w3.org/Style/XSL/">XSL Working Group</loc> (both parts of the <loc href="http://www.w3.org/XML/Activity.html">XML Activity</loc>) .</p>
<p>The Full-Text Use Cases are published in conjunction with the <loc href="http://www.w3.org/TR/xmlquery-full-text-requirements">XQuery and XPath Full-Text Requirements</loc>.</p>
<p>This is the first version of this document.</p>
<p>This document is a work in progress. It contains many open issues, and should not be considered to be fully stable. Vendors who wish to create preview implementations 
based on this document do so at their own risk. While this document reflects the general consensus of the working groups, there are still controversial areas that may be subject to change.</p>
<p>Public comments on this document and its open issues are welcome. Comments should be sent to the W3C XPath/XQuery mailing list, 
          <loc href="mailto:public-qt-comments@w3.org">public-qt-comments@w3.org</loc>
          (archived at
          <loc href="http://lists.w3.org/Archives/Public/public-qt-comments/">http://lists.w3.org/Archives/Public/public-qt-comments/</loc>).
          </p>
<p>Patent disclosures relevant to this specification may be found on the XML Query Working Group's patent disclosure page 
at <loc href="http://www.w3.org/2002/08/xmlquery-IPR-statements">http://www.w3.org/2002/08/xmlquery-IPR-statements</loc>
         and on the XSL Working Group's patent disclosure page at <loc href="http://www.w3.org/Style/XSL/Disclosures">http://www.w3.org/Style/XSL/Disclosures</loc>.</p>
<p> A list of current W3C Recommendations and other technical documents
          can be found at <loc href="http://www.w3.org/TR/">http://www.w3.org/TR/</loc>.
          </p>
<!-- ############### Update the status ################# -->
</status>
<abstract>
<p>This document specifies usage scenarios for full-text
queries as part of XML Query  <bibref ref="XQuery"/> and XPath 
<bibref ref="XPath2"/>. </p>
</abstract>
<langusage>
<language id="EN">English</language>
</langusage>
<revisiondesc>
<p/>
</revisiondesc>
</header>
<body>
<div1>
<head>Full-Text Use Cases: Preliminaries</head>
<div2>
<head>Proper Display of This Unicode Document</head>
<p>(1) Use a current operating system and browser.</p>
<p>(2) Set the character encoding in the browser to Unicode or UTF-8. Often this setting is changed from the View menu.</p>
</div2>
<div2>
<head>Introduction</head>
<p>The use cases listed below were created by XML Query and XSL Working Groups, to illustrate important applications of full-text 
querying within an XML query language. Each use case exercises a specific functionality relevant to full-text querying. A Schema 
and sample input data are provided. Each use case specifies a set of queries that might be applied to the input data, and the expected 
results for each query. In a future version, the use cases will be republished with solutions in XQuery and/or XPath.</p>
<p>The document supplements the XML Query Use Cases which can be found in the W3C
XML Query Use Cases <bibref ref="XQuery-UseCases"/>. Use cases for character string querying are included in the XML Query Use Cases, not in this document.</p>
<p>The full-text queries in the following use cases are performed on text
which has been tokenized, i.e., broken into a sequence of words,
units of punctuation, and spaces. A word is defined as any character, n-gram, or sequence of characters
returned by a tokenizer as a basic unit to be queried. Each instance of a word consists of 0 or more
consecutive characters. Beyond that words are implementation defined. Note that consecutive words need not be separated by either
punctuation or space, and words may overlap. Tokenization enables functions and operators which work with the relative positioning of words (e.g., proximity operators). 
Tokenization also enables functions and operators which operate on a part or the root of the word (e.g., wildcards, stemming).</p>
<p>A phrase is a sequence of ordered words. A sequence can contain any number of words.</p>
<p>These use cases:</p>
<p>(1) Present some possible functions and features for tokenized text support in XQuery and XPath. None are yet available in 
XQuery or XPath. Please comment on these use cases and recommend others.</p>
<p>(2) Illustrate simple and complex queries. The more complex queries would normally only be constructed by programmers, librarians, and other expert users, 
or provided for novice users via saved queries or graphical user interfaces.  Each query is intended to illustrate a single functionality, although queries might 
overlap in their functionalities (e.g., phrases and ordered proximity queries allowing no intervening words). Overlapping and similar functionalities are noted in 
the comments on query behavior.</p>
<p>(3) Draw from sample data which are almost entirely in English. Use cases in other languages are solicited, especially where they 
illustrate language-specific implementations of functions and features. Among the most sought after are use cases for queries 
using prefix and infix wild cards, proximity queries, and operators and queries requiring functionality which may not have Western language equivalents.</p>
<p>(4) Include queries which in most instances can be written with pure Boolean full-text predicates or 
with scoring (e.g., scoring on the number of occurrences of a word or phrase,
scoring on how close words are to one another within a proximity
query, scoring on how similar a word is to the one being
stemmed) <bibref ref="BYR99"/>
<bibref ref="HTK00"/>. A few, in Section 12 (SCORE), cannot be written with Boolean full-text predicates. Scoring methodologies will not be defined in this standard. Scoring will be 
implementation-defined. Results are provided in document order, except those in Section 12 (SCORE). 
Results could be returned ordered differently, such as by relevance (based on 
implementation-defined scoring) or explicitly by an element.</p>
<p>(5) Include queries on element content and attribute values.</p>
<p>(6) Include queries which are case-insensitive. When
returning a paragraph, the text is returned as it occurs in the data model. This approach was chosen to keep the sample data short and the expected 
results meaningful. It would have be equally valid to return only the character queried. An variation is found in Section 5 (CHARACTER-MANIPULATION). </p>
<p>(7) Include queries which when they target XML elements are understood,
unless otherwise stated, to query text within any text node descendant of the element.</p>
<p>(8) Include queries which return only elements and attributes which meet all the conditions specified in the query. In particular, Boolean queries return results 
where the Boolean conditions in the query are satisfied, i.e., are used to select what is being returned to users.</p>
<p>Query results may be returned in different ways. From a query for books containing the word "usability", users might be interested in returning, for each
book containing the word "usability", its number and its entire content. In another situtation for the same query, users might be interested in
returning, for each book containing the word "usability", its number and only the elements and attributes in the content which contain the word "usability". As in this second situation, the queries in
these use cases return only elements and attributes which meet all the conditions specified in the query. </p>
<p>The Return clause may also include additional or different elements and attributes if specified, and may construct new elements. </p>
<p>(9) Include queries which provide some of the basic functionality of fuzzy match querying  (e.g., wildcards, stemming, dictionary and thesaurus support, proximity).</p>
<p>(10) Provide highlighting of found words and phrases in the expected results of queries as an aid to users. 
The presence of highlighting says nothing about whether highlighting will be a 	feature of XQuery or XPath full-text querying.</p>
<p>(11) Display no Solutions in XQuery because no decisions have been taken on syntax. They will be added in a future version.</p>
<!---Several implementors have asked that we make the
            queries from these use cases available in a separate file
            to make it easier for them to test their parsers.  These
            queries may be found in <bibref ref="UseCaseQueries"/>. Also, the queries from the XQuery
            specification itself have been made available in <bibref ref="XQueryQueries"/>.-->
<p>Examples of full-text querying functionalities for XML query languages
can be found in <bibref ref="FGR01"/>, <bibref ref="HTK00"/>,
<bibref ref="MJK98"/>, <bibref ref="SCH01"/> and <bibref ref="TWE00"/>.</p>
<p>To make the output more readable, the output of queries has been 
formatted using whitespace which may not be returned by a query 
processor. This whitespace should not be considered normative 
for the correctness of results.</p>
<p>These use cases represent a snapshot of an ongoing work. Some
important operators and features are not yet adequately covered by a
use case. The XML Query and XSL Working Groups reserve the right to
add, delete or modify individual queries or whole use cases as the
work progresses. The presence of a query in this set of use cases does
not necessarily indicate that the query will be expressible in XQuery
 <bibref ref="XQuery"/> and/or XPath  <bibref ref="XPath2"/>
to be created by the XML Query and XSL Working Groups.</p>
</div2>
<div2>
<head>Explanation of Query Statements</head>
<p>The queries in these use cases are presented in the following format:</p>
<p>Query number &nbsp;&nbsp;Query title</p>
<p>User statement of query</p>
<p>Statement of functionality illustrated by query</p>
<ulist>
<item>
<p>Operands: Parts of words, words, phrases</p>
</item>
<item>
<p>Functionality: Operators, functions, collations, other functionality</p>
</item>
<item>
<p>Context: One or more XPath expressions locating the elements and attributes to be queried</p>
</item>
<item>
<p>Return: One or more XPath expressions which are returned only if they meet all the conditions specified in the query, and additional or different XPath expressions if specified. 
These may include constructed elements. </p>
</item>
<item>
<p>Comments: Comments on query behavior in general and against the sample data in particular, plus the rationale for including 
				this query in the use cases.</p>
</item>
<item>
<p>Version: Each query is marked as "For consideration in v.1" or "For consideration after v.1".</p>
</item>
</ulist>
<!--- <p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>Results are provided here.
Found words and phrases are <phrase role="found">highlighted</phrase>. 
Three dots "..." replace elements and content to shorten results.</eg>
</div2>
<div2>
<head>Schema for Sample Data</head>
<p>The example queries in these use cases are based on a
                collection with the following Schema:</p>
<eg role="schema"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" version="1.0">
<xs:import namespace="http://www.w3.org/XML/1998/namespace" 
schemaLocation = "http://www.w3.org/2001/xml.xsd"/>
   <xs:element name="books">
      <xs:annotation>
      	  <xs:documentation>A possible XML Schema for Sample Data 
      	  in XQuery and XPath  Full-Text Use Cases</xs:documentation>
      </xs:annotation>
      <xs:complexType>
      	  <xs:sequence maxOccurs="unbounded">
      	     <xs:element name="book">
      	        <xs:complexType>
      	           <xs:sequence>
      	              <xs:element name="metadata">
      	                 <xs:complexType>
      	                    <xs:complexContent>
      	                       <xs:extension base="metadataType"/>
      	                    </xs:complexContent>
      	                 </xs:complexType>
      	              </xs:element>
      	              <xs:element name="content" type="contentType"/>
      	           </xs:sequence>
      	           <xs:attribute name="number" type="xs:integer" 
      	           use="required"/>
      	        </xs:complexType>
      	     </xs:element>
      	  </xs:sequence>
      </xs:complexType>
   </xs:element>
   <xs:complexType name="anyXMLTextType" mixed="true">
      <xs:annotation>
      	  <xs:documentation>free text, contains any well-formed 
      	  XML</xs:documentation>
      </xs:annotation>
      <xs:sequence>
      	  <xs:any processContents="skip" minOccurs="0" 
      	  maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="metadataType">
      <xs:sequence>
      	  <xs:element name="title" type="xs:string">
            <xs:complexType>
               <xs:complexContent>
                  <xs:extension base="titlesType">
                     <xs:attribute name="shortTitle" type="xs:string" 
                     use="required"/>
                  </xs:extension>
               </xs:complexContent>
            </xs:complexType>
         </xs:element>
      	  <xs:element name="authors" type="authorsType" 
      	  minOccurs="0"/>
      	  <xs:element name="publicationInfo" 
      	  type="publicationInfoType"/>
      	  <xs:element name="price" minOccurs="0">
      	     <xs:simpleType>
      	        <xs:restriction base="xs:float">
      	           <xs:minInclusive value="0"/>
      	           <xs:maxInclusive value="10000"/>
      	        </xs:restriction>
      	     </xs:simpleType>
      	  </xs:element>
      	  <xs:element name="subjects" maxOccurs="unbounded">
      	     <xs:complexType>
      	        <xs:complexContent>
      	           <xs:extension base="subjectsType">
      	              <xs:attribute ref="xml:lang" use="required"/>
      	           </xs:extension>
      	        </xs:complexContent>
      	     </xs:complexType>
      	  </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="authorsType">
      <xs:sequence>
      	  <xs:element name="author" type="xs:string" minOccurs="0" 
      	  maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="subjectsType">
      <xs:sequence>
      	  <xs:element name="subject" type="xs:string" 
      	  maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="publicationInfoType">
      <xs:sequence>
      	  <xs:element name="place" type="xs:string" minOccurs="0"/>
      	  <xs:element name="publisher" type="xs:string" 
      	  maxOccurs="unbounded"/>
      	  <xs:element name="dateIssued" type="xs:string"/>
      	  <xs:element name="dateRevised" type="xs:string"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="contentType">
      <xs:sequence>
      	  <xs:element name="introduction" type="introductionType" 
      	  minOccurs="0"/>
      	  <xs:element name="part" maxOccurs="unbounded">
      	     <xs:complexType>
      	        <xs:complexContent>
      	           <xs:extension base="partType">
      	              <xs:attribute name="number" type="xs:string" 
      	              use="required"/>
      	           </xs:extension>
      	        </xs:complexContent>
      	     </xs:complexType>
      	  </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="introductionType">
      <xs:sequence>
      	  <xs:element name="author" type="xs:string" minOccurs="0"/>
      	  <xs:element name="p" maxOccurs="unbounded">
      	     <xs:complexType mixed="true">
      	        <xs:choice minOccurs="0" maxOccurs="unbounded">
      	           <xs:element name="b"/>
      	           <xs:element name="emph"/>
      	           <xs:element name="i"/>
      	        </xs:choice>
      	     </xs:complexType>
      	  </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="partType">
      <xs:sequence>
      	  <xs:element name="container" minOccurs="0">
      	     <xs:complexType>
      	        <xs:simpleContent>
      	           <xs:extension base="xs:string">
      	              <xs:attribute name="type" type="xs:string" 
      	              use="required"/>
      	           </xs:extension>
      	        </xs:simpleContent>
      	     </xs:complexType>
      	  </xs:element>
      	  <xs:element name="title" type="titleType" minOccurs="0"/>
      	  <xs:element name="introduction" type="introductionType" 
      	  minOccurs="0"/>
      	  <xs:element name="chapter" type="chapterType" 
      	  minOccurs="0" maxOccurs="unbounded"/>
      	  <xs:element name="component" type="componentType" 
      	  minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="chapterType">
      <xs:sequence>
      	  <xs:element name="title" type="xs:string"/>
      	  <xs:element name="p" type="anyXMLTextType" 
      	  maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="footnoteType" mixed="true">
      <xs:sequence>
      	  <xs:element name="citation" minOccurs="0" 
      	  maxOccurs="unbounded">
      	     <xs:complexType>
      	        <xs:simpleContent>
      	           <xs:extension base="xs:string">
      	              <xs:attribute name="url" type="xs:anyURI" 
      	              use="required"/>
      	           </xs:extension>
      	        </xs:simpleContent>
      	     </xs:complexType>
      	  </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="componentType">
      <xs:sequence>
      	  <xs:element name="container" minOccurs="0">
      	     <xs:complexType>
      	        <xs:simpleContent>
      	           <xs:extension base="xs:string">
      	              <xs:attribute name="type" type="xs:string" 
      	              use="required"/>
      	           </xs:extension>
      	        </xs:simpleContent>
      	     </xs:complexType>
      	  </xs:element>
      	  <xs:element name="componentTitle">
      	     <xs:complexType mixed="true">
      	        <xs:complexContent mixed="true">
      	           <xs:extension base="componentTitleType"/>
      	        </xs:complexContent>
      	     </xs:complexType>
      	  </xs:element>
      	  <xs:element name="subComponent" type="subComponentType" 
      	  minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="titleType" mixed="true">
      <xs:all minOccurs="0">
      	  <xs:element name="date">
      	     <xs:complexType>
      	        <xs:simpleContent>
      	           <xs:extension base="xs:string">
      	              <xs:attribute name="normalize" type="xs:string" 
      	              use="required"/>
      	           </xs:extension>
      	        </xs:simpleContent>
      	     </xs:complexType>
      	  </xs:element>
      </xs:all>
   </xs:complexType>
   <xs:complexType name="componentTitleType" mixed="true">
      <xs:sequence>
      	  <xs:element name="componentDate" minOccurs="0">
      	     <xs:complexType>
      	        <xs:simpleContent>
      	           <xs:extension base="xs:string">
      	              <xs:attribute name="normalize" type="xs:string" 
      	              use="optional"/>
      	           </xs:extension>
      	        </xs:simpleContent>
      	     </xs:complexType>
      	  </xs:element>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="subComponentType">
      <xs:sequence>
      	  <xs:element name="container" minOccurs="0">
      	     <xs:complexType>
      	        <xs:simpleContent>
      	           <xs:extension base="xs:string">
      	              <xs:attribute name="type" type="xs:string" 
      	              use="required"/>
      	           </xs:extension>
      	        </xs:simpleContent>
      	     </xs:complexType>
      	  </xs:element>
      	  <xs:element name="componentTitle">
      	     <xs:complexType mixed="true">
      	        <xs:complexContent mixed="true">
      	           <xs:extension base="componentTitleType"/>
      	        </xs:complexContent>
      	     </xs:complexType>
      	  </xs:element>
      	  <xs:element name="subsubComponent" 
      	  type="subSubComponentType" minOccurs="0" 
      	  maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="subSubComponentType">
      <xs:sequence>
      	  <xs:element name="container" minOccurs="0">
      	     <xs:complexType>
      	        <xs:simpleContent>
      	           <xs:extension base="xs:string">
      	              <xs:attribute name="type" 
      	              type="xs:string" use="required"/>
      	           </xs:extension>
      	        </xs:simpleContent>
      	     </xs:complexType>
      	  </xs:element>
      	  <xs:element name="componentTitle">
      	     <xs:complexType mixed="true">
      	        <xs:complexContent mixed="true">
      	           <xs:extension base="componentTitleType"/>
      	        </xs:complexContent>
      	     </xs:complexType>
      	  </xs:element>
      </xs:sequence>
   </xs:complexType>
</xs:schema>]]></eg>
</div2>
<div2>
<head>Sample Data</head>
<p>The data consists of a collection of three books. Two are primarily instructive text. The third is a guide to a manuscript collection. All 
contain metadata and full text.</p>
<eg role="sample">&lt;books&gt;
&lt;book number="1"&gt;
   &lt;metadata&gt;
      &lt;title shortTitle="Improving Web Site Usability"&gt;Improving 
      the Usability of a Web Site Through Expert Reviews and 
      Usability Testing&lt;/title&gt;
      &lt;authors&gt;
         &lt;author&gt;Millicent Marigold&lt;/author&gt;
         &lt;author&gt;Montana Marigold&lt;/author&gt;
      &lt;/authors&gt;
      &lt;publicationInfo&gt;
         &lt;place&gt;New York&lt;/place&gt;
         &lt;publisher&gt;Ersatz Publications&lt;/publisher&gt;
         &lt;dateIssued&gt;2001&lt;/dateIssued&gt;
         &lt;dateRevised&gt;2002&lt;/dateRevised&gt;
      &lt;/publicationInfo&gt;
      &lt;price&gt;25.99&lt;/price&gt;   
      &lt;subjects xml:lang="en"&gt;
         &lt;subject&gt;Usability testing&lt;/subject&gt;
         &lt;subject&gt;Web site development&lt;/subject&gt;        
         &lt;subject&gt;Heuristic evaluation&lt;/subject&gt;
         &lt;subject&gt;Cognitive walk-through&lt;/subject&gt;
         &lt;subject&gt;Web site usability&lt;/subject&gt;
      &lt;/subjects&gt;
      &lt;subjects xml:lang="fr"&gt;        
         &lt;subject&gt;Tests d'ergonomie&lt;/subject&gt;
         &lt;subject&gt;Développement de site web&lt;/subject&gt;        
         &lt;subject&gt;Évaluation heuristique&lt;/subject&gt;
         &lt;subject&gt;Parcours cognitif&lt;/subject&gt;
         &lt;subject&gt;Ergonomie de site web&lt;/subject&gt;     
      &lt;/subjects&gt;
      &lt;subjects xml:lang="zh"&gt;    
         &lt;subject&gt;可用性测试&lt;/subject&gt;
         &lt;subject&gt;网站建置&lt;/subject&gt;        
         &lt;subject&gt;启发式评价&lt;/subject&gt;
         &lt;subject&gt;认知推演&lt;/subject&gt;
         &lt;subject&gt;网站可用性&lt;/subject&gt;
      &lt;/subjects&gt;
   &lt;/metadata&gt;
   &lt;content&gt;
      &lt;introduction&gt;
         &lt;author&gt;Elina Rose&lt;/author&gt;
         &lt;p&gt;The usability of a Web site is how well the 
         site supports the user in achieving specified 
         goals. A Web site should facilitate learning, 
         and enable efficient and effective task 
         completion, while propagating few errors. 
         Satisfaction with the site is also important. 
         The user must not only be well-served, but must 
         feel well-served.&lt;/p&gt; 
         &lt;p&gt;Expert reviews and usability testing are 
         methods of identifying problems in layout, 
         terminology, and navigation before they frustrate
         users and drive them away from your site.&lt;/p&gt;
         &lt;p&gt;The most successful projects employ multiple 
         methods in multiple iterations. As Millicent 
         Marigold remarked during a recent conference, 
         "Don't stop. Iterate, iterate, then iterate 
         again."&lt;/p&gt;
         &lt;p&gt;This book has been approved by the Web Site 
         Users Association.&lt;/p&gt;
      &lt;/introduction&gt;
      &lt;part number="1"&gt;
         &lt;title&gt;Expert Reviews&lt;/title&gt;
         &lt;introduction&gt;
            &lt;p&gt;Expert reviewers identify problems 
            and recommend changes to web sites based 
            on research in human computer interaction 
            and their experience in the field.&lt;/p&gt; 
            &lt;p&gt;Two expert review methods are discussed 
            here. They are heuristic evaluation and 
            cognitive walk-through.&lt;/p&gt; 
            &lt;p&gt;Expert review methods should be 
            initiated early in the development process, 
            as soon as paper &lt;b&gt;p&lt;/b&gt;rototypes 
            (hand-drawn pictures of Web pages) or 
            &lt;b&gt;w&lt;/b&gt;ireframes (electronic mockups) are 
            available. They should be conducted using 
            the hardware and software similar to that 
            employed by users.&lt;/p&gt;
         &lt;/introduction&gt;
         &lt;chapter&gt;
            &lt;title&gt;Heuristic Evaluation&lt;/title&gt;
            &lt;p&gt;Expert reviewers critique an interface to 
            determine conformance with recognized 
            usability principles. &lt;footnote&gt;One of the 
            best known lists of heuristics is &lt;citation 
            url="http://www.useit.com/papers/heuristic
            /heuristic_list.html"&gt;Ten Usability 
            Heuristics by Jacob Nielson&lt;/citation&gt;. Another 
            is &lt;citation url="http://usability.gov
            /guidelines/index.html"&gt; Research-Based Web 
            Design and Usability Guidelines&lt;/citation&gt;
            &lt;/footnote&gt;&lt;/p&gt; 
         &lt;/chapter&gt;
         &lt;chapter&gt;
            &lt;title&gt;Cognitive Walk-Through&lt;/title&gt;
            &lt;p&gt;Expert reviewers evaluate Web site 
            understandability and ease of learning while 
            performing specified tasks. They walk through 
            the site answering questions such as "Would a 
            user know by looking at the screen how to 
            complete the first step of the task?" and "If 
            the user completed the first step, would the 
            user know what to do next?," with the goal of 
            identifying any obstacles to completing the 
            task and assessing whether the user would 
            cognitively be aware that he was successful in 
            completing a step in the process.&lt;/p&gt;
         &lt;/chapter&gt;
      &lt;/part&gt;
      &lt;part number="2"&gt;
         &lt;chapter&gt;
            &lt;title&gt;Usability Testing&lt;/title&gt;
            &lt;p&gt;Once the problems identified by expert 
            reviews have been corrected, it is time to 
            conduct some tests of the site with your unique 
            audience or audiences by conducting usability 
            testing.&lt;/p&gt;
            &lt;p&gt;Users are asked to complete tasks which 
            measure the success of the information 
            architecture and navigational elements of the 
            site.&lt;/p&gt;
            &lt;p&gt;Then changes are made to improve service to 
            users.&lt;/p&gt;
         &lt;/chapter&gt;
      &lt;/part&gt; 
   &lt;/content&gt;
&lt;/book&gt;

&lt;book number="2"&gt;
   &lt;metadata&gt;
      &lt;title shortTitle="Usability Basics"&gt;Usability 
      Basics: How to Plan for and Conduct Usability Tests 
      on Web Site Thereby Improving the Usability of Your 
      Web Site&lt;/title&gt;
      &lt;publicationInfo&gt;
         &lt;place&gt;New York&lt;/place&gt;
         &lt;publisher&gt;Ersatz Publications&lt;/publisher&gt;
         &lt;publisher&gt;Electronic BookWorks&lt;/publisher&gt;         
         &lt;dateIssued&gt;2000&lt;/dateIssued&gt;
         &lt;dateRevised&gt;2001&lt;/dateRevised&gt;
      &lt;/publicationInfo&gt;
      &lt;price&gt;174.00&lt;/price&gt;   
      &lt;subjects xml:lang="en"&gt;
         &lt;subject&gt;Usability testing&lt;/subject&gt;
         &lt;subject&gt;Web site development&lt;/subject&gt;
         &lt;subject&gt;Guides and finding aids&lt;/subject&gt;
      &lt;/subjects&gt;
      &lt;subjects xml:lang="fr"&gt;
         &lt;subject&gt;Tests d'ergonomie&lt;/subject&gt;
         &lt;subject&gt;Développement de site web&lt;/subject&gt;
         &lt;subject&gt;Guides et outils de recherche&lt;/subject&gt;
      &lt;/subjects&gt;
      &lt;subjects xml:lang="zh"&gt;
         &lt;subject&gt;可用性测试&lt;/subject&gt;
         &lt;subject&gt;网站建置&lt;/subject&gt;
         &lt;subject&gt;指南和检索工具&lt;/subject&gt;
      &lt;/subjects&gt;
   &lt;/metadata&gt;
   &lt;content&gt;
      &lt;introduction&gt;
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability tests on Web sites. Usability 
         testing should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         &lt;p&gt;This book has not been approved by the Web Site 
         Users Association.&lt;/p&gt;
      &lt;/introduction&gt;
      &lt;part number="1"&gt;
         &lt;chapter&gt;
            &lt;title&gt;Planning then Conducting Usability 
            Tests&lt;/title&gt; 
            &lt;p&gt;Take the following steps to plan usability 
            testing. &lt;step number="1"&gt;Clarify and 
            articulate the goal of the usability testing.
            &lt;/step&gt; &lt;step number="2"&gt;Identify tasks which 
            are critical for users to be able to complete 
            successfully. &lt;/step&gt; &lt;step number="3"&gt;Compile 
            a script of questions or instructions which 
            will prompt the user to attempt those 
            tasks.&lt;/step&gt; &lt;step number="4"&gt;Identify your 
            users and begin recruiting them.&lt;/step&gt; &lt;step 
            number="5"&gt;Conduct a pretest on a few users.
            &lt;/step&gt; &lt;step number="6"&gt;Edit the script based 
            on insights gleaned from the pretest.&lt;/step&gt; 
            &lt;step number="7"&gt;Resume testing.&lt;/step&gt;&lt;/p&gt;
         &lt;/chapter&gt;
      &lt;/part&gt;
      &lt;part number="2"&gt;
         &lt;chapter&gt;
            &lt;title&gt;Conducting Usability Tests&lt;/title&gt; 
            &lt;p&gt;Users can be tested at any computer 
            workstation &lt;footnote&gt;They may be most 
            comfortable at their own workstation.
            &lt;/footnote&gt; or in a lab.&lt;/p&gt;
            &lt;p&gt;Give the user the script, then assure them 
            that you are testing the Web site, not them. 
            Users are asked to verbalize their thoughts as 
            they complete the tasks. The event is recorded 
            or someone takes notes. It is often preferable 
            to have two testers, &lt;footnote&gt;Usability 
            testing can be done at great expense or on a 
            shoe string, using &lt;testingProcedure&gt;in-house 
            expertise&lt;/testingProcedure&gt; or 
            &lt;testingProcedure&gt;contracting with human 
            computer interaction professionals
            &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
            questions, another to take notes. Testers should 
            offer no guidance or comments to the user. Mouse 
            movements, typing, expressions, and the user's 
            words should be recorded.&lt;/p&gt;
         &lt;/chapter&gt;
         &lt;chapter&gt;
            &lt;title&gt;Evaluating and Implementing Results&lt;/title&gt; 
            &lt;p&gt;Compile the results and review collectively. 
            Make changes to the site to alleviate the problems 
            found in Web site components which were propagating 
            the largest number of or the most devastating errors. 
            Begin new iterations of testing and changes, until 
            users are successful in the accomplishing the 
            tasks.&lt;/p&gt;
         &lt;/chapter&gt;
      &lt;/part&gt;
   &lt;/content&gt;
&lt;/book&gt;

&lt;book number="3"&gt;
   &lt;metadata&gt;
      &lt;title shortTitle="Usabilityguy Manuscript 
      Guide"&gt;John Wesley Usabilityguy: A Register of His 
      Papers&lt;/title&gt;
      &lt;authors&gt;
         &lt;author&gt;Millicent Marigold&lt;/author&gt;
         &lt;author&gt;Morty Marigold&lt;/author&gt;
      &lt;/authors&gt;
      &lt;publicationInfo&gt;      
         &lt;publisher&gt;Ersatz Manuscript Library&lt;/publisher&gt;
         &lt;dateIssued&gt;1998&lt;/dateIssued&gt;
         &lt;dateRevised&gt;2002&lt;/dateRevised&gt;
      &lt;/publicationInfo&gt;
      &lt;price&gt;21.49&lt;/price&gt;   
      &lt;subjects xml:lang="en"&gt;
         &lt;subject&gt;Computers&lt;/subject&gt;
         &lt;subject&gt;Software evaluation&lt;/subject&gt;
         &lt;subject&gt;Usability testing&lt;/subject&gt;
         &lt;subject&gt;Manuscript collections&lt;/subject&gt;
      &lt;/subjects&gt;
      &lt;subjects xml:lang="fr"&gt;
         &lt;subject&gt;Ordinateurs&lt;/subject&gt;
         &lt;subject&gt;Évaluation de logiciels&lt;/subject&gt;
         &lt;subject&gt;Tests d'ergonomie&lt;/subject&gt;
         &lt;subject&gt;Collections de manuscrits&lt;/subject&gt;
      &lt;/subjects&gt;
      &lt;subjects xml:lang="zh"&gt;
         &lt;subject&gt;计算机&lt;/subject&gt;
         &lt;subject&gt;软件评价&lt;/subject&gt;
         &lt;subject&gt;可用性测试&lt;/subject&gt;
         &lt;subject&gt;手稿专藏&lt;/subject&gt;
      &lt;/subjects&gt;
   &lt;/metadata&gt;
   &lt;content&gt;
      &lt;introduction&gt;
         &lt;p&gt;The papers of John Wesley Usabilityguy span the 
         years 1946-2001, with the bulk of the items 
         concentrated in the period from 1985 to 2001. The 
         papers feature his career as a developer of software 
         applications and usability specialist. The collection 
         consists of correspondence, memoranda, journals, 
         speeches, article drafts, book drafts, notes, charts, 
         graphs, family papers, clippings, printed matter, 
         photographs, résumés and other materials.&lt;/p&gt;
      &lt;/introduction&gt;
      &lt;part number="1"&gt; &lt;container type="box"&gt;1-12&lt;/container&gt;
         &lt;title&gt;Subject File, &lt;date normalize="1930/1974"&gt;
         1930-1974&lt;/date&gt;&lt;/title&gt;
         &lt;introduction&gt;
            &lt;p&gt;Correspondence, telegrams, memoranda, journals, 
            logs, testimony, approved travel orders, invitations, 
            charts, graphs, forms, biographical data, photographs, 
            book drafts, clippings and other printed matter, 
            résumés and miscellaneous material. Organized by 
            name of person or organization, topic, or type of 
            material.&lt;/p&gt;
         &lt;/introduction&gt;
         &lt;component&gt;&lt;container type="box"&gt;1&lt;/container&gt;
           &lt;componentTitle&gt;Computers&lt;/componentTitle&gt;
           &lt;subComponent&gt;
              &lt;componentTitle&gt;Software, 
              &lt;componentDate normalize="1946/1947"&gt;1946-1947
              &lt;/componentDate&gt;
              &lt;/componentTitle&gt;
           &lt;/subComponent&gt;
           &lt;subComponent&gt;
              &lt;componentTitle&gt;Human Computer Interaction 
              research, &lt;componentDate normalize="1945/1952"&gt;
              1945-1952&lt;/componentDate&gt;
              &lt;/componentTitle&gt;
              &lt;subsubComponent&gt;
                 &lt;componentTitle&gt;Flow diagram, 
                 &lt;componentDate normalize="1950"&gt;1950
                 &lt;/componentDate&gt;
                 &lt;/componentTitle&gt;
              &lt;/subsubComponent&gt;
              &lt;subsubComponent&gt;
                 &lt;componentTitle&gt;General, 
                 &lt;componentDate normalize="1947/1951"&gt;1947-1951
                 &lt;/componentDate&gt;
                 &lt;/componentTitle&gt;
              &lt;/subsubComponent&gt;
              &lt;subsubComponent&gt;&lt;container type="box"&gt;2&lt;/container&gt;
                 &lt;componentTitle&gt;Eye Movement research,
                 &lt;componentDate normalize="1949/1950"&gt;1949-1950
                 &lt;/componentDate&gt;
                 &lt;/componentTitle&gt;
              &lt;/subsubComponent&gt; 
              &lt;subsubComponent&gt;
                 &lt;componentTitle&gt;User profiling, 
                 &lt;componentDate normalize="1950/1959"&gt;1950s
                 &lt;/componentDate&gt;
                 &lt;/componentTitle&gt;
              &lt;/subsubComponent&gt;
            &lt;/subComponent&gt;
         &lt;/component&gt;
         &lt;component&gt;
           &lt;componentTitle&gt;Web User Appreciation Award, 
           &lt;componentDate normalize="1956"&gt;1956&lt;/componentDate&gt;
           &lt;/componentTitle&gt;
         &lt;/component&gt;
      &lt;/part&gt;
      &lt;part number="2"&gt;&lt;container type="box"&gt;3-5&lt;/container&gt;
         &lt;title&gt;Writings File, 
         &lt;date normalize="1985/1999"&gt;1985-1999&lt;/date&gt;
         &lt;/title&gt;
         &lt;introduction&gt;
            &lt;p&gt;Correspondence, articles, book drafts, notes, 
            contracts, clippings, and printed matter. Arranged 
            alphabetically by type (articles, books, reports, 
            and miscellaneous) and therein alphabetically by 
            type of material, subject, or title.&lt;/p&gt;
         &lt;/introduction&gt;
         &lt;component&gt;
            &lt;componentTitle&gt;Writings by Usabilityguy
            &lt;/componentTitle&gt;
            &lt;subComponent&gt;
               &lt;componentTitle&gt;&lt;componentDate normalize="1996"&gt;
               1996&lt;/componentDate&gt;
               &lt;/componentTitle&gt; 
               &lt;subsubComponent&gt;
                  &lt;componentTitle&gt;"How Many Users Are Enough 
                  for User Testing?"&lt;/componentTitle&gt;
               &lt;/subsubComponent&gt; 
               &lt;subsubComponent&gt;
                  &lt;componentTitle&gt;"How to Evaluate Results from 
                  User Tests."&lt;/componentTitle&gt;
               &lt;/subsubComponent&gt;
               &lt;subsubComponent&gt;
                  &lt;container type="box"&gt;5&lt;/container&gt;
                  &lt;componentTitle&gt;"When Are You Done Testing?"
                  &lt;/componentTitle&gt;
               &lt;/subsubComponent&gt;
               &lt;subsubComponent&gt;
                  &lt;componentTitle&gt;"Do-It-Yourself User Testing"
                  &lt;/componentTitle&gt;
               &lt;/subsubComponent&gt; 
            &lt;/subComponent&gt;
         &lt;/component&gt;
         &lt;component&gt;
            &lt;componentTitle&gt;Charitable Contributions
            &lt;/componentTitle&gt; 
            &lt;subComponent&gt;
               &lt;componentTitle&gt;Diseases: AIDS, Hepatitis, 
               Tuberculosis &lt;componentDate normalize=
               "1990/1999"&gt;1990-1999&lt;/componentDate&gt;
               &lt;/componentTitle&gt;
            &lt;/subComponent&gt; 
            &lt;subComponent&gt;
               &lt;componentTitle&gt;Environmental Conservation: 
               Rivers &lt;componentDate normalize="1995"&gt;1995
               &lt;/componentDate&gt;
               &lt;/componentTitle&gt;
            &lt;/subComponent&gt;
         &lt;/component&gt;
      &lt;/part&gt;
   &lt;/content&gt;
&lt;/book&gt;
&lt;/books&gt;</eg>
</div2>
</div1>
<div1 id="Word">
<head>Use Case "WORD": Word and Phrase Queries</head>
<div2 id="word-description">
<head>Description</head>
<p>These use cases begin with the simplest queries possible--queries on a single word or phrase. Phrase queries are queries on one or more 
sequences of words. A sequence can contain any number of words. One of these queries is on Chinese characters.</p>
<p>Refer to Section 9 (BOOLEAN) for multiple word and phrase queries with Boolean full-text predicates. Refer to Section 12 (SCORE) for multiple word and 
phrase queries with score.</p>
</div2>
<div2 id="word-queries-results">
<head>Queries and Results</head>
<div3 id="word-queries-results-q1">
<head>Q1 Single Word Query</head>
<p>Find all book titles containing the word "usability".</p>
<p>This query finds a single word within an element.</p>
<ulist>
<item>
<p>Operands: "usability"</p>
</item>
<item>
<p>Functionality: word query</p>
</item>
<item>
<p>Context: books/book/metadata/title</p>
</item>
<item>
<p>Return: books/book/metadata/title</p>
</item>
<item>
<p>Comments: This is the simplest query possible, a query on one word within one element. This
						query does not employ wildcards, stemming, or thesaurus support. While this query finds useful results in the sample 
						data, most queries such as one on the word "test" would not. A query on the word "test" would return no results, missing the word 
						variants which exist in the sample data: "pretest" "tested" "testers" "testimony" "testing" and "tests".</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the <phrase role="found">Usability</phrase> of a Web Site Through 
Expert Reviews and <phrase role="found">Usability</phrase> Testing&lt;/title&gt;

&lt;title&gt;<phrase role="found">Usability</phrase> Basics: How to Plan for and Conduct 
<phrase role="found">Usability</phrase> Tests on Web Site Thereby Improving the 
<phrase role="found">Usability</phrase> of Your Web Site&lt;/title&gt;</eg>
</div3>
<div3 id="word-queries-results-q2">
<head>Q2 Single Phrase Query</head>
<p>Find all book subjects containing the phrase "usability testing".</p>
<p>This query finds a single phrase within an element.</p>
<ulist>
<item>
<p>Operands: "usability testing"</p>
</item>
<item>
<p>Functionality: phrase query</p>
</item>
<item>
<p>Context: books//subject</p>
</item>
<item>
<p>Return: books//subject</p>
</item>
<item>
<p>Content: This is a simple query on one phrase within one element. Unlike an 
unordered proximity query, the words in this phrase query must be adjacent to 
each other and must appear in the order specified. While this query finds useful results in the sample data, most queries such as one on "software developer" 
would not. A query on the phrase "software developer" would return no results, missing "developer of software" which exists 
in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;subject&gt;<phrase role="found">Usability testing</phrase>&lt;/subject&gt;
						
&lt;subject&gt;<phrase role="found">Usability testing</phrase>&lt;/subject&gt;

&lt;subject&gt;<phrase role="found">Usability testing</phrase>&lt;/subject&gt;</eg>
</div3>
<div3 id="word-queries-results-q3">
<head>Q3 Single Phrase Query on Long Text Excerpt</head>
<p>Find all book text containing the phrase "would a user know by looking at the screen how to complete the first step of the task".</p>
<p>This query finds a single phrase in an element.</p>
<ulist>
<item>
<p>Operands: "would a user know by looking at the screen how to complete the first step of the task"</p>
</item>
<item>
<p>Functionality: phrase query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books//content</p>
</item>
<item>
<p>Comments: This query shows phrases can be of any length.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;content&gt;
   ...
      &lt;p&gt;Expert reviewers evaluate Web site 
      understandability and ease of learning while 
      performing specified tasks. They walk through 
      the site answering questions such as "<phrase role="found">Would a </phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">user know by looking at the screen how to</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">complete the first step of the task</phrase>?" and "If 
      the user completed the first step, would the 
      user know what to do next?," with the goal of 
      identifying any obstacles to completing the 
      task and assessing whether the user would 
      cognitively be aware that he was successful in 
      completing a step in the process.&lt;/p&gt;
   ...
&lt;/content&gt;</eg>
</div3>
<div3 id="word-queries-results-q4">
<head>Q4 Single Phrase Query on Chinese Characters</head>
<p>Find all book subjects containing the phrase (n-gram) "网站".</p>
<p>This query finds a single phrase (n-gram) within an element.</p>
<ulist>
<item>
<p>Operands: "网站"</p>
</item>
<item>
<p>Functionality: phrase query</p>
</item>
<item>
<p>Context: books//subject</p>
</item>
<item>
<p>Return: books//subject</p>
</item>
<item>
<p>Comments: This query is an example of a phrase query where the phrase being queried consists 
						of two Chinese
						characters. It assumes
						a specific
						language-dependent tokenization.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;subject&gt;<phrase role="found">网站</phrase>建置&lt;/subject&gt;      
&lt;subject&gt;<phrase role="found">网站</phrase>可用性&lt;/subject&gt;

&lt;subject&gt;<phrase role="found">网站</phrase>建置&lt;/subject&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Element">
<head>Use Case "ELEMENT": Queries on XML Elements and Attributes</head>
<div2 id="element-description">
<head>Description</head>
<p>These use cases query XML elements, including instances of an element and multiple elements, attributes, and elements and attributes. They use a 
single XPath statement to locate the elements or attributes to be queried.</p>
<p>Some queries return additional or different elements than were queried. Another queries an element and its descendants. Another queries across element boundaries. 
They are in this section only because they are very common queries and necessary for writing meaningful full-text queries. Refer to Section 13 (STRUCTURE) 
for queries which more fully exploit the complexity and hierarchy of XML structure and Section 14 (IGNORE) for queries across element boundaries which 
ignore tags and content.</p>
</div2>
<div2 id="element-queries-results">
<head>Queries and Results</head>
<div3 id="element-queries-results-q1">
<head>Q1 Query on Element</head>
<p>Find all book paragraphs with the word "step".</p>
<p>This query finds a word in an element.</p>
<ulist>
<item>
<p>Operands: "step"</p>
</item>
<item>
<p>Functionality: word query</p>
</item>
<item>
<p>Context: books//p</p>
</item>
<item>
<p>Return: books/book/@number, books//p</p>
</item>
<item>
<p>Comments: This query finds the word "step" in the p element, not in any other element. </p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;p&gt;Expert reviewers evaluate Web site 
   understandability and ease of learning while 
   performing specified tasks. They walk through 
   the site answering questions such as "Would a 
   user know by looking at the screen how to 
   complete the first step of the task?" and "If 
   the user completed the first <phrase role="found">step</phrase>, would the 
   user know what to do next?," with the goal of 
   identifying any obstacles to completing the 
   task and assessing whether the user would 
   cognitively be aware that he was successful in 
   completing a <phrase role="found">step</phrase> in the process.&lt;/p&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="element-queries-results-q2">
<head>Q2 Query on Multiple Operands in Same Instance of an Element</head>
<p>Find all books with the phrase "web site" and the word "usability" in the same subject.</p>
<p>This query finds a word and a phrase within one instance of an element.</p>
<ulist>
<item>
<p>Operands: "web site" "usability"</p>
</item>
<item>
<p>Functionality: phrase query, word query, <code>and</code> query</p>
</item>
<item>
<p>Context: books//subject</p>
</item>
<item>
<p>Return: books/book/@number, books//subject</p>
</item>
<item>
<p>Comments: This query find words and phrases within one instance of an element, not allowing one 
of the operands to be found in one sibling and the other operand in a different sibling of 
the same name. This query does not find book 2 which has "usability" and "web site" in diferrent instances of an element. It 
uses an <code>and</code> query introduced in Section 9 (BOOLEAN).</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;subject&gt;<phrase role="found">Web site</phrase>&nbsp;<phrase role="found">usability</phrase>&lt;/subject&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="element-queries-results-q3">
<head>Q3 Query on Multiple Operands in Any Instance of an Element</head>
<p>Find all books with the phrase "web site" and the word "usability" in any subject.</p>
<p>This query finds a word and a phrase within any instance of an element, across 
						the siblings of the same name. The word and the phrase may be in different elements.</p>
<ulist>
<item>
<p>Operands: "web site" "usability"</p>
</item>
<item>
<p>Functionality: phrase query, word query, <code>and</code> query</p>
</item>
<item>
<p>Context: books//subject</p>
</item>
<item>
<p>Return: books/book/@number, books//subject</p>
</item>
<item>
<p>Comments: This query returns words and phrases within any instance of an 
						element, allowing one of the operands to be found in one sibling and the other operand 
						in a different sibling of the same name. It uses an <code>and</code> query introduced in Section 9 (BOOLEAN).</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;subject&gt;<phrase role="found">Usability</phrase> testing&lt;/subject&gt;
   &lt;subject&gt;<phrase role="found">Web site</phrase> development&lt;/subject&gt;        
   &lt;subject&gt;<phrase role="found">Web site</phrase>&nbsp;<phrase role="found">usability</phrase>&lt;/subject&gt;  
&lt;/book&gt;
   
&lt;book number="2"&gt;
   &lt;subject&gt;<phrase role="found">Usability</phrase> testing&lt;/subject&gt;
   &lt;subject&gt;<phrase role="found">Web site</phrase> development&lt;/subject&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="element-queries-results-q4">
<head>Q4 Query on Multiple Operands in Every Instance of an Element</head>
<p>Find all books with the words "ersatz" and "publications" in every publisher name.</p>
<p>This query finds two words within every instance of an element.</p>
<ulist>
<item>
<p>Operands: "ersatz" "publications"</p>
</item>
<item>
<p>Functionality: word query, <code>and</code> query</p>
</item>
<item>
<p>Context: books//publisher</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//publisher</p>
</item>
<item>
<p>Comments: This query does not return a book if at least one of its publishers does not contain the words "ersatz" and 
"publications". Book 1 is returned because it has a single publisher which satisfies the full-text conditions (contains both "Ersatz" and
"Publications").  Book 2 is not returned because even though it has a publisher that satisfies the full-text conditions, it also has a publisher that
does not satisfy it (universal quantification). Book 3 is not returned because it has a single publisher which
does not satisfy the query (contains "Ersatz" but not "Publications"). Finally, universal quantification will allow books without publishers to qualify. 
It uses an <code>and</code> query introduced in Section 9 (BOOLEAN).</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site 
Through Expert Reviews and Usability Testing&lt;/title&gt;
  &lt;publisher&gt;<phrase role="found">Ersatz Publications</phrase>&lt;/publisher&gt;</eg>
</div3>
<div3 id="element-queries-results-q5">
<head>Q5 Query on Element Returning Different Elements</head>
<p>Find all books with the phrase "usability testing" in some subject.</p>
<p>This query finds a single phrase within an element and returns different elements from the same document.</p>
<ulist>
<item>
<p>Operands: "usability testing"</p>
</item>
<item>
<p>Functionality: phrase query</p>
</item>
<item>
<p>Context: books//subject</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//author, 
books//publicationInfo/dateRevised</p>
</item>
<item>
<p>Comments: This query queries the subject element, but does not return it. It returns three different elements which provide useful information 
to the user.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;author&gt;Millicent Marigold&lt;/author&gt;
   &lt;author&gt;Montana Marigold&lt;/author&gt;
   &lt;dateRevised&gt;2002&lt;/dateRevised&gt;
   
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;	
   &lt;dateRevised&gt;2001&lt;/dateRevised&gt; 
     
&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;
   &lt;author&gt;Millicent Marigold&lt;/author&gt;
   &lt;author&gt;Morty Marigold&lt;/author&gt;
   &lt;dateRevised&gt;2002&lt;/dateRevised&gt;</eg>
</div3>
<div3 id="element-queries-results-q6">
<head>Q6 Query on Multiple Elements</head>
<p>Find all books with "usability tests" in book or chapter titles.</p>
<p>This query finds a phrase in multiple elements.</p>
<ulist>
<item>
<p>Operands: "usability tests"</p>
</item>
<item>
<p>Functionality: phrase query</p>
</item>
<item>
<p>Context: books/book/metadata/title, books/book/content/part//chapter/title</p>
</item>
<item>
<p>Return: books/book/metadata/title, books/book/content/part//chapter/title</p>
</item>
<item>
<p>Comments: This query is an example of a word query in two elements.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
<phrase role="found">Usability Tests</phrase> on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;title&gt;Planning then Conducting <phrase role="found">Usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Tests</phrase>&lt;/title&gt; 
   &lt;title&gt;Conducting <phrase role="found">Usability Tests</phrase>&lt;/title&gt;</eg>
</div3>
<div3 id="element-queries-results-q7">
<head>Q7 Query Across Element Boundaries</head>
<p>Find all books with the phrase "usability testing once the problems".</p>
<p>This query finds a phrase which begins in one element and ends in a second.</p>
<ulist>
<item>
<p>Operands: "usability testing once the problems"</p>
</item>
<item>
<p>Functionality: phrase query, ignoring element tags</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query crosses sibling element boundaries.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;title&gt;<phrase role="found">Usability Testing</phrase>&lt;/title&gt;
         &lt;p&gt;<phrase role="found">Once the problems</phrase> identified by expert 
         reviews have been corrected, it is time to 
         conduct some tests of the site with your unique 
         audience or audiences by conducting usability 
         testing.&lt;/p&gt;
      ...
   &lt;/content&gt;</eg>
</div3>
<div3 id="element-queries-results-q8">
<head>Q8 Query on Element and Its Descendants</head>
<p>Find all books with the word "tests".</p>
<p>This query finds a word in an element or its descendants.</p>
<ulist>
<item>
<p>Operands: "tests"</p>
</item>
<item>
<p>Functionality: word query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query crosses parent-child element boundaries.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Once the problems identified by expert 
         reviews have been corrected, it is time to 
         conduct some <phrase role="found">tests</phrase> of the site with your unique 
         audience or audiences by conducting usability 
         testing.&lt;/p&gt;
      ...
   &lt;/content&gt;   
   
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;content&gt;
      ...	
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability <phrase role="found">tests</phrase> on Web sites. Usability 
         testing should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         ...
            &lt;title&gt;Planning then Conducting Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Tests</phrase>&lt;/title&gt;   
      ...
   &lt;/content&gt;   

&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;        
   &lt;content&gt;
      ...	
            &lt;componentTitle&gt;"How to Evaluate Results from 
            User <phrase role="found">Tests</phrase>."&lt;/componentTitle&gt; 
      ...
   &lt;/content&gt;</eg>
</div3>
<div3 id="element-queries-results-q9">
<head>Q9 Query on Attribute</head>
<p>Find all books with "improve" "web" "usability" in the short title.</p>
<p>This query finds multiple words within an attribute allowing  word variants and allowing the words in any order with up to a specified number of intervening words.</p>
<ulist>
<item>
<p>Operands: "improve" "web" "usability" </p>
</item>
<item>
<p>Functionality: word queries, stemming, unordered proximity (0 to 2 intervening words)</p>
</item>
<item>
<p>Context: books/book//title/@shortTitle</p>
</item>
<item>
<p>Return: books/book/@number, books/book//title/@shortTitle</p>
</item>
<item>
<p>Comments: This query illustrates full-text querying within an attribute. It uses stemming introduced in Section 7 (STEMMING) and
an ordered proximity query introduced in Section 10 (DISTANCE).</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;title shortTitle="<phrase role="found">Improving</phrase>
<phrase role="found">Web</phrase> Site <phrase role="found">Usability</phrase>"&gt;Improving 
   the Usability of a Web Site Through Expert Reviews and Usability 
   Testing&lt;/title&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="element-queries-results-q10">
<head>Q10 Query on Element and Attribute</head>
<p>Find all books with the phrase "manuscript guides" in the short title and the phrase "user profiling" in the text.</p>
<p>This query finds a phrase within an attribute and a phrase within an element and its descendants.</p>
<ulist>
<item>
<p>Operands: "manuscript guides" "user profiling"</p>
</item>
<item>
<p>Functionality: phrase queries, stemming, <code>and</code> query</p>
</item>
<item>
<p>Context: books/book//title/@shortTitle, books//content</p>
</item>
<item>
<p>Return: books/book/@number, books/book//title/@shortTitle, books//content</p>
</item>
<item>
<p>Comments: This query combines querying within an element with querying within an attribute. 
It uses stemming introduced in Section 7 (STEMMING) and an <code>and</code> query introduced in Section 9 (BOOLEAN).</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="3"&gt;
   &lt;title shortTitle="Usabilityguy <phrase role="found">Manuscript</phrase> 
&nbsp;&nbsp;&nbsp;<phrase role="found">Guide</phrase>"&gt;John Wesley Usabilityguy: A Register of His 
   Papers&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;componentTitle&gt;<phrase role="found">User profiling</phrase>, 
         &lt;componentDate normalize="1950/1959"&gt;1950s
         &lt;/componentDate&gt;
         &lt;/componentTitle&gt;
      ...  
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Stop-word">
<head>Use Case "STOP-WORD": Queries Ignoring and Overriding Stop Words</head>
<div2 id="stop-word-description">
<head>Description</head>
<p>These use cases identify commonly used words which have been saved to a stop word list. Words on this list
are routinely ignored during querying. Some of the queries override the stop word identification of a word, making it available again for querying.</p>
</div2>
<div2 id="Stop-word-queries-results">
<head>Queries and Results</head>
<div3 id="stop-word-queries-results-q1">
<head>Q1 Query on Word Ignoring Single Stop Word</head>
<p>Find all books with the word "the" in the text.</p>
<p>This query ignores a word which has been identified as a stop word.</p>
<ulist>
<item>
<p>Operands: "the"</p>
</item>
<item>
<p>Functionality: identify and ignore stop words (the), word query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title</p>
</item>
<item>
<p>Comments: This query on a stop word will either return no results or an error 
						depending on the implementation.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg><![CDATA[No results returned.]]></eg>
</div3>
<div3 id="stop-word-queries-results-q2">
<head>Q2 Query on Phrase Ignoring Single Stop Word</head>
<p>Find all books with the phrase "planning then conducting" in the text.</p>
<p>This query finds a phrase ignoring a word which has been identified as a stop word.</p>
<ulist>
<item>
<p>Operands: "planning then conducting"</p>
</item>
<item>
<p>Functionality: identify and ignore stop words (then), phrase query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: Once the stop word "then" is ignored, this query is reduced to a query on the words "planning" and" conducting", allowing one 
intervening word. It finds both "planning and conducting" and "planning then conducting" in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;This is a basic handbook for <phrase role="found">planning</phrase> and 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">conducting</phrase> usability tests on Web sites. Usability 
         testing should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         ...
            &lt;title&gt;<phrase role="found">Planning</phrase> then <phrase role="found">Conducting</phrase> Usability
            Tests&lt;/title&gt; 
      ...
   &lt;/content&gt;</eg>
</div3>
<div3 id="stop-word-queries-results-q3">
<head>Q3 Query on Phrase Overriding Single Stop Word</head>
<p>Find books with the phrase "Guides and finding aids" in the subject.</p>
<p>This query finds a phrase overriding the stop word identification of a word.</p>
<ulist>
<item>
<p>Operands: "guides and finding aids"</p>
</item>
<item>
<p>Functionality: identify and override stop words (and), phrase query</p>
</item>
<item>
<p>Context: books//subject</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//subject</p>
</item>
<item>
<p>Comments: This query finds the phrase "guides and finding aids", which might be in a subject 
						element built from a controlled vocabulary where querying the exact phrase may avoid undesired 
						results.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;subject&gt;<phrase role="found">Guides and finding aids</phrase>&lt;/subject&gt;</eg>
</div3>
<div3 id="stop-word-queries-results-q4">
<head>Q4 Query on Phrase Ignoring Multiple Stop Words</head>
<p>Find all books which have not been approved by a Web users organization.</p>
<p>This query finds a phrase ignoring multiple words which has been identified as stop words.</p>
<ulist>
<item>
<p>Operands: "not been approved"</p>
</item>
<item>
<p>Functionality: identify and ignore stop words (not, been), phrase query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: Once the stop words are ignored, this query is reduced to a query on the word "approved". It returns books 
with the word "approved" in the phrases "been approved" "not been approved" and "approved travel orders" in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;	
   &lt;content&gt;
      ...			
         &lt;p&gt;This book has been <phrase role="found">approved</phrase> by the Web Site 
         Users Association&lt;/p&gt;	
      ...		
 &lt;/content&gt;  				

&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;content&gt;
      ...		
         &lt;p&gt;This book has not been <phrase role="found">approved</phrase> by the Web Site 
         Users Association&lt;/p&gt;
      ...     
   &lt;/content&gt; 

&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;   
   &lt;content&gt;
      ...		
         &lt;p&gt;Correspondence, telegrams, memoranda, journals, 
         logs, testimony, <phrase role="found">approved</phrase> travel orders, invitations, 
         charts, graphs, forms, biographical data, photographs, 
         book drafts, clippings and other printed matter, 
         résumés and miscellaneous material. Organized by 
         name of person or organization, topic, or type of 
         material.&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="stop-word-queries-results-q5">
<head>Q5 Query on Phrase Overriding Multiple Stop Words</head>
<p>Find all the books which have not been approved by a Web users organization.</p>
<p>This query finds a phrase overriding the stop word identification of a multiple words.</p>
<ulist>
<item>
<p>Operands: "not been approved"</p>
</item>
<item>
<p>Functionality: identify and override stop words (not, been), phrase query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query finds the phrase "not been approved". It does not return the phrases 
						"been approved" and "approved travel orders" in the sample data.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;This book has <phrase role="found">not been approved</phrase> by the Web Site 
         Users Association&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Character-manipulation">
<head>Use Case "CHARACTER-MANIPULATION": Queries Manipulating Normalized Characters and Tokenized Words, Spaces, and Punctuation</head>
<div2 id="character-manipulation-description">
<head>Description</head>
<p>These use cases illustrate queries manipulating normalized characters and tokenized words, spaces, and punctuation. Depending on 
the desired result, they may consider or ignore diacritics, case, and special characters.</p>
<p>They query words entered with 
diacritics sometimes returning the same; other times returning words with and without diacritics. They query words 
entered in upper case sometimes returning the same; other times returning words in both upper and lower case. Other queries find words containing 
a hyphen or two words with a space separating them.</p>
</div2>
<div2 id="character-manipulation-queries-results">
<head>Queries and Results</head>
<div3 id="character-manipulation-queries-results-q1">
<head>Q1 Query Returning Characters with Diacritics Only</head>
<p>Verify the existence of a résumé in the papers of John Wesley Usabilityguy.</p>
<p>This query finds a word only when diacritics are present.</p>
<ulist>
<item>
<p>Operands: "résumé"</p>
</item>
<item>
<p>Functionality: collation requiring presence of diacritics, word query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: The desired return is only the word "résumé" with diacritics, not the
						more often used word "resume" which is present in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;   
   &lt;content&gt;
      ...
         &lt;p&gt;The papers of John Wesley Usabilityguy span the 
         years 1946-2001, with the bulk of the items 
         concentrated in the period from 1985 to 2001. The 
         papers feature his career as a developer of software 
         applications and usability specialist. The collection 
         consists of correspondence, memoranda, journals, 
         speeches, article drafts, book drafts, notes, charts, 
         graphs, family papers, clippings, printed matter, 
         photographs, <phrase role="found">résumés</phrase> and other materials.&lt;/p&gt;
         ...
            &lt;p&gt;Correspondence, telegrams, memoranda, journals, 
            logs, testimony, approved travel orders, invitations, 
            charts, graphs, forms, biographical data, photographs, 
            book drafts, clippings and other printed matter, 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">résumés</phrase> and miscellaneous material. Organized by 
            name of person or organization, topic, or type of 
            material.&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="character-manipulation-queries-results-q2">
<head>Q2 Query Returning Characters with and without Diacritics</head>
<p>Verify the existence of a résumé in the papers of John Wesley Usabilityguy.</p>
<p>This query finds a word whether its diacritics are present or not.</p>
<ulist>
<item>
<p>Operands: "resume"</p>
</item>
<item>
<p>Functionality: collation ignoring the presence of diacritics, word query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: The desired return is either the word "résumé" with diacritics or the word "resume" without diacritics. The user wants to find
						résumé, but has entered resume possibly because the system does not allow the entry of diacritics, the user does not know how to 
						enter diacritics, or the user did not want to take the time to enter them.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;p&gt;Take the following steps to plan usability 
         testing. &lt;step number="1"&gt;Clarify and 
         articulate the goal of the usability testing.
         &lt;/step&gt; &lt;step number="2"&gt;Identify tasks which 
         are critical for users to be able to complete 
         successfully. &lt;/step&gt; &lt;step number="3"&gt;Compile 
         a script of questions or instructions which 
         will prompt the user to attempt those 
         tasks.&lt;/step&gt; &lt;step number="4"&gt;Identify your 
         users and begin recruiting them.&lt;/step&gt; &lt;step 
         number="5"&gt;Conduct a pretest on a few users.
         &lt;/step&gt; &lt;step number="6"&gt;Edit the script based 
         on insights gleaned from the pretest.&lt;/step&gt; 
         &lt;step number="7"&gt;<phrase role="found">Resume</phrase> testing.&lt;/step&gt;&lt;/p&gt;
      ...     
   &lt;/content&gt;       
   
&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;   
   &lt;content&gt;
      ...
         &lt;p&gt;The papers of John Wesley Usabilityguy span the 
         years 1946-2001, with the bulk of the items 
         concentrated in the period from 1985 to 2001. The 
         papers feature his career as a developer of software 
         applications and usability specialist. The collection 
         consists of correspondence, memoranda, journals, 
         speeches, article drafts, book drafts, notes, charts, 
         graphs, family papers, clippings, printed matter, 
         photographs, <phrase role="found">résumés</phrase> and other materials.&lt;/p&gt;
         ...
            &lt;p&gt;Correspondence, telegrams, memoranda, journals, 
            logs, testimony, approved travel orders, invitations, 
            charts, graphs, forms, biographical data, photographs, 
            book drafts, clippings and other printed matter, 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">résumés</phrase> and miscellaneous material. Organized by 
            name of person or organization, topic, or type of 
            material.&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="character-manipulation-queries-results-q3">
<head>Q3 Query Returning Upper Case Characters Only</head>
<p>	Find out whether John Wesley Usabilityguy included research on AIDS among the charities he supported.</p>
<p>This query finds a word in upper case letters only.</p>
<ulist>
<item>
<p>Operands: "AIDS"</p>
</item>
<item>
<p>Functionality: collation which is case-sensitive or limited to upper case, word query</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//book</p>
</item>
<item>
<p>Comments: This query does not return the word "aids" in lower case which exists in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;
   &lt;book&gt;
      ...
         &lt;componentTitle&gt;Diseases: <phrase role="found">AIDS</phrase>, Hepatitis, 
         Tuberculosis &lt;componentDate normalize=
         "1990/1999"&gt;1990-1999&lt;/componentDate&gt;
         &lt;/componentTitle&gt;
      ...
    &lt;/book&gt;</eg>
</div3>
<div3 id="character-manipulation-queries-results-q4">
<head>Q4 Query Returning Upper Case and Lower Case Characters</head>
<p>	Find out whether John Wesley Usabilityguy included research on AIDS among the charities he supported.</p>
<p>This query finds a word in upper or lower case letters.</p>
<ulist>
<item>
<p>Operands: "AIDS"</p>
</item>
<item>
<p>Functionality: collation which is case-insensitive, word query</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//book</p>
</item>
<item>
<p>Comments: This query returns the word "aids" in upper and lower case.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;book&gt;
      ...
         &lt;subject&gt;Guides and finding <phrase role="found">aids</phrase>&lt;/subject&gt;
      ...      
   &lt;/book&gt;     
   
&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;
   &lt;book&gt;
      ...
         &lt;componentTitle&gt;Diseases: <phrase role="found">AIDS</phrase>, Hepatitis, 
         Tuberculosis &lt;componentDate normalize=
         "1990/1999"&gt;1990-1999&lt;/componentDate&gt;
         &lt;/componentTitle&gt;
      ...
   &lt;/book&gt;</eg>
</div3>
<div3 id="character-manipulation-queries-results-q5">
<head>Q5 Query Returning Word with Special Character</head>
<p>Find all books with "walk-through".</p>
<p>This query finds a word containing a special character.</p>
<ulist>
<item>
<p>Operands: "walk-through"</p>
</item>
<item>
<p>Functionality: word query, collation returning words containing special characters</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//book</p>
</item>
<item>
<p>Comments: The desired return is only the hyphenated word "walk-through",
						not the phrase "walk through" which is also present in the sample data.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;book&gt;
      ...
        &lt;subject&gt;Cognitive <phrase role="found">walk-through</phrase>&lt;/subject&gt;
        ...
        &lt;p&gt;Two expert review methods are discussed 
        here. They are heuristic evaluation and 
        cognitive <phrase role="found">walk-through</phrase>.&lt;/p&gt;
        ...
        &lt;title&gt;>Cognitive <phrase role="found">Walk-Through</phrase>&lt;/title&gt;
     ...
   &lt;/book&gt;</eg>
</div3>
<div3 id="character-manipulation-queries-results-q6">
<head>Q6 Query Returning Word with Special Character or Phrase with Space</head>
<p>Find all books with "walk-through".</p>
<p>This query finds a word with a special character or a phrase where the special character is replaced by a space.</p>
<ulist>
<item>
<p>Operands: "walk-through"</p>
</item>
<item>
<p>Functionality: word query, collation returning words containing special characters or phrases containing a space</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//book</p>
</item>
<item>
<p>Comments: The desired return is the hyphenated word "walk-through" or the phrase "walk through".</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;book&gt;
     ...
        &lt;subject&gt;Cognitive <phrase role="found">walk-through</phrase>&lt;/subject&gt;
        ...
        &lt;p&gt;Two expert review methods are discussed 
        here. They are heuristic evaluation and 
        cognitive <phrase role="found">walk-through</phrase>.&lt;/p&gt;
        ...
        &lt;title&gt;Cognitive <phrase role="found">Walk-Through</phrase>&lt;/title&gt;
        &lt;p&gt;Expert reviewers evaluate Web site 
        understandability and ease of learning while 
        performing specified tasks. They <phrase role="found">walk through</phrase> 
        the site answering questions such as "Would a 
        user know by looking at the screen how to 
        complete the first step of the task?" and "If 
        the user completed the first step, would the 
        user know what to do next?," with the goal of 
        identifying any obstacles to completing the 
        task and assessing whether the user would 
        cognitively be aware that he was successful in 
        completing a step in the process.&lt;/p&gt;
     ...
   &lt;/book&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Wildcard">
<head>Use Case "WILDCARD": Character Wildcard (Prefix, Infix, Suffix) and Word Wildcard Queries</head>
<div2 id="wildcard-description">
<head>Description</head>
<p>These use cases illustrate queries which allow a character or sequence of characters to be inserted into or 
appended to a word or a part of a word. Character wildcards can be prefix (added before the first 
character), infix (inserted within a word), or suffix (added after the last character).</p>
<p>These use cases also illustrate queries which allow a word or words to be inserted into or appended to a phrase.</p>
</div2>
<div2 id="wildcard-queries-results">
<head>Queries and Results</head>
<div3 id="wildcard-queries-results-q1">
<head>Q1 Single Prefix Character Wildcard Query</head>
<p>Find all books with the word "way" with any one character prefix.</p>
<p>This query finds a word allowing any one character prefix (any one character before the first character).</p>
<ulist>
<item>
<p>Operands: "way"</p>
</item>
<item>
<p>Functionality: word query, character wildcard (prefix)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query specifies that one and only one character be added to the word.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;	
      ...				    
       &lt;p&gt;Expert reviews and usability testing are 
       methods of identifying problems in layout, 
       terminology, and navigation before they frustrate
       users and drive them <phrase role="found">away</phrase> from your site.&lt;/p&gt;
      ...	
   &lt;/content&gt;	
&lt;/book&gt;</eg>
</div3>
<div3 id="wildcard-queries-results-q2">
<head>Q2 Single Suffix Character Wildcard Query</head>
<p>Find all books with the word "test" with any one character suffix.</p>
<p>This query finds a word allowing any one character suffix (any one character after the last character).</p>
<ulist>
<item>
<p>Operands: "test"</p>
</item>
<item>
<p>Functionality: word query, character wildcard (suffix)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query finds "tests", but not "pretest" "test" "tested" "testers" "testimony" 
and "testing" which also appear in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Once the problems identified by expert 
         reviews have been corrected, it is time to 
         conduct some <phrase role="found">tests</phrase> of the site with your unique 
         audience or audiences by conducting usability 
         testing.&lt;/p&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;      

&lt;book number="2"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability <phrase role="found">tests</phrase> on Web sites. Usability 
         testing should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         ...
            &lt;title&gt;Planning then Conducting Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Tests</phrase>&lt;/title&gt; 
         ...
            &lt;title&gt;Conducting Usability <phrase role="found">Tests</phrase>&lt;/title&gt; 				
      ...     
   &lt;/content&gt; 
&lt;/book&gt;     
   
&lt;book number="3"&gt;
   &lt;content&gt;
      ...
         &lt;componentTitle&gt;"How to Evaluate Results from 
         User <phrase role="found">Tests</phrase>."&lt;/componentTitle&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="wildcard-queries-results-q3">
<head>Q3 Single Infix Character Wildcard Query</head>
<p>Find all books with the words "step or stop".</p>
<p>This query finds words allowing any one infix character (any one character in the middle of a word).</p>
<ulist>
<item>
<p>Operands: "st" "p"</p>
</item>
<item>
<p>Functionality: word query, character wildcard (infix)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query allows one and only one character to be added to the word.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...					    
        &lt;p&gt;The most successful projects employ multiple 
        methods in multiple iterations. As Millicent 
        Marigold remarked during a recent conference, 
        "Don't <phrase role="found">stop</phrase>. Iterate, iterate, then iterate 
        again."&lt;/p&gt;
        ...
           &lt;p&gt;Expert reviewers evaluate Web site 
           understandability and ease of learning while 
           performing specified tasks. They walk through 
           the site answering questions such as "Would a 
           user know by looking at the screen how to 
           complete the first step of the task?" and "If 
           the user completed the first <phrase role="found">step</phrase>, would the 
           user know what to do next?," with the goal of 
           identifying any obstacles to completing the 
           task and assessing whether the user would 
           cognitively be aware that he was successful in 
           completing a <phrase role="found">step</phrase> in the process.&lt;/p&gt;  
     ...
   &lt;/content&gt;
&lt;/book&gt;	</eg>
</div3>
<div3 id="wildcard-queries-results-q4">
<head>Q4 0 or More Prefix Character Wildcard Query</head>
<p>Find all books with the word "test" with any prefix.</p>
<p>This query finds a word allowing any prefix (0 or more characters before the first character).</p>
<ulist>
<item>
<p>Operands: "test"</p>
</item>
<item>
<p>Functionality: word query, character wildcard (prefix)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query finds "pretest", but not "test" "testers" "testimony" "testing" or "tests" 
which also appear in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;step number="5"&gt;Conduct a <phrase role="found">pretest</phrase> on a few 
         users.&lt;/step&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="wildcard-queries-results-q5">
<head>Q5 0 or More Suffix Character Wildcard Query</head>
<p>Find all books with the word "test" with any suffix.</p>
<p>This query finds a word allowing any suffix (0 or more characters after the last character)</p>
<ulist>
<item>
<p>Operands: "test"</p>
</item>
<item>
<p>Functionality: word query, character wildcard (suffix)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query finds "test" "testers" "testimony" "testing" and "tests", but not 
"pretest" which also appear in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Expert reviews and usability <phrase role="found">testing</phrase> are 
         methods of identifying problems in layout, 
         terminology, and navigation before they frustrate
         users and drive them away from your site.&lt;/p&gt;
         ...
            &lt;title&gt;Usability <phrase role="found">Testing</phrase>&lt;/title&gt;
            &lt;p&gt;Once the problems identified by expert 
            reviews have been corrected, it is time to 
            conduct some <phrase role="found">tests</phrase> of the site with your unique 
            audience or audiences by conducting usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>.&lt;/p&gt;
      ...     
   &lt;/content&gt;      						

&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;	
   &lt;content&gt;
      ...
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability <phrase role="found">tests</phrase> on Web sites. Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         ...
            &lt;title&gt;Planning then Conducting Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Tests</phrase>&lt;/title&gt; 
            &lt;p&gt;Take the following steps to plan usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>. &lt;step number="1"&gt;Clarify and 
            articulate the goal of the usability <phrase role="found">testing</phrase>.
            &lt;/step&gt; &lt;step number="2"&gt;Identify tasks which 
            are critical for users to be able to complete 
            successfully. &lt;/step&gt; &lt;step number="3"&gt;Compile 
            a script of questions or instructions which 
            will prompt the user to attempt those 
            tasks.&lt;/step&gt; &lt;step number="4"&gt;Identify your 
            users and begin recruiting them.&lt;/step&gt; &lt;step 
            number="5"&gt;Conduct a pretest on a few users.
            &lt;/step&gt; &lt;step number="6"&gt;Edit the script based 
            on insights gleaned from the pretest.&lt;/step&gt; 
            &lt;step number="7"&gt;Resume <phrase role="found">testing</phrase>.&lt;/step&gt;&lt;/p&gt;
            ...
            &lt;title&gt;Conducting Usability <phrase role="found">Tests</phrase>&lt;/title&gt; 
            &lt;p&gt;Users can be <phrase role="found">tested</phrase> at any computer 
            workstation &lt;footnote&gt;They may be most 
            comfortable at their own workstation.
            &lt;/footnote&gt; or in a lab.&lt;/p&gt;
            &lt;p&gt;Give the user the script, then assure them 
            that you are <phrase role="found">testing</phrase> the Web site, not them. 
            Users are asked to verbalize their thoughts as 
            they complete the tasks. The event is recorded 
            or someone takes notes. It is often preferable 
            to have two <phrase role="found">testers</phrase>, &lt;footnote&gt;Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> can be done at great expense or on a 
            shoe string, using &lt;testingProcedure&gt;in-house 
            expertise&lt;/testingProcedure&gt; or 
            &lt;testingProcedure&gt;contracting with human 
            computer interaction professionals
            &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
            questions, another to take notes. <phrase role="found">Testers</phrase> should 
            offer no guidance or comments to the user. Mouse 
            movements, typing, expressions, and the user's 
            words should be recorded.&lt;/p&gt;
            ...
            &lt;p&gt;Compile the results and review collectively. 
            Make changes to the site to alleviate the problems 
            found in Web site components which were propagating 
            the largest number of or the most devastating errors. 
            Begin new iterations of <phrase role="found">testing</phrase> and changes, until 
            users are successful in the accomplishing the 
            tasks.&lt;/p&gt;
      ...     
   &lt;/content&gt;      

&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;
   &lt;content&gt;
      ...           
         &lt;p&gt;Correspondence, telegrams, memoranda, journals, 
         logs, <phrase role="found">testimony</phrase>, approved travel orders, invitations, 
         charts, graphs, forms, biographical data, photographs, 
         book drafts, clippings and other printed matter, 
         résumés and miscellaneous material. Organized by 
         name of person or organization, topic, or type of 
         material.&lt;/p&gt;
         ...
               &lt;componentTitle&gt;"How Many Users Are Enough 
               for User <phrase role="found">Testing</phrase>?"&lt;/componentTitle&gt;
               ...   
               &lt;componentTitle&gt;"How to Evaluate Results from 
               User <phrase role="found">Tests</phrase>."&lt;/componentTitle&gt;
               ...
               &lt;container type="box"&gt;5&lt;/container&gt;
               &lt;componentTitle&gt;"When Are You Done <phrase role="found">Testing</phrase>?"
               &lt;/componentTitle&gt;
               ...
               &lt;componentTitle&gt;"Do-It-Yourself User <phrase role="found">Testing</phrase>"
               &lt;/componentTitle&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="wildcard-queries-results-q6">
<head>Q6 0 or More Suffix Character Wildcard Query on a Part of a Word</head>
<p>Find all books with the phrases "usability testing" or "user testing".</p>
<p>This query finds a phrase allowing any suffix (0 or more characters after the last character) on a part of 
						one of the words.</p>
<ulist>
<item>
<p>Operands: "us testing"</p>
</item>
<item>
<p>Functionality: phrase query, character wildcard (suffix)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This is an example of a suffix query on a part of a word "us" which is not one of the words or one of the roots of the words desired in the results. The query on
"us" will find "usability" and "user". Where stemmed queries (presented below in Section 7 (STEMMING) attempt to return linguistic variants on a word or the root of a word, wildcards may be applied to any part of a word and will return all character combinations found.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Expert reviews and <phrase role="found">usability testing</phrase> are 
         methods of identifying problems in layout, 
         terminology, and navigation before they frustrate
         users and drive them away from your site.&lt;/p&gt;
         ...
            &lt;title&gt;<phrase role="found">Usability Testing</phrase>&lt;/title&gt; 
            &lt;p&gt;Once the problems identified by expert 
            reviews have been corrected, it is time to 
            conduct some tests of the site with your unique 
            audience or audiences by conducting <phrase role="found">usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>.&lt;/p&gt;     
      ...     
   &lt;/content&gt;      
   
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability tests on Web sites. <phrase role="found">Usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         ...
            &lt;p&gt;Take the following steps to plan <phrase role="found">usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>. &lt;step number="1"&gt;Clarify and 
            articulate the goal of the <phrase role="found">usability testing</phrase>.
            &lt;/step&gt; &lt;step number="2"&gt;Identify tasks which 
            are critical for users to be able to complete 
            successfully. &lt;/step&gt; &lt;step number="3"&gt;Compile 
            a script of questions or instructions which 
            will prompt the user to attempt those 
            tasks.&lt;/step&gt; &lt;step number="4"&gt;Identify your 
            users and begin recruiting them.&lt;/step&gt; &lt;step 
            number="5"&gt;Conduct a pretest on a few users.
            &lt;/step&gt; &lt;step number="6"&gt;Edit the script based 
            on insights gleaned from the pretest.&lt;/step&gt; 
            &lt;step number="7"&gt;Resume testing.&lt;/step&gt;&lt;/p&gt;
            ...
            &lt;p&gt;Give the user the script, then assure them 
            that you are testing the Web site, not them. 
            Users are asked to verbalize their thoughts as 
            they complete the tasks. The event is recorded 
            or someone takes notes. It is often preferable 
            to have two testers, &lt;footnote&gt;<phrase role="found">Usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> can be done at great expense or on a 
            shoe string, using &lt;testingProcedure&gt;in-house 
            expertise&lt;/testingProcedure&gt; or 
            &lt;testingProcedure&gt;contracting with human 
            computer interaction professionals
            &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
            questions, another to take notes. Testers should 
            offer no guidance or comments to the user. Mouse 
            movements, typing, expressions, and the user's 
            words should be recorded.&lt;/p&gt;
      ...     
   &lt;/content&gt;      

&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;componentTitle&gt;"How Many Users Are Enough 
         for <phrase role="found">User Testing</phrase>?"&lt;/componentTitle&gt;
         ...
         &lt;componentTitle&gt;"Do-It-Yourself <phrase role="found">User Testing</phrase>"
         &lt;/componentTitle&gt;
         &lt;/subsubComponent&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="wildcard-queries-results-q7">
<head>Q7 0 or More Infix Character Wildcard Query</head>
<p>Find all books with the words "serve" or "service".</p>
<p>This query finds words allowing any infix characters (0 or more characters inserted in the middle of a word).</p>
<ulist>
<item>
<p>Operands: "serv", "e"</p>
</item>
<item>
<p>Functionality: word query, character wildcard (infix)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query returns the word "service" and would return the word "serve" if it existed in the sample 
data. It does not return the word "served" which exists in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
          &lt;p&gt;Then changes are made to improve <phrase role="found">service</phrase> to 
          users.&lt;/p&gt; 	
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="wildcard-queries-results-q8">
<head>Q8 Specified Range Suffix Characters Wildcard Query</head>
<p>Find all books with the word "test" with any three to four character suffix.</p>
<p>This query finds a word allowing a number of characters within a specified range in a suffix (specified range of characters after the last character)</p>
<ulist>
<item>
<p>Operands: "test"</p>
</item>
<item>
<p>Functionality: word query, character wildcard (suffix)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query allows any three or four character suffix. It returns "testers" and "testing", but not "pretest" "tests" "tested" 
						and "test" which also appear in the sample data.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Expert reviews and usability <phrase role="found">testing</phrase> are 
         methods of identifying problems in layout, 
         terminology, and navigation before they frustrate
         users and drive them away from your site.&lt;/p&gt;
         ...
            &lt;title&gt;Usability <phrase role="found">Testing</phrase>&lt;/title&gt;
            &lt;p&gt;Once the problems identified by expert 
            reviews have been corrected, it is time to 
            conduct some tests of the site with your unique 
            audience or audiences by conducting usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>.&lt;/p&gt;
      ...     
   &lt;/content&gt; 
&lt;/book&gt;     						

&lt;book number="2"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability tests on Web sites. Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         ...
            &lt;p&gt;Take the following steps to plan usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>. &lt;step number="1"&gt;Clarify and 
            articulate the goal of the usability <phrase role="found">testing</phrase>.
            &lt;/step&gt; &lt;step number="2"&gt;Identify tasks which 
            are critical for users to be able to complete 
            successfully. &lt;/step&gt; &lt;step number="3"&gt;Compile 
            a script of questions or instructions which 
            will prompt the user to attempt those 
            tasks.&lt;/step&gt; &lt;step number="4"&gt;Identify your 
            users and begin recruiting them.&lt;/step&gt; &lt;step 
            number="5"&gt;Conduct a pretest on a few users.
            &lt;/step&gt; &lt;step number="6"&gt;Edit the script based 
            on insights gleaned from the pretest.&lt;/step&gt; 
            &lt;step number="7"&gt;Resume <phrase role="found">testing</phrase>.&lt;/step&gt;&lt;/p&gt;
            ...
            &lt;p&gt;Give the user the script, then assure them 
            that you are <phrase role="found">testing</phrase> the Web site, not them. 
            Users are asked to verbalize their thoughts as 
            they complete the tasks. The event is recorded 
            or someone takes notes. It is often preferable 
            to have two <phrase role="found">testers</phrase>, &lt;footnote&gt;Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> can be done at great expense or on a 
            shoe string, using &lt;testingProcedure&gt;in-house 
            expertise&lt;/testingProcedure&gt; or 
            &lt;testingProcedure&gt;contracting with human 
            computer interaction professionals
            &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
            questions, another to take notes. <phrase role="found">Testers</phrase> should 
            offer no guidance or comments to the user. Mouse 
            movements, typing, expressions, and the user's 
            words should be recorded.&lt;/p&gt;
            ...
            &lt;p&gt;Compile the results and review collectively. 
            Make changes to the site to alleviate the problems 
            found in Web site components which were propagating 
            the largest number of or the most devastating errors. 
            Begin new iterations of <phrase role="found">testing</phrase> and changes, until 
            users are successful in the accomplishing the 
            tasks.&lt;/p&gt;
      ...     
   &lt;/content&gt; 
&lt;/book&gt;     

&lt;book number="3"&gt;
   &lt;content&gt;
      ...
         &lt;componentTitle&gt;"How Many Users Are Enough 
         for User <phrase role="found">Testing</phrase>?"&lt;/componentTitle&gt;
         ...
         &lt;container type="box"&gt;5&lt;/container&gt;
         &lt;componentTitle&gt;"When Are You Done <phrase role="found">Testing</phrase>?"
         &lt;/componentTitle&gt;
         ...
         &lt;componentTitle&gt;"Do-It-Yourself User <phrase role="found">Testing</phrase>"
         &lt;/componentTitle&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="wildcard-queries-results-q9">
<head>Q9 Word Wildcard Query</head>
<p>Find all books with a phrase which begins with "propagating", has any word in the middle, and ends with "errors".</p>
<p>This query finds a phrase where one of the words (represented by a wildcard) is unspecified.</p>
<ulist>
<item>
<p>Operands: "propagating errors"</p>
</item>
<item>
<p>Functionality: phrase query, word wildcard</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comment: This query is a word wildcard query. A one word wildcard query returns the same 
						result as an ordered proximity query allowing one intervening word.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The usability of a Web site is how well the 
         site supports the user in achieving specified 
         goals. A Web site should facilitate learning, 
         and enable efficient and effective task 
         completion, while <phrase role="found">propagating</phrase> few <phrase role="found">errors</phrase>. 
         Satisfaction with the site is also important. 
         The user must not only be well-served, but must 
         feel well-served.&lt;/p&gt; 
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="wildcard-queries-results-q10">
<head>Q10 Specified Range Word Wildcard Query</head>
<p>Find all books with a phrase which begins with "propagating", has up to ten words in the middle, and ends with "errors".</p>
<p>This query finds a phrase where a number of words within a specified range (represented by wildcards) are inserted after the first word and before the last.</p>
<ulist>
<item>
<p>Operands: "propagating errors"</p>
</item>
<item>
<p>Functionality: phrase query, word wildcard</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query illustrates a multiple word wildcard representing a specified range. In this query the range is set as 0 to 10. </p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The usability of a Web site is how well the 
         site supports the user in achieving specified 
         goals. A Web site should facilitate learning, 
         and enable efficient and effective task 
         completion, while <phrase role="found">propagating</phrase> few <phrase role="found">errors</phrase>. 
         Satisfaction with the site is also important. 
         The user must not only be well-served, but must 
         feel well-served.&lt;/p&gt; 
      ...     
   &lt;/content&gt;  
   
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;p&gt;Compile the results and review collectively. 
         Make changes to the site to alleviate the problems 
         found in Web site components which were <phrase role="found">propagating</phrase>
         the largest number of or the most devastating <phrase role="found">errors</phrase>. 
         Begin new iterations of testing and changes, until 
         users are successful in the accomplishing the 
         tasks.&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Stemming">
<head>Use Case "STEMMING": Word Stemming Queries</head>
<div2 id="stemming-description">
<head>Description</head>
<p>These use cases invoke a stemming algorithm (e.g., Porter) which returns noun, verb, adjective, and adverb 
forms of a word or root of a word in singular and plural.</p>
</div2>
<div2 id="stemming-queries-results">
<head>Queries and Results</head>
<div3 id="stemming-queries-results-q1">
<head>Q1 Single Word Stemming Query</head>
<p>Find all books with the word "test".</p>
<p>This query finds words in an element and its descendants applying a stemming algorithm.</p>
<ulist>
<item>
<p>Operands: "test"</p>
</item>
<item>
<p>Functionality: word query, stemming</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: Unlike the wildcard queries in Section 6 (WILDCARD) which allow any suffix, this query will 
						probably not return the word "testimony" which occurs in the sample data.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Expert reviews and usability <phrase role="found">testing</phrase> are 
         methods of identifying problems in layout, 
         terminology, and navigation before they frustrate
         users and drive them away from your site.&lt;/p&gt;
         ...
            &lt;title&gt;Usability <phrase role="found">Testing</phrase>&lt;/title&gt;
            &lt;p&gt;Once the problems identified by expert 
            reviews have been corrected, it is time to 
            conduct some <phrase role="found">tests</phrase> of the site with your unique 
            audience or audiences by conducting usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>.&lt;/p&gt;
      ...     
   &lt;/content&gt;      						

&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;	
   &lt;content&gt;
      ...
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability <phrase role="found">tests</phrase> on Web sites. Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         ...
            &lt;title&gt;Planning then Conducting Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Tests</phrase>&lt;/title&gt; 
            &lt;p&gt;Take the following steps to plan usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>. &lt;step number="1"&gt;Clarify and 
            articulate the goal of the usability <phrase role="found">testing</phrase>.
            &lt;/step&gt; &lt;step number="2"&gt;Identify tasks which 
            are critical for users to be able to complete 
            successfully. &lt;/step&gt; &lt;step number="3"&gt;Compile 
            a script of questions or instructions which 
            will prompt the user to attempt those 
            tasks.&lt;/step&gt; &lt;step number="4"&gt;Identify your 
            users and begin recruiting them.&lt;/step&gt; &lt;step 
            number="5"&gt;Conduct a pretest on a few users.
            &lt;/step&gt; &lt;step number="6"&gt;Edit the script based 
            on insights gleaned from the pretest.&lt;/step&gt; 
            &lt;step number="7"&gt;Resume <phrase role="found">testing</phrase>.&lt;/step&gt;&lt;/p&gt;
            ...
            &lt;title&gt;Conducting Usability <phrase role="found">Tests</phrase>&lt;/title&gt; 
            &lt;p&gt;Users can be <phrase role="found">tested</phrase> at any computer 
            workstation &lt;footnote&gt;They may be most 
            comfortable at their own workstation.
            &lt;/footnote&gt; or in a lab.&lt;/p&gt;
            ...
            &lt;p&gt;Give the user the script, then assure them 
            that you are <phrase role="found">testing</phrase> the Web site, not them. 
            Users are asked to verbalize their thoughts as 
            they complete the tasks. The event is recorded 
            or someone takes notes. It is often preferable 
            to have two <phrase role="found">testers</phrase>, &lt;footnote&gt;Usability 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> can be done at great expense or on a 
            shoe string, using &lt;testingProcedure&gt;in-house 
            expertise&lt;/testingProcedure&gt; or 
            &lt;testingProcedure&gt;contracting with human 
            computer interaction professionals
            &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
            questions, another to take notes. <phrase role="found">Testers</phrase> should 
            offer no guidance or comments to the user. Mouse 
            movements, typing, expressions, and the user's 
            words should be recorded.&lt;/p&gt;
            ...
            &lt;p&gt;Compile the results and review collectively. 
            Make changes to the site to alleviate the problems 
            found in Web site components which were propagating 
            the largest number of or the most devastating errors. 
            Begin new iterations of <phrase role="found">testing</phrase> and changes, until 
            users are successful in the accomplishing the 
            tasks.&lt;/p&gt;
      ...     
   &lt;/content&gt;      

&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;
   &lt;content&gt;
      ...           
         &lt;componentTitle&gt;"How Many Users Are Enough 
         for User <phrase role="found">Testing</phrase>?"&lt;/componentTitle&gt;
         ...
         &lt;componentTitle&gt;"How to Evaluate Results from 
         User <phrase role="found">Tests</phrase>."&lt;/componentTitle&gt;
         ...
         &lt;container type="box"&gt;5&lt;/container&gt;
         &lt;componentTitle&gt;"When Are You Done <phrase role="found">Testing</phrase>?"
         &lt;/componentTitle&gt;
         ...
         &lt;componentTitle&gt;"Do-It-Yourself User <phrase role="found">Testing</phrase>"
         &lt;/componentTitle&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="stemming-queries-results-q2">
<head>Q2 Multiple Word Stemming Query</head>
<p>Find all books with the phrases "usability testing" or "user testing".</p>
<p>This query finds phrases in an element and its descendants applying a stemming algorithm to multiple words.</p>
<ulist>
<item>
<p>Operands: "usable testing" "use testing" </p>
</item>
<item>
<p>Functionality: phrase query, stemming</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: Unlike the wildcard queries in Section 6 (WILDCARD) which allow any suffix, a stemmed query on "us" will not 
return the desired results because "user" and "usability" do not share the share root.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Expert reviews and <phrase role="found">usability testing</phrase> are 
         methods of identifying problems in layout, 
         terminology, and navigation before they frustrate
         users and drive them away from your site.&lt;/p&gt;
         ...
            &lt;title&gt;<phrase role="found">Usability Testing</phrase>&lt;/title&gt; 
            &lt;p&gt;Once the problems identified by expert 
            reviews have been corrected, it is time to 
            conduct some tests of the site with your unique 
            audience or audiences by conducting <phrase role="found">usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>.&lt;/p&gt;     
      ...     
   &lt;/content&gt;      
   
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability tests on Web sites. <phrase role="found">Usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         ...
            &lt;p&gt;Take the following steps to plan <phrase role="found">usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>. &lt;step number="1"&gt;Clarify and 
            articulate the goal of the <phrase role="found">usability testing</phrase>.
            &lt;/step&gt; &lt;step number="2"&gt;Identify tasks which 
            are critical for users to be able to complete 
            successfully. &lt;/step&gt; &lt;step number="3"&gt;Compile 
            a script of questions or instructions which 
            will prompt the user to attempt those 
            tasks.&lt;/step&gt; &lt;step number="4"&gt;Identify your 
            users and begin recruiting them.&lt;/step&gt; &lt;step 
            number="5"&gt;Conduct a pretest on a few users.
            &lt;/step&gt; &lt;step number="6"&gt;Edit the script based 
            on insights gleaned from the pretest.&lt;/step&gt; 
            &lt;step number="7"&gt;Resume testing.&lt;/step&gt;&lt;/p&gt;
            ...
            &lt;p&gt;Give the user the script, then assure them 
            that you are testing the Web site, not them. 
            Users are asked to verbalize their thoughts as 
            they complete the tasks. The event is recorded 
            or someone takes notes. It is often preferable 
            to have two testers, &lt;footnote&gt;<phrase role="found">Usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase> can be done at great expense or on a 
            shoe string, using &lt;testingProcedure&gt;in-house 
            expertise&lt;/testingProcedure&gt; or 
            &lt;testingProcedure&gt;contracting with human 
            computer interaction professionals
            &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
            questions, another to take notes. Testers should 
            offer no guidance or comments to the user. Mouse 
            movements, typing, expressions, and the user's 
            words should be recorded.&lt;/p&gt;
      ...     
   &lt;/content&gt;      

&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;componentTitle&gt;"How Many Users Are Enough 
         for <phrase role="found">User Testing</phrase>?"&lt;/componentTitle&gt;
         ...
         &lt;componentTitle&gt;"Do-It-Yourself <phrase role="found">User Testing</phrase>"
         &lt;/componentTitle&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Thesaurus">
<head>Use Case "THESAURUS": Queries Which Use Thesauri, Dictionaries, and Taxonomies</head>
<div2 id="thesaurus-description">
<head>Description</head>
<p>These use cases illustrate queries which return synonyms or related words identified by thesauri, dictionaries, and taxonomies.</p>
</div2>
<div2 id="thesaurus-queries-results">
<head>Queries and Results</head>
<div3 id="thesaurus-queries-results-q1">
<head>Q1 Query on Synonyms Identified by a Thesaurus</head>
<p>Find all books which contain quotes.</p>
<p>This query finds a word using a thesaurus to return synonyms.</p>
<ulist>
<item>
<p>Operands: "quote"</p>
</item>
<item>
<p>Functionality: word query, thesaurus support</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query uses thesaurus support to identify synonyms for the word "quote" 
						via preferred and used for terms. It returns the following words: said, says, stated, states, 
						spoke, speaks, replied, replies, reply, remarks, remarked, responded, response, reports, reported, 
						quotes, quoted, according to,	commented, discussed, expressed, told--which become additional 
						operands</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;  
      &lt;introduction&gt;
        &lt;p&gt;The most successful projects employ multiple 
        methods in multiple iterations. As Millicent 
        Marigold <phrase role="found">remarked</phrase> during a recent conference, 
        "Don't stop. Iterate, iterate, then iterate 
        again."&lt;/p&gt;
      &lt;/introduction&gt;
    ...	
   &lt;/content&gt;</eg>
</div3>
<div3 id="thesaurus-queries-results-q2">
<head>Q2 Query on Narrower Terms Identified by a Thesaurus</head>
<p>Find all books with text on improving web site components.</p>
<p>This query finds a word in one element or its descendants using a thesaurus to identify narrower terms.</p>
<ulist>
<item>
<p>Operands: "web site components"</p>
</item>
<item>
<p>Functionality: phrase query, thesaurus support</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query employs a thesaurus to identify web site components via narrower terms, including: layout, 
						terminology, graphics, menus, navigation--which become additional operands.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Expert reviews and usability testing are 
         methods of identifying problems in <phrase role="found">layout</phrase>, 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">terminology</phrase>, and <phrase role="found">navigation</phrase> before they frustrate
         users and drive them away from your site.&lt;/p&gt;
      ...     
   &lt;/content&gt;      
      
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;p&gt;Compile the results and review collectively. 
         Make changes to the site to alleviate the problems 
         found in <phrase role="found">Web site components</phrase> which were propagating 
         the largest number of or the most devastating errors. 
         Begin new iterations of testing and changes, until 
         users are successful in the accomplishing the 
         tasks.&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="thesaurus-queries-results-q3">
<head>Q3 Query on Broader Terms Identified by a Thesaurus</head>
<p>Are there any letters or holiday cards in John Wesley Usabilityguy's papers?</p>
<p>This query finds a word in one element or its descendants using a thesaurus to identify broader terms.</p>
<ulist>
<item>
<p>Operands: "letters" "holiday cards"</p>
</item>
<item>
<p>Functionality: word query, phrase query, thesaurus support</p>
</item>
<item>
<p>Context: books/book[3]//content</p>
</item>
<item>
<p>Return: books/book[3]/metadata/title, books/book[3]//content</p>
</item>
<item>
<p>Comments: This query employs a thesaurus to identify the broader term "correspondence"--which becomes an additional operand.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The papers of John Wesley Usabilityguy span the 
         years 1946-2001, with the bulk of the items 
         concentrated in the period from 1985 to 2001. The 
         papers feature his career as a developer of software 
         applications and usability specialist. The collection 
         consists of <phrase role="found">correspondence</phrase>, memoranda, journals, 
         speeches, article drafts, book drafts, notes, charts, 
         graphs, family papers, clippings, printed matter, 
         photographs, résumés and other materials.&lt;/p&gt;
         ...
            &lt;p&gt;<phrase role="found">Correspondence</phrase>, telegrams, memoranda, journals, 
            logs, testimony, approved travel orders, invitations, 
            charts, graphs, forms, biographical data, photographs, 
            book drafts, clippings and other printed matter, 
            résumés and miscellaneous material. Organized by 
            name of person or organization, topic, or type of 
            material.&lt;/p&gt;
            ...
            &lt;p&gt;<phrase role="found">Correspondence</phrase>, articles, book drafts, notes, 
            contracts, clippings, and printed matter. Arranged 
            alphabetically by type (articles, books, reports, 
            and miscellaneous) and therein alphabetically by 
            type of material, subject, or title.&lt;/p&gt;
      ...
   &lt;/content&gt;    </eg>
</div3>
<div3 id="thesaurus-queries-results-q4">
<head>Q4 Query on Word Which Sounds Like Other Words</head>
<p>	Find all books with words which sound like "Merrygould".</p>
<p>This query finds words in an element and its descendants using a dictionary of words which sound like the word queried.</p>
<ulist>
<item>
<p>Operands: "Merrygould"</p>
</item>
<item>
<p>Functionality: word query, sounds-like dictionary support</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//book</p>
</item>
<item>
<p>Comments: This query uses sounds-like support to identify words which sound
						like the word "Merrygould". It returns the word "Marigold"-- which becomes an additional operand.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;book&gt;
      ...
         &lt;author&gt;Millicent <phrase role="found">Marigold</phrase>&lt;/author&gt;
         &lt;author&gt;Montana <phrase role="found">Marigold</phrase>&lt;/author&gt;
         ...
         &lt;p&gt;The most successful projects employ multiple 
         methods in multiple iterations. As Millicent 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Marigold</phrase> remarked during a recent conference, 
         "Don't stop. Iterate, iterate, then iterate 
         again."&lt;/p&gt;
      ...
   &lt;/book&gt;
   
&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;
   &lt;book&gt;
      ...
         &lt;author&gt;Millicent <phrase role="found">Marigold</phrase>&lt;/author&gt;
      ...
   &lt;/book&gt;</eg>
</div3>
<div3 id="thesaurus-queries-results-q5">
<head>Q5 Query on Word Spelled Similarly to Other Words</head>
<p>	Find all books which contain words that are close in spelling to "sucessfull".</p>
<p>This query finds words in an element and its descendants using a dictionary of words that are spelled similarly.</p>
<ulist>
<item>
<p>Operands: "sucessfull"</p>
</item>
<item>
<p>Functionality: word query, similarly spelled dictionary support</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//book</p>
</item>
<item>
<p>Comments: This query uses support for similarly spelled words to identify words close in 
spelling to "sucessfull". It returns the word "successful"--which becomes an additional operand.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;book&gt;
      ...
         &lt;p&gt;The most <phrase role="found">successful</phrase> projects employ multiple 
         methods in multiple iterations. As Millicent 
         Marigold remarked during a recent conference, 
         "Don't stop. Iterate, iterate, then iterate 
         again."&lt;/p&gt;
         ...
            &lt;p&gt;Expert reviewers evaluate Web site 
            understandability and ease of learning while 
            performing specified tasks. They walk through 
            the site answering questions such as "Would a 
            user know by looking at the screen how to 
            complete the first step of the task?" and "If 
            the user completed the first step, would the 
            user know what to do next?," with the goal of 
            identifying any obstacles to completing the 
            task and assessing whether the user would 
            cognitively be aware that he was <phrase role="found">successful</phrase> in 
            completing a step in the process.&lt;/p&gt;
      ...
   &lt;/book&gt;	 

&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the Usability of
Your Web Site&lt;/title&gt;
   &lt;book&gt;
      ...
         &lt;p&gt;Compile the results and review collectively. 
         Make changes to the site to alleviate the problems 
         found in Web site components which were propagating 
         the largest number of or the most devastating errors. 
         Begin new iterations of testing and changes, until 
         users are <phrase role="found">successful</phrase> in the accomplishing the 
         tasks.&lt;/p&gt;
      ...
   &lt;/book&gt;</eg>
</div3>
<div3 id="thesaurus-queries-results-q6">
<head>Q6 Query on Subordinate Terms Identified by a Taxonomy</head>
<p>Find out whether John Wesley Usabilityguy included research on AIDS and other infectious diseases among the charities he supported.</p>
<p>This query finds a word in an element and its descendants in upper case letters using a taxonomy to identify 
subordinate terms.</p>
<ulist>
<item>
<p>Operands: "AIDS"</p>
</item>
<item>
<p>Functionality: word query, collation which is case-sensitive or limited to upper case, 
taxonomy support</p>
</item>
<item>
<p>Context: books/book[3]//component</p>
</item>
<item>
<p>Return: books/book/@number, books/book[3]//component</p>
</item>
<item>
<p>Comments: This query uses a taxonomy to identify other infectious diseases (e.g., Hepatitis, 
Tuberculosis) which are then added as operands.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="3"&gt; 
   &lt;component&gt;   
      &lt;componentTitle&gt;Charitable Contributions&lt;/componentTitle&gt; 
      &lt;subComponent&gt;
         &lt;componentTitle&gt;Diseases: <phrase role="found">AIDS</phrase>, <phrase role="found">Hepatitis</phrase>, 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Tuberculosis</phrase>&lt;componentDate normalize=
         "1990/1999"&gt;1990-1999&lt;/componentDate&gt;
         &lt;/componentTitle&gt;
      &lt;/subComponent&gt; 
   &lt;component&gt;
&lt;/book&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Boolean">
<head>Use Case "BOOLEAN": Or, And, and Not Queries</head>
<div2 id="boolean-description">
<head>Description</head>
<p>These use cases include Boolean queries using <code>or</code>, <code>and</code>, the unary <code>not</code>, 
<code>and not</code>, and <code>mild not</code>.</p>
</div2>
<div2 id="boolean-queries-results">
<head>Queries and Results</head>
<div3 id="boolean-queries-results-q1">
<head>Q1 Or Query</head>
<p>Find all books with the words "web" or "software" in the text.</p>
<p>This query finds one or both of the words in an element and its descendants.</p>
<ulist>
<item>
<p>Operands: "web" "software"</p>
</item>
<item>
<p>Functionality: word query, <code>or</code> query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comment: This <code>or</code> query returns either or both of words queried.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The usability of a <phrase role="found">Web</phrase> site is how well the 
         site supports the user in achieving specified 
         goals. A <phrase role="found">Web</phrase> site should facilitate learning, 
         and enable efficient and effective task 
         completion, while propagating few errors. 
         Satisfaction with the site is also important. 
         The user must not only be well-served, but must 
         feel well-served.&lt;/p&gt; 
         ...
         &lt;p&gt;This book has been approved by the <phrase role="found">Web</phrase> Site 
         Users Association.&lt;/p&gt;
         ...
            &lt;p&gt;Expert reviewers identify problems 
            and recommend changes to <phrase role="found">web</phrase> sites based 
            on research in human computer interaction 
            and their experience in the field.&lt;/p&gt; 
            ...
            &lt;p&gt;Expert review methods should be 
            initiated early in the development process, 
            as soon as paper &lt;b&gt;p&lt;/b&gt;rototypes 
            (hand-drawn pictures of <phrase role="found">Web</phrase> pages) or 
            &lt;b&gt;w&lt;/b&gt;ireframes (electronic mockups) are 
            available. They should be conducted using 
            the hardware and <phrase role="found">software</phrase> similar to that 
            employed by users.&lt;/p&gt;
            ...
            &lt;p&gt;Expert reviewers critique an interface to 
            determine conformance with recognized 
            usability principles. &lt;footnote&gt;One of the 
            best known lists of heuristics is &lt;citation 
            url="http://www.useit.com/papers/heuristic
            /heuristic_list.html"&gt;Ten Usability 
            Heuristics by Jacob Nielson&lt;/citation&gt;. Another 
            is &lt;citation url="http://usability.gov
            /guidelines/index.html"&gt; Research-Based <phrase role="found">Web</phrase> 
            Design and Usability Guidelines&lt;/citation&gt;
            &lt;/footnote&gt;&lt;/p&gt; 
            ...
            &lt;p&gt;Expert reviewers evaluate <phrase role="found">Web</phrase> site 
            understandability and ease of learning while 
            performing specified tasks. They walk through 
            the site answering questions such as "Would a 
            user know by looking at the screen how to 
            complete the first step of the task?" and "If 
            the user completed the first step, would the 
            user know what to do next?," with the goal of 
            identifying any obstacles to completing the 
            task and assessing whether the user would 
            cognitively be aware that he was successful in 
            completing a step in the process.&lt;/p&gt;
      ...     
   &lt;/content&gt; 
        
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability tests on <phrase role="found">Web</phrase> sites. Usability 
         testing should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         &lt;p&gt;This book has not been approved by the <phrase role="found">Web</phrase> Site 
         Users Association.&lt;/p&gt;
         ...
            &lt;p&gt;Give the user the script, then assure them 
            that you are testing the <phrase role="found">Web</phrase> site, not them. 
            Users are asked to verbalize their thoughts as 
            they complete the tasks. The event is recorded 
            or someone takes notes. It is often preferable 
            to have two testers, &lt;footnote&gt;Usability 
            testing can be done at great expense or on a 
            shoe string, using &lt;testingProcedure&gt;in-house 
            expertise&lt;/testingProcedure&gt; or 
            &lt;testingProcedure&gt;contracting with human 
            computer interaction professionals
            &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
            questions, another to take notes. Testers should 
            offer no guidance or comments to the user. Mouse 
            movements, typing, expressions, and the user's 
            words should be recorded.&lt;/p&gt;
            ...
            &lt;p&gt;Compile the results and review collectively. 
            Make changes to the site to alleviate the problems 
            found in <phrase role="found">Web</phrase> site components which were propagating 
            the largest number of or the most devastating errors. 
            Begin new iterations of testing and changes, until 
            users are successful in the accomplishing the 
           tasks.&lt;/p&gt;
      ...     
   &lt;/content&gt;     
    
&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;   
   &lt;content&gt;
      ...
         &lt;p&gt;The papers of John Wesley Usabilityguy span the 
         years 1946-2001, with the bulk of the items 
         concentrated in the period from 1985 to 2001. The 
         papers feature his career as a developer of <phrase role="found">software</phrase> 
         applications and usability specialist. The collection 
         consists of correspondence, memoranda, journals, 
         speeches, article drafts, book drafts, notes, charts, 
         graphs, family papers, clippings, printed matter, 
         photographs, résumés and other materials.&lt;/p&gt;
         ...
            &lt;componentTitle&gt;<phrase role="found">Software</phrase>, 
            &lt;componentDate normalize="1946/1947"&gt;1946-1947
            &lt;/componentDate&gt;
            &lt;/componentTitle&gt;
            ...
            &lt;componentTitle&gt;<phrase role="found">Web</phrase> User Appreciation Award, 
            &lt;componentDate normalize="1956"&gt;1956&lt;/componentDate&gt;
            &lt;/componentTitle&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="boolean-queries-results-q2">
<head>Q2 Or Query on More than Two Words</head>
<p>Find all books with the words "web" or "software" or "internet" in the text.</p>
<p>This query finds any or all of the words in an element and its descendants.</p>
<ulist>
<item>
<p>Operands: "web" "software" "internet"</p>
</item>
<item>
<p>Functionality: word queries, <code>or</code> query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: An <code>or</code> query can have any number of words as operands. Since the word "internet" does not appear in the sample data, books 
with both or either of the remaining two words are returned.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
       ...
         &lt;p&gt;The usability of a <phrase role="found">Web</phrase> site is how well the 
         site supports the user in achieving specified 
         goals. A <phrase role="found">Web</phrase> site should facilitate learning, 
         and enable efficient and effective task 
         completion, while propagating few errors. 
         Satisfaction with the site is also important. 
         The user must not only be well-served, but must 
         feel well-served.&lt;/p&gt; 
         ...
         &lt;p&gt;This book has been approved by the <phrase role="found">Web</phrase> Site 
         Users Association.&lt;/p&gt;
         ...
            &lt;p&gt;Expert reviewers identify problems 
            and recommend changes to <phrase role="found">web</phrase> sites based 
            on research in human computer interaction 
            and their experience in the field.&lt;/p&gt; 
            ...
            &lt;p&gt;Expert review methods should be 
            initiated early in the development process, 
            as soon as paper &lt;b&gt;p&gt;/b&gt;rototypes 
            (hand-drawn pictures of <phrase role="found">Web</phrase> pages) or 
            &lt;b&gt;w&lt;/b&gt;ireframes (electronic mockups) are 
            available. They should be conducted using 
            the hardware and <phrase role="found">software</phrase> similar to that 
            employed by users.&lt;/p&gt;
            ...
            &lt;p&gt;Expert reviewers critique an interface to 
            determine conformance with recognized 
            usability principles. &lt;footnote&gt;One of the 
            best known lists of heuristics is &lt;citation 
            url="http://www.useit.com/papers/heuristic
            /heuristic_list.html"&gt;Ten Usability 
            Heuristics by Jacob Nielson&lt;/citation&gt;. Another 
            is &lt;citation url="http://usability.gov
            /guidelines/index.html"&gt; Research-Based <phrase role="found">Web</phrase> 
            Design and Usability Guidelines&lt;/citation&gt;
            &lt;/footnote&gt;&lt;/p&gt; 
            ...
            &lt;p&gt;Expert reviewers evaluate <phrase role="found">Web</phrase> site 
            understandability and ease of learning while 
            performing specified tasks. They walk through 
            the site answering questions such as "Would a 
            user know by looking at the screen how to 
            complete the first step of the task?" and "If 
            the user completed the first step, would the 
            user know what to do next?," with the goal of 
            identifying any obstacles to completing the 
            task and assessing whether the user would 
            cognitively be aware that he was successful in 
            completing a step in the process.&lt;/p&gt;
      ...     
   &lt;/content&gt; 
        
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; 
   &lt;content&gt;
      ...
         &lt;p&gt;This is a basic handbook for planning and 
         conducting usability tests on <phrase role="found">Web</phrase> sites. Usability 
         testing should be used in conjunction with other 
         expert review methods.&lt;/p&gt;
         &lt;p&gt;This book has not been approved by the <phrase role="found">Web</phrase> Site 
         Users Association.&lt;/p&gt;
         ...
            &lt;p&gt;Give the user the script, then assure them 
            that you are testing the <phrase role="found">Web</phrase> site, not them. 
            Users are asked to verbalize their thoughts as 
            they complete the tasks. The event is recorded 
            or someone takes notes. It is often preferable 
            to have two testers, &lt;footnote&gt;Usability 
            testing can be done at great expense or on a 
            shoe string, using &lt;testingProcedure&gt;in-house 
            expertise&lt;/testingProcedure&gt; or 
            &lt;testingProcedure&gt;contracting with human 
            computer interaction professionals
            &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
            questions, another to take notes. Testers should 
            offer no guidance or comments to the user. Mouse 
            movements, typing, expressions, and the user's 
            words should be recorded.&lt;/p&gt;
            ...
            &lt;p&gt;Compile the results and review collectively. 
            Make changes to the site to alleviate the problems 
            found in <phrase role="found">Web</phrase> site components which were propagating 
            the largest number of or the most devastating errors. 
            Begin new iterations of testing and changes, until 
            users are successful in the accomplishing the 
            tasks.&lt;/p&gt;
      ...     
   &lt;/content&gt;     
    
&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;   
   &lt;content&gt;
      ...
         &lt;p&gt;The papers of John Wesley Usabilityguy span the 
         years 1946-2001, with the bulk of the items 
         concentrated in the period from 1985 to 2001. The 
         papers feature his career as a developer of <phrase role="found">software</phrase> 
         applications and usability specialist. The collection 
         consists of correspondence, memoranda, journals, 
         speeches, article drafts, book drafts, notes, charts, 
         graphs, family papers, clippings, printed matter, 
         photographs, résumés and other materials.&lt;/p&gt;
         ...
            &lt;componentTitle&gt;<phrase role="found">Software</phrase>, 
            &lt;componentDate normalize="1946/1947"&gt;1946-1947
            &lt;/componentDate&gt;
            &lt;/componentTitle&gt;
            ...
            &lt;componentTitle&gt;<phrase role="found">Web</phrase> User Appreciation Award, 
            &lt;componentDate normalize="1956"&gt;1956&lt;/componentDate&gt;
            &lt;/componentTitle&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="boolean-queries-results-q3">
<head>Q3 Or Query on Phrases</head>
<p>Find all books with the phrases "heuristic evaluation" or "cognitive walk-through".</p>
<p>This query finds any or all of the phrases in an element or its descendants.</p>
<ulist>
<item>
<p>Operands:"heuristic evaluation" "cognitive walk-through"</p>
</item>
<item>
<p>Functionality: word query, <code>or</code> query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: An <code>or</code> query can have any number of words and phrases as operands.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Two expert review methods are discussed 
         here. They are <phrase role="found">heuristic evaluation</phrase> and 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">cognitive walk-through</phrase>.&lt;/p&gt; 
         &lt;title&gt;<phrase role="found">Cognitive Walk-Through</phrase>&lt;/title&gt;
         &lt;title&gt;<phrase role="found">Heuristic Evaluation</phrase>&lt;/title&gt;  
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="boolean-queries-results-q4">
<head>Q4 And Query</head>
<p>Find all books with the words "web" "software" in the text.</p>
<p>This query finds all of the words in one element and its descendants.</p>
<ulist>
<item>
<p>Operands: "web" "software"</p>
</item>
<item>
<p>Functionality: word queries, <code>and</code> query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: The <code>and</code> query finds both words.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The usability of a <phrase role="found">Web</phrase> site is how well the 
         site supports the user in achieving specified 
         goals. A <phrase role="found">Web</phrase> site should facilitate learning, 
         and enable efficient and effective task 
         completion, while propagating few errors. 
         Satisfaction with the site is also important. 
         The user must not only be well-served, but must 
         feel well-served.&lt;/p&gt; 
         ...
         &lt;p&gt;This book has been approved by the <phrase role="found">Web</phrase> Site 
         Users Association.&lt;/p&gt;
         ...
            &lt;p&gt;Expert reviewers identify problems 
            and recommend changes to <phrase role="found">web</phrase> sites based 
            on research in human computer interaction 
            and their experience in the field.&lt;/p&gt; 
            ...
            &lt;p&gt;Expert review methods should be 
            initiated early in the development process, 
            as soon as paper &lt;b&gt;p&lt;/b&gt;rototypes 
           (hand-drawn pictures of <phrase role="found">Web</phrase> pages) or 
            &lt;b&gt;w&lt;/b&gt;ireframes (electronic mockups) are 
            available. They should be conducted using 
            the hardware and <phrase role="found">software</phrase> similar to that 
            employed by users.&lt;/p&gt;
            ...
            &lt;p&gt;Expert reviewers critique an interface to 
            determine conformance with recognized 
            usability principles. &lt;footnote&gt;One of the 
            best known lists of heuristics is &lt;citation 
            url="http://www.useit.com/papers/heuristic
            /heuristic_list.html"&gt;Ten Usability 
            Heuristics by Jacob Nielson&lt;/citation&gt;. Another 
            is &lt;citation url="http://usability.gov
            /guidelines/index.html"&gt; Research-Based <phrase role="found">Web</phrase> 
            Design and Usability Guidelines&lt;/citation&gt;
            &lt;/footnote&gt;&lt;/p&gt; 
            ...
            &lt;p&gt;Expert reviewers evaluate <phrase role="found">Web</phrase> site 
            understandability and ease of learning while 
            performing specified tasks. They walk through 
            the site answering questions such as "Would a 
            user know by looking at the screen how to 
            complete the first step of the task?" and "If 
            the user completed the first step, would the 
            user know what to do next?," with the goal of 
            identifying any obstacles to completing the 
            task and assessing whether the user would 
            cognitively be aware that he was successful in 
            completing a step in the process.&lt;/p&gt;
      ...     
   &lt;/content&gt;   
    
&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;   
   &lt;content&gt;
      ...
         &lt;p&gt;The papers of John Wesley Usabilityguy span the 
         years 1946-2001, with the bulk of the items 
         concentrated in the period from 1985 to 2001. The 
         papers feature his career as a developer of <phrase role="found">software</phrase> 
         applications and usability specialist. The collection 
         consists of correspondence, memoranda, journals, 
         speeches, article drafts, book drafts, notes, charts, 
         graphs, family papers, clippings, printed matter, 
         photographs, résumés and other materials.&lt;/p&gt;
         ...
            &lt;componentTitle&gt;<phrase role="found">Software</phrase>, 
            &lt;componentDate normalize="1946/1947"&gt;1946-1947
            &lt;/componentDate&gt;
            &lt;/componentTitle&gt;
            ...
            &lt;componentTitle&gt;<phrase role="found">Web</phrase> User Appreciation Award, 
            &lt;componentDate normalize="1956"&gt;1956&lt;/componentDate&gt;
            &lt;/componentTitle&gt;
      ...     
   &lt;/content&gt; </eg>
</div3>
<div3 id="boolean-queries-results-q5">
<head>Q5 And Query on More than Two Words</head>
<p>Find all books with the words "web" "software" "internet" in the text.</p>
<p>This query finds all of the words queried in an element or its descendants.</p>
<ulist>
<item>
<p>Operands: "web" "software" "internet"</p>
</item>
<item>
<p>Functionality: word queries, <code>and</code> query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: An <code>and</code> query can have any number of words as operands. The word "internet" does not appear in the sample data, so
no results are returned.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg><![CDATA[No results returned.]]></eg>
</div3>
<div3 id="boolean-queries-results-q6">
<head>Q6 And Query on Phrases</head>
<p>Find all books with the phrases "heuristic evaluation" and "cognitive walk-through" in the text.</p>
<p>This query finds all of the phrases queried in an element or its descendants.</p>
<ulist>
<item>
<p>Operands: "heuristic evaluation" "cognitive walk-through"</p>
</item>
<item>
<p>Functionality: phrase queries, <code>and</code> query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: An <code>and</code> query can have any number of words or phrases as operands.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Two expert review methods are discussed 
         here. They are <phrase role="found">heuristic evaluation</phrase> and 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">cognitive walk-through</phrase>.&lt;/p&gt; 
         &lt;title&gt;<phrase role="found">Cognitive Walk-Through</phrase>&lt;/title&gt;
         &lt;title&gt;<phrase role="found">Heuristic Evaluation</phrase>&lt;/title&gt;  
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="boolean-queries-results-q7">
<head>Q7 Unary Not Query</head>
<p>Find all books which do not belong in a collection on usability testing.</p>
<p>This query finds books which do not contain a phrase in any element.</p>
<ulist>
<item>
<p>Operands: "usability testing" </p>
</item>
<item>
<p>Functionality: phrase query, character wildcard (suffix), <code>unary not</code> query</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title</p>
</item>
<item>
<p>Comments: Unlike the <code>and not</code> query below, the <code>unary not</code> query 
requires only one operand. This query has value for information architects and data managers 
who will use it for checks such as this one, to find nonconforming data and documents in a 
collection.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg><![CDATA[No results returned.]]></eg>
</div3>
<div3 id="boolean-queries-results-q8">
<head>Q8 And Not Query</head>
<p>Find all books with the word "usability" and not the word "plan" in the metadata.</p>
<p>This query finds a word only when another is not found.</p>
<ulist>
<item>
<p>Operands: "usability" "plan"</p>
</item>
<item>
<p>Functionality: word query, <code>and not</code> query</p>
</item>
<item>
<p>Context: books/book//metadata</p>
</item>
<item>
<p>Return: books/book//metadata</p>
</item>
<item>
<p>Comments: The <code>and not</code> query is also called a <code>but</code>, <code>but not</code>, and 
<code>without</code> query. Unlike the <code>unary not</code> query above,this query requires two operands. Book 2
which contains the words "usability" and "plan" in the metadata is not returned.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;metadata&gt;
   &lt;title&gt;Improving the <phrase role="found">Usability</phrase> of a Web Site Through 
   Expert Reviews and <phrase role="found">Usability</phrase> Testing&lt;/title&gt;
&lt;/metadata&gt;</eg>
</div3>
<div3 id="boolean-queries-results-q9">
<head>Q9 And Not Query Where Second Operand is a Subset of the First Operand</head>
<p>Find all books with listings for résumés, drafts, and correspondence, and not book drafts in the metadata or text.</p>
<p>This query finds books with multiple words and not a phrase containing one of those words in an element.</p>
<ulist>
<item>
<p>Operands: "résumés" "drafts" "correspondence" "book drafts"</p>
</item>
<item>
<p>Functionality: word queries,  <code>or</code> query, phrase query, <code>and not</code> query, 
						collation requiring presence of diacritics</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query will not return a result which contains everything the user wants which 
						also includes what the user does not want, "book drafts". The user will lose results which contain 
						everything he wants when that book also contains what he does not want.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg><![CDATA[No results returned.]]></eg>
</div3>
<div3 id="boolean-queries-results-q10">
<head>Q10 Mild Not Query Where Second Operand is a Subset of the First Operand</head>
<p>Find all books with listings for résumés, drafts, and correspondence, and not book 
						drafts, in the metadata or text.</p>
<p>This query finds books with multiple words, not considering a phrase containing one of those words, 
						in an element.</p>
<ulist>
<item>
<p>Operands: "résumés" "drafts" "correspondence" "book drafts"</p>
</item>
<item>
<p>Functionality: word queries, <code>or</code> query, phrase query, <code>mild not</code> query, 
						collation requiring presence of diacritics</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//book</p>
</item>
<item>
<p>Comments: This query will return a result which contains all
the terms user wants which may also include some of the terms user
deprecated via the mild not, "book drafts". The user will not lose results which 
						contain everything he wants when that book also contains what he does not want. Books containing 
						instances of "book drafts" (a subset of "drafts") are not excluded, merely not considered.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;John Wesley Usabilityguy: A Register of 
His Papers&lt;/title&gt;
   &lt;content&gt;
    &lt;introduction&gt;
       &lt;p&gt;The papers of John Wesley Usabilityguy span the 
       years 1946-2001, with the bulk of the items 
       concentrated in the period from 1985 to 2001. The 
       papers feature his career as a developer of software 
       applications and usability specialist. The collection 
       consists of <phrase role="found">correspondence</phrase>, memoranda, journals, 
       speeches, article <phrase role="found">drafts</phrase>, book drafts, notes, charts, 
       graphs, family papers, clippings, printed matter, 
       photographs, <phrase role="found">résumés</phrase> and other materials.&lt;/p&gt;
    &lt;/introduction&gt;
    ...
&lt;/content&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Distance">
<head>Use Case "DISTANCE": Queries on Distance Relationships Including Proximity, Window, Sentence, and Paragraph Queries</head>
<div2 id="distance-description">
<head>Description</head>
<p>These use cases illustrate unordered, ordered, and nested proximity queries which look for 
					sequences of words allowing up to a specified number of intervening words. They also include queries 
					within unordered and ordered windows of a specified number of words, within a sentence, and within a 
					paragraph.</p>
</div2>
<div2 id="distance-queries-results">
<head>Queries and Results</head>
<div3 id="distance-queries-results-q1">
<head>Q1 Unordered Proximity Query</head>
<p>Find all books with information on software developers.</p>
<p>This query finds multiple words in an element in any order allowing up to a specified number of intervening words.</p>
<ulist>
<item>
<p>Operands: "software" "developer"</p>
</item>
<item>
<p>Functionality: word queries, stemming, unordered proximity (0 to 3 intervening words)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query returns "developer of software", which also occurs in the sample data, 
						which a phrase query in Section 2 (WORD) could not.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;John Wesley Usabilityguy: A Register of 
His Papers&lt;/title&gt;
   &lt;content&gt;
      &lt;introduction&gt;
         &lt;p&gt;The papers of John Wesley Usabilityguy span the 
         years 1946-2001, with the bulk of the items 
         concentrated in the period from 1985 to 2001. The 
         papers feature his career as a <phrase role="found">developer</phrase> of <phrase role="found">software</phrase> 
         applications and usability specialist. The collection 
         consists of correspondence, memoranda, journals, 
         speeches, article drafts, book drafts, notes, charts, 
         graphs, family papers, clippings, printed matter, 
         photographs, résumés and other materials.&lt;/p&gt;
      &lt;/introduction&gt;
      ...
   &lt;/content&gt;</eg>
</div3>
<div3 id="distance-queries-results-q2">
<head>Q2 Ordered Proximity Query</head>
<p>Find all books with information on efficient task completion.</p>
<p>This query finds multiple words in an element and its descendants in the order queried allowing up to a specified number 
						of intervening words.</p>
<ulist>
<item>
<p>Operands: "efficient" "task" "completion"</p>
</item>
<item>
<p>Functionality: word queries, ordered proximity (0 to 10 intervening words)</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query is more permissive than an phrase query on "efficient task completion" 
which would return no results.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The usability of a Web site is how well the 
         site supports the user in achieving specified 
         goals. A Web site should facilitate learning, 
         and enable <phrase role="found">efficient</phrase> and effective <phrase role="found">task</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">completion</phrase>, while propagating few errors. 
         Satisfaction with the site is also important. 
         The user must not only be well-served, but must 
         feel well-served.&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="distance-queries-results-q3">
<head>Q3 Unordered Window Query</head>
<p>Find all books on how expert reviews identify and correct problems.</p>
<p>This query finds books with multiple words within an unordered window of up to a specified number of words.</p>
<ulist>
<item>
<p>Operands: "problems" "correct" "identify" "expert reviews"</p>
</item>
<item>
<p>Functionality: word queries, phrase query, stemming, unordered window of 0 to 30 words</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query opens a window on the first found word or phrase (which can be any of the words or phrases queried, and counts a specified number 
						of words from that first word within which it may find the remaining word or words, finding them in any order.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Once the <phrase role="found">problems</phrase>&nbsp;<phrase role="found">identified</phrase> by <phrase role="found">expert</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">reviews</phrase> have been <phrase role="found">corrected</phrase>, it is time to 
         conduct some tests of the site with your unique 
         audience or audiences by conducting usability 
         testing.&lt;/p&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="distance-queries-results-q4">
<head>Q4 Ordered Window Query</head>
<p>Find all books about users feeling well-served.</p>
<p>This query finds books with multiple words within an ordered window of up to a specified number of words.</p>
<ulist>
<item>
<p>Operands: "users" "feeling" "well" "served"</p>
</item>
<item>
<p>Functionality: word queries, stemming, collation which treats the hyphen as a space, unordered 
						window of 0 to 15 words</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query opens a window on the first found word (which must be the first word queried) and counts a specified number 
						of words from that first word within which it may find the remaining word or words, finding them 
						in the order queried.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The usability of a Web site is how well the 
         site supports the user in achieving specified 
         goals. A Web site should facilitate learning, 
         and enable efficient and effective task 
         completion, while propagating few errors. 
         Satisfaction with the site is also important. 
         The <phrase role="found">user</phrase> must not only be well-served, but must
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">feel</phrase>&nbsp;<phrase role="found">well</phrase>-<phrase role="found">served</phrase>.&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="distance-queries-results-q5">
<head>Q5 Unordered Within a Sentence Query</head>
<p>Find books which discuss questions asked during cognitive walk-throughs.</p>
<p>This query finds books with multiple words in any order within a sentence.</p>
<ulist>
<item>
<p>Operands: "users" "would" "know" "step"</p>
</item>
<item>
<p>Functionality: word queries, stemming, unordered sentence query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query expects an implementation-defined tokenized sentence or a sentence element.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Expert reviewers evaluate Web site 
         understandability and ease of learning while 
         performing specified tasks. They walk through 
         the site answering questions such as "<phrase role="found">Would</phrase> a
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">user</phrase>&nbsp;<phrase role="found">know</phrase> by looking at the screen how to
         complete the first <phrase role="found">step</phrase> of the task?" and "If 
         the user completed the first step, would the 
         user know what to do next?," with the goal of 
         identifying any obstacles to completing the 
         task and assessing whether the user would 
         cognitively be aware that he was successful in 
         completing a step in the process.&lt;/p&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="distance-queries-results-q6">
<head>Q6 Ordered Within a Sentence Query</head>
<p>Find books which discuss questions asked during cognitive walk-throughs.</p>
<p>This query finds books with multiple words in the order queried within a sentence.</p>
<ulist>
<item>
<p>Operands: "users" "would" "know" "step"</p>
</item>
<item>
<p>Functionality: word queries, stemming, ordered sentence query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query expects an implementation-defined tokenized sentence or a sentence element.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg><![CDATA[No results found.]]></eg>
</div3>
<div3 id="distance-queries-results-q7">
<head>Q7 Unordered Within a Paragraph Query</head>
<p>Find all paragraphs which define what Web site usability is.</p>
<p>This query finds books with multiple words and phrases in any order within a paragraph.</p>
<ulist>
<item>
<p>Operands: "usability" "Web site" "efficiency" "satisfaction"</p>
</item>
<item>
<p>Functionality: word queries, phrase query, stemming, unordered paragraph query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query expects an implementation-defined tokenized paragraph or a paragraph element.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The <phrase role="found">usability</phrase> of a <phrase role="found">Web site</phrase> is how well the
         site supports the user in achieving specified
         goals. A <phrase role="found">Web site</phrase> should facilitate learning,
         and enable <phrase role="found">efficient</phrase> and effective task
         completion, while propagating few errors.
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Satisfaction</phrase> with the site is also important.
         The user must not only be well-served, but must
         feel well-served.&lt;/p&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="distance-queries-results-q8">
<head>Q8 Ordered Within a Paragraph Query</head>
<p>Find all paragraphs which define what Web site usability is.</p>
<p>This query finds books with multiple words and phrases in any order within a paragraph.</p>
<ulist>
<item>
<p>Operands: "usability" "Web site" "is"</p>
</item>
<item>
<p>Functionality: word queries, phrase query, stemming, ordered paragraph query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query expects an implementation-defined tokenized paragraph or a paragraph element.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The <phrase role="found">usability</phrase> of a <phrase role="found">Web site</phrase>&nbsp;<phrase role="found">is</phrase> how well the 
         site supports the user in achieving specified 
         goals. A Web site should facilitate learning, 
         and enable efficient and effective task 
         completion, while propagating few errors. 
         Satisfaction with the site is also important. 
         The user must not only be well-served, but must
         feel well-served.&lt;/p&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Advanced-word">
<head>Use Case "ADVANCED-WORD": Advanced Word and Phrase Queries</head>
<div2 id="advanced-word-description">
<head>Description</head>
<p>These use cases illustrate advanced word and phrase queries. They specify order of multiple words searched, find a phrase based on number of occurrences, find a phrase only when it starts an element, and find a phrase only when it is the entire content of the element.</p>
</div2>
<div2 id="advanced-word-queries-results">
<head>Queries and Results</head>
<div3 id="advanced-word-queries-results-q1">
<head>Q1 Ordered Word Query</head>
<p>Find all book text containing the words "goal" "obstacles" "task" in this order.</p>
<p>This query finds multiple words within an element and its descendants in the order queried.</p>
<ulist>
<item>
<p>Operands: "goal" "obstacles" "task"</p>
</item>
<item>
<p>Functionality: ordered word query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query requires multiple words be found in a specified 
order. It is more permissive than a phrase query. It is comparable to an 
ordered proximity query where the number of intervening words is 0 or more.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
        &lt;p&gt;Expert reviewers evaluate Web site 
        understandability and ease of learning while 
        performing specified tasks. They walk through 
        the site answering questions such as "Would a 
        user know by looking at the screen how to 
        complete the first step of the task?" and "If 
        the user completed the first step, would the 
        user know what to do next?," with the <phrase role="found">goal</phrase> of 
        identifying any <phrase role="found">obstacles</phrase> to completing the 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">task</phrase> and assessing whether the user would 
       cognitively be aware that he was successful in 
        completing a step in the process.&lt;/p&gt;
      ...
   &lt;/content&gt;
&lt;/book&gt;
</eg>
</div3>
<div3 id="advanced-word-queries-results-q2">
<head>Q2 AtLeast Query</head>
<p>Find all books which repeat the phrase "expert review methods" at least 2 times.</p>
<p>This query finds a phrase that is repeated a specified number of times in an element and its descendants.</p>
<ulist>
<item>
<p>Operands: "expert review methods"</p>
</item>
<item>
<p>Functionality: phrase query</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query employs the <code>atleast</code> query. Here it excludes books with 
only minor references to "expert review methods".</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...     
         &lt;p&gt;Two <phrase role="found">expert review methods</phrase> are discussed 
         here. They are heuristic evaluation and 
         cognitive walk-through.&lt;/p&gt; 
         &lt;p&gt;<phrase role="found">Expert review methods</phrase> should be 
         initiated early in the development process, 
         as soon as paper &lt;b&gt;p&lt;/b&gt;rototypes 
         (hand-drawn pictures of Web pages) or 
         &lt;b&gt;w&lt;/b&gt;ireframes (electronic mockups) are 
         available. They should be conducted using 
         the hardware and software similar to that 
         employed by users.&lt;/p&gt;
      ...
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="advanced-word-queries-results-q3">
<head>Q3 Starts-With Query</head>
<p>Find book titles which start with "improving the usability".</p>
<p>This query finds an element which starts with a phrase.</p>
<ulist>
<item>
<p>Operands: "improving the usability"</p>
</item>
<item>
<p>Functionality: phrase query, starts-with functionality</p>
</item>
<item>
<p>Context: books/book/metadata/title</p>
</item>
<item>
<p>Return: books/book/metadata/title</p>
</item>
<item>
<p>Comments: The starts-with functionality restricts the query to the first phrase in an element. It is especially useful in querying journal 
titles (e.g., <emph>Journal of Psychology</emph>) in large library collections. This query does not find book 2 which contains the phrase 
"improving the usability" in the title element, because "improving the usability" is not the first phrase in the title element.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;<phrase role="found">Improving the Usability</phrase> of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;</eg>
</div3>
<div3 id="advanced-word-queries-results-q4">
<head>Q4 Exact Phrase Only Query</head>
<p>Find all books with the exact title "Improving the Usability of a Web Site Through Expert Reviews and 
Usability Testing"</p>
<p>This query finds the exact phrase allowing no other words or phrases in the element.</p>
<ulist>
<item>
<p>Operands: "improving the usability of a web site through expert reviews and usability
						testing"</p>
</item>
<item>
<p>Functionality: phrase query</p>
</item>
<item>
<p>Context: books/book/metadata/title</p>
</item>
<item>
<p>Return: books/book/metadata/title</p>
</item>
<item>
<p>Comments: This query insists that the content of the element is exactly the same, no more, no less than what is queried.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;<phrase role="found">Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing</phrase>&lt;/title&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Score">
<head>Use Case "SCORE": Queries Unique to Score</head>
<div2 id="score-description">
<head>Description</head>
<p>These queries exploit score and can not be written as a query with a pure Boolean 
					full-text predicate. Among these queries are multiple word and phrase queries without operators, 
					a query that computes and returns only scores, a query which returns only results over a specified threshold, a query which filters by score,
					and a query which returns all the documents ordered. </p>
<p>All the queries in these Use Cases may use scoring. The Use Cases in this section are merely a small subset that focuses on score. Scoring methodologies will not be defined in this standard. 
Scoring will be implementation-defined. </p>
</div2>
<div2 id="score-queries-results">
<head>Queries and Results</head>
<div3 id="score-queries-results-q1">
<head>Q1 Multiple Word Query</head>
<p>Find all book text containing the words "task" "completion" "goals".</p>
<p>This query finds multiple words within an element, returning books containing all the words first, then those with fewer, then those with one.</p>
<ulist>
<item>
<p>Operands: "task" "completion" "goals"</p>
</item>
<item>
<p>Functionality: word query, stemming, implementation-defined scoring</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query on multiple words can not be written as a query with pure Boolean full-text 
predicate without additional functionality (e.g., <code>and</code>, <code>or</code>, proximity). This is however a common scored query.The scoring methodology in this use case 
case is for illustrative purposes only. Scoring methodologies will be implementation-defined.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The usability of a Web site is how well the 
         site supports the user in achieving specified 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">goals</phrase>. A Web site should facilitate learning, 
         and enable efficient and effective task 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">completion</phrase>, while propagating few errors. 
         Satisfaction with the site is also important. 
         The user must not only be well-served, but must 
         feel well-served.&lt;/p&gt; 
         ..
            &lt;p&gt;Expert reviewers evaluate Web site 
            understandability and ease of learning while 
            performing specified <phrase role="found">tasks</phrase>. They walk through 
            the site answering questions such as "Would a 
            user know by looking at the screen how to 
            complete the first step of the task?" and "If 
            the user completed the first step, would the 
            user know what to do next?," with the goal of 
            identifying any obstacles to completing the 
            task and assessing whether the user would 
            cognitively be aware that he was successful in 
            completing a step in the process.&lt;/p&gt;
            ...
            &lt;p&gt;Users are asked to complete <phrase role="found">tasks</phrase> which 
            measure the success of the information 
            architecture and navigational elements of the 
            site.&lt;/p&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;  
                  
&lt;book number="2"&gt;
   &lt;content&gt;
      ...              
         &lt;p&gt;Take the following steps to plan usability 
         testing. &lt;step number="1"&gt;Clarify and 
         articulate the goal of the usability testing.
         &lt;/step&gt; &lt;step number="2"&gt;Identify <phrase role="found">tasks</phrase> which 
         are critical for users to be able to complete 
         successfully. &lt;/step&gt; &lt;step number="3"&gt;Compile 
         a script of questions or instructions which 
         will prompt the user to attempt those 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">tasks</phrase>.&lt;/step&gt; &lt;step number="4"&gt;Identify your 
         users and begin recruiting them.&lt;/step&gt; &lt;step 
         number="5"&gt;Conduct a pretest on a few users.
         &lt;/step&gt; &lt;step number="6"&gt;Edit the script based 
         on insights gleaned from the pretest.&lt;/step&gt; 
         &lt;step number="7"&gt;Resume testing.&lt;/step&gt;&lt;/p&gt;
         ...
         &lt;p&gt;Give the user the script, then assure them 
         that you are testing the Web site, not them. 
         Users are asked to verbalize their thoughts as 
         they complete the <phrase role="found">tasks</phrase>. The event is recorded 
         or someone takes notes. It is often preferable 
         to have two testers, &lt;footnote&gt;Usability 
         testing can be done at great expense or on a 
         shoe string, using &lt;testingProcedure&gt;in-house 
         expertise&lt;/testingProcedure&gt; or 
         &lt;testingProcedure&gt;contracting with human 
         computer interaction professionals
         &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
         questions, another to take notes. Testers should 
         offer no guidance or comments to the user. Mouse 
         movements, typing, expressions, and the user's 
         words should be recorded.&lt;/p&gt;
         ...
         &lt;p&gt;Compile the results and review collectively. 
         Make changes to the site to alleviate the problems 
         found in Web site components which were propagating 
         the largest number of or the most devastating errors. 
         Begin new iterations of testing and changes, until 
         users are successful in the accomplishing the 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">tasks</phrase>.&lt;/p&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="score-queries-results-q2">
<head>Q2 Multiple Phrase Query</head>
<p>Find all books containing the phrases "heuristic evaluation" and "cognitive walk-through".</p>
<p>This query finds multiple phrases within an element, returning books containing all phrases queried first, books with one phrase or none after.</p>
<ulist>
<item>
<p>Operands: "heuristic evaluation" "cognitive walk-through"</p>
</item>
<item>
<p>Functionality: phrase query, implementation-defined scoring</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number, books//content</p>
</item>
<item>
<p>Comments: This query on multiple phrases can not be written as a query with pure Boolean full-text 
predicate without additional functionality (e.g., <code>and</code>, <code>or</code>, proximity). This is however a common scored query. The scoring methodology in this use case 
case is for illustrative purposes only. Scoring methodologies will be implementation-defined.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Two expert review methods are discussed 
         here. They are <phrase role="found">heuristic evaluation</phrase> and 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">cognitive walk-through</phrase>.&lt;/p&gt; 
         ...
         &lt;title&gt;<phrase role="found">Heuristic Evaluation</phrase>&lt;/title&gt; 
         ...
         &lt;title&gt;<phrase role="found">Cognitive Walk-Through</phrase>&lt;/title&gt;
      ...     
   &lt;/content&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="score-queries-results-q3">
<head>Q3 Query Which Returns Scores</head>
<p>Find all books which mention usability. Return the book numbers and scores.</p>
<p>This query performs a word query and returns scores, highest first.</p>
<ulist>
<item>
<p>Operands: "usability"</p>
</item>
<item>
<p>Functionality: word query, implementation-defined scoring, returns score</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title, score (constructed element)</p>
</item>
<item>
<p>Comments: This query is only possible as a scored query. Scores are included between 0 and 1. The scoring methodology in this use case 
case is for illustrative purposes only. Scoring methodologies will be implementation-defined. </p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;score&gt;<phrase role="found">.12</phrase>&lt;/score&gt;
   
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;score&gt;<phrase role="found">.11</phrase>&lt;/score&gt;

&lt;title&gt;John Wesley Usabilityguy: A Register of His 
Papers&lt;/title&gt;   
   &lt;score&gt;<phrase role="found">.02</phrase>&lt;/score&gt;</eg>
</div3>
<div3 id="score-queries-results-q4">
<head>Q4 Query Returning Results with Top Scores</head>
<p>Find the best two books on usability.</p>
<p>This query performs a word query and returns only the results with the top scores as specified.</p>
<ulist>
<item>
<p>Operands: "usability"</p>
</item>
<item>
<p>Functionality: word query, implementation-defined scoring, returns top scores (returns books with the top 2 scores)</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title</p>
</item>
<item>
<p>Comments: This query returns results only for the 2 books with the highest scores. This query is only possible as a scored query. The scoring methodology in this use case 
case is for illustrative purposes only. Scoring methodologies will be implementation-defined.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; </eg>
</div3>
<div3 id="score-queries-results-q5">
<head>Q5 Query Which Filters on Scores</head>
<p>Find all books that focus on usability.</p>
<p>This query performs a word query and filters on scores.</p>
<ulist>
<item>
<p>Operands: "usability"</p>
</item>
<item>
<p>Functionality: word query, implementation-defined scoring, filters on scores (accepts only those with score over .10)</p>
</item>
<item>
<p>Context: books//book</p>
</item>
<item>
<p>Return: books/book/metadata/title</p>
</item>
<item>
<p>Comments: This query is only possible as a scored query. The scoring methodology in this use case 
case is for illustrative purposes only. Scoring methodologies will be implementation-defined.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   
&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt; </eg>
</div3>
<div3 id="score-queries-results-q6">
<head>Q6 Query Which Returns All Documents Ordered</head>
<p>Find all books on software.</p>
<p>This query performs a word query, returns all the documents in the database, and orders them returning those with found word first, those without last.</p>
<ulist>
<item>
<p>Operands: "software"</p>
</item>
<item>
<p>Functionality: word query, implementation-defined scoring</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/@number books//content</p>
</item>
<item>
<p>Comments: This query is only meaningful as a scored query. This query is probably only desirable in a small collection or database. The scoring methodology in this use case 
case is for illustrative purposes only. Scoring methodologies will be implementation-defined.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt; 
   &lt;content&gt;
       ...
        &lt;p&gt;Expert review methods should be
        initiated early in the development process, 
        as soon as paper &lt;b&gt;p&lt;/b&gt;rototypes
        (hand-drawn pictures of Web pages) or
        &lt;b&gt;w&lt;/b&gt;ireframes (electronic mockups) are
        available. They should be conducted using
        the hardware and <phrase role="found">software</phrase> similar to that 
        employed by users.&lt;/p&gt;
     ...   
  &lt;/content&gt;
&lt;/book&gt;

&lt;book number="3"&gt; 
   &lt;content&gt;
      ...
         &lt;p&gt;The papers of John Wesley Usabilityguy span the 
         years 1946-2001, with the bulk of the items 
         concentrated in the period from 1985 to 2001. The 
         papers feature his career as a developer of <phrase role="found">software</phrase> 
         applications and usability specialist. The collection 
         consists of correspondence, memoranda, journals, 
         speeches, article drafts, book drafts, notes, charts, 
         graphs, family papers, clippings, printed matter, 
         photographs, résumés and other materials.&lt;/p&gt;
      ...      
   &lt;/content&gt;
&lt;/book&gt; 

&lt;book number="2"&gt; ... &lt;/book&gt;
</eg>
</div3>
</div2>
</div1>
<div1 id="Structure">
<head>Use Case "STRUCTURE": Queries using XPath Axes</head>
<div2 id="structure-description">
<head>Description</head>
<p>These use cases illustrate full-text queries that use XPath axes to query parent, children, ancestors, descendants, and 
siblings of XML elements.</p>
</div2>
<div2 id="structure-queries-results">
<head>Queries and Results</head>
<div3 id="structure-queries-results-q1">
<head>Q1 Query on Element and Its Children</head>
<p>Find all books with chapter titles containing the word "usability" and chapter paragraphs containing the phrase "computer workstation".</p>
<p>This query finds a word in a child of an element and a phrase in another child of the same element.</p>
<ulist>
<item>
<p>Operands: "usability", "computer workstation"</p>
</item>
<item>
<p>Functionality: word query, phrase query</p>
</item>
<item>
<p>Context: books//chapter/title, books//chapter/p</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//chapter/title, books//chapter/p</p>
</item>
<item>
<p>Comments: This query looks for a word in the immediate title child of a chapter and for a phrase in that chapter's immediate paragraph 
child, and returns the chapter only if that word and that phrase appear in those children.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;chapter&gt;
      &lt;title&gt;Conducting <phrase role="found">Usability</phrase> Tests&lt;/title&gt; 
      &lt;p&gt;Users can be tested at any <phrase role="found">computer</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">workstation</phrase> &lt;footnote&gt;They may be most 
      comfortable at their own workstation.&lt;/footnote&gt; 
      or in a lab.&lt;/p&gt;
   &lt;/chapter&gt;</eg>
</div3>
<div3 id="structure-queries-results-q2">
<head>Q2 Query on Element Returning Its First Two Children</head>
<p>Find the first two steps in chapters on conducting usability tests.</p>
<p>This query finds words in an element and returns the first two children of the element.</p>
<ulist>
<item>
<p>Operands: "usability", "test"</p>
</item>
<item>
<p>Functionality: word queries, stemming</p>
</item>
<item>
<p>Context: books/book//chapter/p</p>
</item>
<item>
<p>Return: books/book/@number, books/book/content/part/chapter/p/step[1], books/book/content/part/chapter/p/step[2].</p>
</item>
<item>
<p>Comments: This query finds words in a chapter paragraph element and uses XPath to return the two first children 
of the element.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="2"&gt;
   &lt;step number="1"&gt;Clarify and 
   articulate the goal of the usability testing.
   &lt;/step&gt; 
   &lt;step number="2"&gt;Identify tasks which 
   are critical for users to be able to complete 
   successfully.&lt;/step&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="structure-queries-results-q3">
<head>Q3 Query on Element and Its Descendants</head>
<p>Find all books with paragraphs containing the phrase "computer workstation" and footnotes 
within the paragraph containing the word "comfortable".</p>
<p>This query finds a phrase in an element, then finds a descendant of that element that contains 
a word.</p>
<ulist>
<item>
<p>Operands: "computer workstation" "comfortable"</p>
</item>
<item>
<p>Functionality: phrase query, word query</p>
</item>
<item>
<p>Context: books//p, books//footnote</p>
</item>
<item>
<p>Return: books/book/@number, books//p, books//footnote</p>
</item>
<item>
<p>Comments: This query combines phrase and word search in different elements which have an ancestor-descendant relationship.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="2"&gt;      
   &lt;p&gt;Users can be tested at any <phrase role="found">computer</phrase> 
&nbsp;&nbsp;&nbsp;<phrase role="found">workstation</phrase>&lt;footnote&gt;They may be most 
&nbsp;&nbsp;&nbsp;<phrase role="found">comfortable</phrase> at their own 
   workstation.&lt;/footnote&gt; or in a lab.&lt;/p&gt;
&lt;/book&gt;  </eg>
</div3>
<div3 id="structure-queries-results-q4">
<head>Q4 Query on Element and Its Parent</head>
<p>Are there any flow diagrams of human computer interaction scenarios in John Wesley 
Usabilityguy's papers?</p>
<p>This query finds a phrase in one element and a phrase in its parent element.</p>
<ulist>
<item>
<p>Operands: "flow diagrams" "human computer interaction"</p>
</item>
<item>
<p>Functionality: phrase queries, character wildcard (suffix)</p>
</item>
<item>
<p>Context: books//subcomponent/componentTitle, books//subsubcomponent/componentTitle</p>
</item>
<item>
<p>Return: books/book/@number, books//componentTitle</p>
</item>
<item>
<p>Comments: This query looks for two different phrases in two different elements and imposes a parent/child relationship 
between the two elements.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="3"&gt;
     &lt;componentTitle&gt;<phrase role="found">Human Computer Interaction</phrase> 
     research, &lt;/componentTitle&gt;
     ...
        &lt;componentTitle&gt;<phrase role="found">Flow diagram</phrase>, 
        &lt;/componentTitle&gt;            
&lt;/book&gt;</eg>
</div3>
<div3 id="structure-queries-results-q5">
<head>Q5 Query on Element and Its Ancestors</head>
<p>Are there any flow diagrams of human computer interaction scenarios in John Wesley 
						Usabilityguy's papers?</p>
<p>This query finds a phrase in one element and a phrase in its ancestor element.</p>
<ulist>
<item>
<p>Operands: "flow diagrams" "human computer interaction"</p>
</item>
<item>
<p>Functionality: phrase queries, character wildcard (suffix)</p>
</item>
<item>
<p>Context: books//subcomponent/componentTitle, books//subsubcomponent/componentTitle</p>
</item>
<item>
<p>Return: books/book/@number, books//componentTitle</p>
</item>
<item>
<p>Comments: 	This query looks for a phrase in an element and a different phrase in  all its ancestor elements.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="3"&gt;
     &lt;componentTitle&gt;<phrase role="found">Human Computer Interaction</phrase> 
     research, &lt;/componentTitle&gt;
     ...
        &lt;componentTitle&gt;<phrase role="found">Flow diagram</phrase>, 
        &lt;/componentTitle&gt;             
&lt;/book&gt;</eg>
</div3>
<div3 id="structure-queries-results-q6">
<head>Q6 Query on Element and Its Right Siblings</head>
<p>Find all book chapters with paragraphs on usability testing followed by paragraphs on information architecture.</p>
<p>This query finds a phrase in an element and another phrase in one of its right siblings.</p>
<ulist>
<item>
<p>Operands: "usability testing" "information architecture"</p>
</item>
<item>
<p>Functionality: phrase queries</p>
</item>
<item>
<p>Context: books/book/content/part//introduction|chapter</p>
</item>
<item>
<p>Return: books/book/@number books/book/content/part//introduction|chapter</p>
</item>
<item>
<p>Comments: This query is a Boolean query that returns book chapters if they contain paragraphs following each other 
as specified in the query.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;chapter&gt;
      &lt;title&gt;<phrase role="found">Usability Testing</phrase>&lt;/title&gt;
      &lt;p&gt;Once the problems identified by expert
      reviews have been corrected, it is time to
      conduct some tests of the site with your unique 
      audience or audiences by conducting <phrase role="found">usability</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">testing</phrase>.&lt;/p&gt;
      &lt;p&gt;Users are asked to complete tasks which 
      measure the success of the <phrase role="found">information</phrase> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">architecture</phrase> and navigational elements of the 
      site.&lt;/p&gt;
      ...
   &lt;/chapter&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="structure-queries-results-q7">
<head>Q7 Query on Element and Its Siblings</head>
<p>Find all books with information on identifying problems in a chapter or in an introduction to part.</p>
<p>This query finds words in an element and one of its siblings.</p>
<ulist>
<item>
<p>Operands: "identifying" "problems"</p>
</item>
<item>
<p>Functionality: word queries, character wildcard (suffix), unordered proximity query (0 to 3 intervening words)</p>
</item>
<item>
<p>Context: books/book/content/part//introduction|chapter</p>
</item>
<item>
<p>Return: books/book/@number, books/book/content/part//introduction|chapter</p>
</item>
<item>
<p>Comments: The query could return the two siblings which satisfy the full-text predicates in any order.
								</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;
   &lt;introduction&gt;
      &lt;p&gt;Expert reviewers <phrase role="found">identify</phrase>&nbsp;<phrase role="found">problems</phrase> and recommend changes 
      to web sites based on research in human computer interaction 
      and their experience in the field.&lt;/p&gt; 
      ...
   &lt;/introduction&gt;
   ...
   &lt;chapter&gt;
      ...
      &lt;p&gt;Once the <phrase role="found">problems</phrase>&nbsp;<phrase role="found">identified</phrase> by expert reviews have been 
      corrected, it is time to conduct some tests of the site with your 
      unique audience or audiences by conducting usability testing.&lt;/p&gt;
      ...
   &lt;/chapter&gt;
&lt;/book&gt; </eg>
</div3>
<div3 id="structure-queries-results-q8">
<head>Q8 Query on Same Element in Different Sub-Trees</head>
<p>Find all books with word "identify" in book introductions and part introductions.</p>
<p>This query finds a word in instances of the same element in different sub-trees.</p>
<ulist>
<item>
<p>Operands: "identify"</p>
</item>
<item>
<p>Functionality: word query, character wildcard (suffix)</p>
</item>
<item>
<p>Context: books/book/content/introduction/p, books/book/content/part/introduction/p</p>
</item>
<item>
<p>Return: books/book/@number, books/book/content/introduction, books/book/content/part/introduction</p>
</item>
<item>
<p>Comments: This query looks for a word in  multiple instances of the introduction element which appear as a child 
content or part elements.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;      
   &lt;introduction&gt;
      ...
       &lt;p&gt;Expert reviews and usability testing are 
       methods of <phrase role="found">identifying</phrase> problems in layout, 
       terminology, and navigation before they frustrate
       users and drive them away from your site.&lt;/p&gt;
      ...
    &lt;/introduction&gt;
    ...
    &lt;part number="1"&gt;
      ...
         &lt;introduction&gt;
           &lt;p&gt;Expert reviewers <phrase role="found">identify</phrase> problems 
           and recommend changes to web sites based 
           on research in human computer interaction 
           and their experience in the field.&lt;/p&gt; 
              ...
          &lt;/introduction&gt;
      ...
   &lt;/part&gt;
&lt;/book&gt; </eg>
</div3>
<div3 id="structure-queries-results-q9">
<head>Q9 Query on Different Elements in Different Sub-Trees</head>
<p>Find all books with a title containing the word "usability", with a book introduction 
containing the word "satisfaction", and with a part introduction containing the phrase "identify problems".</p>
<p>This query finds a word in one element, then finds words and phrases in different descendants of that element.</p>
<ulist>
<item>
<p>Operands: "usability" "satisfaction" "identify problems"</p>
</item>
<item>
<p>Functionality: word queries, phrase query</p>
</item>
<item>
<p>Context: books/book/metadata/title, books/book/content//introduction, 
books/book/content/part//introduction</p>
</item>
<item>
<p>Return: books/book/@number, books/book/metadata/title, books/book/content/introduction, 
books/book/content/part/introduction</p>
</item>
<item>
<p>Comments: This query looks for phrases and words in specific descendants of an element that might appear anywhere 
under the element.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt;  
   &lt;title&gt;Improving the <phrase role="found">Usability</phrase> of a Web Site Through 
   Expert Reviews and <phrase role="found">Usability</phrase> Testing&lt;/title&gt;    
   &lt;introduction&gt;
      ...   
         &lt;p&gt;The usability of a Web site is how well the 
         site supports the user in achieving specified 
         goals. A Web site should facilitate learning, 
         and enable efficient and effective task 
         completion, while propagating few 
         errors. <phrase role="found">Satisfaction</phrase> with the site is also important. 
         The user must not only be well-served, but must 
         feel well-served.&lt;/p&gt;
      ...
   &lt;/introduction&gt;
   &lt;part number="1"&gt;
      ...
       &lt;introduction&gt;
          &lt;p&gt;Expert reviewers <phrase role="found">identify problems</phrase> and recommend changes 
          to web sites based on research in human computer interaction 
          and their experience in the field.&lt;/p&gt; 
          ...
       &lt;/introduction&gt;
   &lt;/part&gt;         
&lt;/book&gt; </eg>
</div3>
<div3 id="structure-queries-results-q10">
<head>Q10 Conditional Query on Different Elements in Different Sub-Trees</head>
<p>Find paragraphs in books on "usability testing" with remarks by Millicent Marigold.</p>
<p>This query finds a phrase in one element. If found then finds words in another element in a 
different sub-tree, using a thesaurus to return synonyms.</p>
<ulist>
<item>
<p>Operands: "usability testing" "remarks" "Marigold"</p>
</item>
<item>
<p>Functionality: phrase query, conditional logic, word queries, stemming, unordered proximity query (0 to 3 intervening words between "remarks" and "Marigold")</p>
</item>
<item>
<p>Context: books//subject, books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: 	This query looks for phrases 	and words in any descendant of an element that must contain a specific phrase.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
       &lt;p&gt;The most successful projects employ multiple 
       methods in multiple iterations. As Millicent 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Marigold</phrase>&nbsp;<phrase role="found">remarked</phrase> during a recent conference, 
       "Don't stop. Iterate, iterate, then iterate again."&lt;/p&gt;
      ...
   &lt;/content&gt;	</eg>
</div3>
<div3 id="structure-queries-results-q11">
<head>Q11 Query on Element and Its Descendants, Returning Ancestors and Descendants</head>
<p>Find component, subcomponent, and subsubcomponent elements and their descendants which 
contain information about Usabilityguy's research on human computer interactions. Return the 
corresponding physical container numbers and componentTitles of each component, subcomponent, 
or subsubcomponent.</p>
<p>This query finds a phrase in an element, then moves up the sub-tree to locate another element, 
returns that element and one of its descendants.</p>
<ulist>
<item>
<p>Operands: "human computer interaction research"</p>
</item>
<item>
<p>Functionality: phrase query</p>
</item>
<item>
<p>Context: books//component</p>
</item>
<item>
<p>Return: books/book/@number, books//container, books//componentTitle</p>
</item>
<item>
<p>Comments: This query exercises the possibility of returning any ancestor and descendant of qualified elements 
(i.e., those containing the phrase).</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="3"&gt; 
   &lt;container type="box"&gt;1&lt;/container&gt;
      &lt;componentTitle&gt;<phrase role="found">Human Computer Interaction research</phrase>&lt;/componentTitle&gt;
      ...
         &lt;componentTitle&gt;Flow diagrams&lt;/componentTitle&gt;
         ...
         &lt;componentTitle&gt;General&lt;/componentTitle&gt;
         &lt;container type="box"&gt;2&lt;/container&gt;
         ...
         &lt;componentTitle&gt;Eye Movement research&lt;/componentTitle&gt;
         ...
         &lt;componentTitle&gt;User profiling research&lt;/componentTitle&gt;
&lt;/book&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Ignore">
<head>Use Case "IGNORE": Queries Ignoring Tags and Content</head>
<div2 id="ignore-description">
<head>Description</head>
<p>These queries cross element boundaries when finding a word or a sequence of words, ignoring tags that appear 
within a word or a sequence of words or ignoring the content of elements that appear within the sequence of words. 
Some queries ignore any tag or specified tags. Tags to ignore may be specified as an explicit list of tags or using an 
XPath query that identifies them. Other queries ignore the content of any element or specified elements. Elements whose 
content is ignored may be specified as an explicit list of elements or using an XPath query that identifies them. Other 
queries combine Boolean queries and proximity queries when looking for words or sequences of words.</p>
<p>Ignored Tags and Content are treated as non-existent when 
matching a phrase in the current use cases. An extension to 
this semantics might allow users to override this semantics 
and specify which markup should be replaced by whitespace, 
paragraph break, etc., and have a default semantics.</p>
<p> These queries combine mechanisms to identify descendant elements, a full-text query, and a mechanism to ignore tags or content.</p>
</div2>
<div2 id="ignore-queries-results">
<head>Queries and Results</head>
<div3 id="ignore-queries-results-q1">
<head>Q1 Query Ignoring Tags within a Word</head>
<p>Find part introductions containing the word "prototypes" ignoring bold markup.</p>
<p>This query crosses element boundaries, ignoring the tags of the element b (bold highlighting).</p>
<ulist>
<item>
<p>Operands: "prototypes"</p>
</item>
<item>
<p>Functionality: word query, ignore tags of the element b</p>
</item>
<item>
<p>Context: books/book/content/part/introduction</p>
</item>
<item>
<p>Return: books/book/@number, books/book/content/part/introduction</p>
</item>
<item>
<p>Comments: This query should be able to cross any number of bold highlightings in the word.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt;</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt; 
   &lt;introduction&gt;
      ...
         &lt;p&gt;Expert review methods should be
         initiated early in the development process, 
         as soon as paper &lt;b&gt;<phrase role="found">p</phrase>&lt;/b&gt;<phrase role="found">rototypes</phrase>
         (hand-drawn pictures of Web pages) or
         &lt;b&gt;w&lt;/b&gt;ireframes (electronic mockups) are
         available. They should be conducted using
         the hardware and software similar to that 
         employed by users.&lt;/p&gt;
      ...      
   &lt;/introduction&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="ignore-queries-results-q2">
<head>Q2 Query Ignoring Tags within Multiple Words </head>
<p>Find part introductions containing the word 
"prototypes" and the word "wireframes" ignoring bold markup.</p>
<p>  This query crosses element boundaries, ignoring the tags of the element b (bold 
highlighting).</p>
<ulist>
<item>
<p>Operands: "prototypes" "wireframes"</p>
</item>
<item>
<p>Functionality: word query, <code>or</code> query, ignore tags of the element b</p>
</item>
<item>
<p>Context: books/book/content/part/introduction</p>
</item>
<item>
<p>Return: books/book/@number, books/book/content/part/introduction</p>
</item>
<item>
<p>Comments: Similar queries could ignore different tags to match different words.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt;</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;book number="1"&gt; 
   &lt;introduction&gt;
      ...
         &lt;p&gt;Expert review methods should be
         initiated early in the development process, 
         as soon as paper &lt;b&gt;<phrase role="found">p</phrase>&lt;/b&gt;<phrase role="found">rototypes</phrase>
         (hand-drawn pictures of Web pages) or
         &lt;b&gt;<phrase role="found">w</phrase>&lt;/b&gt;<phrase role="found">ireframes</phrase> (electronic mockups) are
         available. They should be conducted using
         the hardware and software similar to that 
         employed by users.&lt;/p&gt;
      ...
   &lt;/introduction&gt;
&lt;/book&gt;</eg>
</div3>
<div3 id="ignore-queries-results-q3">
<head>Q3 Phrase Query Ignoring All Tags of Descendant Elements</head>
<p>Find book chapters containing the phrase "lists of heuristics is Ten Usability" ignoring 
any intervening tags.</p>
<p>  This query crosses element boundaries, ignoring tags.</p>
<ulist>
<item>
<p>Operands: "lists of heuristics is Ten Usability"</p>
</item>
<item>
<p>Functionality: phrase query, ignore tags of any element</p>
</item>
<item>
<p>Context: books//chapter</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//chapter</p>
</item>
<item>
<p>Comments: This query is equivalent to using the "string" function in XQuery that converts the whole sub-tree 
under an element into a string by removing all markup.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt;</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;chapter&gt; 
      &lt;title&gt;Heuristic Evaluation&lt;/title&gt; 
      &lt;p&gt;Expert reviewers critique an interface to
      determine conformance with recognized 
      usability principles. &lt;footnote&gt;One of the
      best known <phrase role="found">lists of heuristics is</phrase> &lt;citation
      url="http://www.useit.com/papers/heuristic
      /heuristic_list.html"&gt; <phrase role="found">Ten Usability</phrase> 
      Heuristics by Jacob Nielson&lt;/citation&gt;. Another
      is &lt;citation url="http://usability.gov
      /guidelines/index.html"&gt; Research-Based Web
      Design and Usability Guidelines&lt;/citation&gt;
      &lt;/footnote&gt;&lt;/p&gt; 
   &lt;/chapter&gt;</eg>
</div3>
<div3 id="ignore-queries-results-q4">
<head>Q4 Phrase Query Ignoring Explicit List of Tags of Descendant Elements</head>
<p>Find book chapters containing the phrase "lists of heuristics is Ten Usability" ignoring 
the tags of the element citation.</p>
<p>  This query must cross element boundaries, ignoring the tags of an element.</p>
<ulist>
<item>
<p>Operands: "lists of heuristics is Ten Usability"</p>
</item>
<item>
<p>Functionality: phrase query, ignore tags of the citation element</p>
</item>
<item>
<p>Context: books//chapter</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//chapter</p>
</item>
<item>
<p>Comments: The query could ignore any number of tags.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt;</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;chapter&gt; 
      &lt;title&gt;Heuristic Evaluation&lt;/title&gt; 
      &lt;p&gt;Expert reviewers critique an interface to
      determine conformance with recognized 
      usability principles. &lt;footnote&gt;One of the
      best known <phrase role="found">lists of heuristics is</phrase> &lt;citation
      url="http://www.useit.com/papers/heuristic
      /heuristic_list.html"&gt; <phrase role="found">Ten Usability</phrase> 
      Heuristics by Jacob Nielson&lt;/citation&gt;. Another
      is &lt;citation url="http://usability.gov
      /guidelines/index.html"&gt; Research-Based Web
      Design and Usability Guidelines&lt;/citation&gt;
      &lt;/footnote&gt;&lt;/p&gt; 
   &lt;/chapter&gt;</eg>
</div3>
<div3 id="ignore-queries-results-q5">
<head>Q5 Phrase Query Ignoring All Tags and Content of Descendant Elements</head>
<p>Find book chapters containing "users can be tested at any computer workstation or in a lab" 
ignoring any intervening tags and content.</p>
<p>This query ignores intervening tags and content of all descendant elements.</p>
<ulist>
<item>
<p>Operands: "users can be tested at any computer workstation or in a lab"</p>
</item>
<item>
<p>Functionality: phrase query, ignore content of an element</p>
</item>
<item>
<p>Context: books//chapter</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//chapter </p>
</item>
<item>
<p>Comments: This query goes beyond the character string functions in XQuery by ignoring not only the tags but also the content
of all descendant elements.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt;</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;chapter&gt;
      ...
      &lt;p&gt;<phrase role="found">Users can be tested at any computer</phrase>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">workstation</phrase> &lt;footnote&gt;They may be most 
      comfortable at their own workstation.
      &lt;/footnote&gt; <phrase role="found">or in a lab</phrase>.&lt;/p&gt; 
      ...
   &lt;/chapter&gt;</eg>
</div3>
<div3 id="ignore-queries-results-q6">
<head>Q6 Phrase Query Ignoring Explicit List of Tags and Content of Descendant Elements</head>
<p>Find book chapters containing "own workstation" ignoring element footnote.</p>
<p>This query ignores intervening tags and content of an element and queries a phrase inside the ignored tags and content of the descendant.</p>
<ulist>
<item>
<p>Operands: "own workstation" </p>
</item>
<item>
<p>Functionality: phrase query, ignore content of element footnote, query inside ignored 
						element footnote</p>
</item>
<item>
<p>Context: books//chapter</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//chapter</p>
</item>
<item>
<p>Comments: The query could specify any number of tags and content to ignore.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;chapter&gt;
      ...
       &lt;p&gt;Users can be tested at any computer 
       workstation &lt;footnote&gt;They may be most 
       comfortable at their <phrase role="found">own workstation</phrase>.
       &lt;/footnote&gt; or in a lab.&lt;/p&gt; 
      ...   
   &lt;/chapter&gt;</eg>
</div3>
<div3 id="ignore-queries-results-q7">
<head>Q7 Phrase Query Ignoring Tags and Content of Descendant Elements Identified by a Full-Text Query</head>
<p>Find book chapters containing the phrase "at any computer workstation or in a lab" ignoring footnotes on workstations.</p>
<p>This query crosses element boundaries, ignoring the tags and content of a descendant element only if that element contains a word.</p>
<ulist>
<item>
<p>Operands: "at any computer workstation or in a lab"</p>
</item>
<item>
<p>Functionality: phrase query, character wildcard (suffix), ignore tag and content specified with a word query</p>
</item>
<item>
<p>Context: books//chapter/p, books//chapter/p/footnote</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//chapter</p>
</item>
<item>
<p>Comments: This query returns chapters only if they contain the 	specified phrase. In order to match the phrase, footnote 
identified using a word query on workstations must be ignored. If the footnote that must be ignored does not contain the 
word "workstation", it cannot be ignored to match the phrase and the query would return an empty result.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;chapter&gt;
      ...
       &lt;p&gt;Users can be tested <phrase role="found">at any computer</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">workstation</phrase>&lt;footnote&gt;They may be most
       comfortable at their own workstation.
       &lt;/footnote&gt;<phrase role="found">or in a lab</phrase>.&lt;/p&gt;
      ...
   &lt;/chapter&gt;</eg>
</div3>
<div3 id="ignore-queries-results-q8">
<head>Q8 Phrase Query Ignoring Tags and Content of Descendant Elements Identified by an XPath Query</head>
<p>Find book chapters containing the phrase "two testers, one to ask questions, another to take notes" ignoring 
footnotes on testing procedures.</p>
<p>This query must cross element boundaries, ignoring the tags of a descendant element and the content of this 
element only if this element refers to testing procedures.</p>
<ulist>
<item>
<p>Operands: "two testers one to ask questions another to take notes"</p>
</item>
<item>
<p>Functionality: phrase queries, ignore tag and content specified with an XPath query</p>
</item>
<item>
<p>Context: books//chapter/p, books//chapter/p/footnote/testingProcedure</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//chapter</p>
</item>
<item>
<p>Comments: This query returns chapters only if they contain the 	phrase. In order to match the phrase,
footnote elements identified using an XPath query must be ignored.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;chapter&gt;
      ...
      &lt;p&gt;Give the user the script, then assure them 
      that you are testing the Web site, not them. 
      Users are asked to verbalize their thoughts as
      they complete the tasks. The event is recorded 
      or someone takes notes. It is often preferable
      to have <phrase role="found">two testers,</phrase> &lt;footnote&gt;Usability 
      testing can be done at great expense or on a 
      shoe string, using &lt;testingProcedure&gt;in-house 
      expertise&lt;/testingProcedure&gt; or 
      &lt;testingProcedure&gt;contracting with human 
      computer interaction professionals 
      &lt;/testingProcedure&gt;.&lt;/footnote&gt; <phrase role="found">one to ask the</phrase> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">questions, another to take notes</phrase>. Testers should 
      offer no guidance or comments to the user. Mouse 
      movements, typing, expressions, and the user's
      words should be recorded.&lt;/p&gt; 
      ...  
   &lt;/chapter&gt;</eg>
</div3>
<div3 id="ignore-queries-results-q9">
<head>Q9 Proximity Query Ignoring All Tags of Descendant Elements</head>
<p>Find book chapters on usability tests and contracting with computer professionals where all tags of descendant elements are ignored.</p>
<p>This query crosses element boundaries, ignoring the tags, but not the content of descendants.</p>
<ulist>
<item>
<p>Operands: "usability tests" "computer" "professionals"</p>
</item>
<item>
<p>Functionality: phrase query, word queries, ordered proximity query (0 to 20 intervening words), ignore tags of footnote element </p>
</item>
<item>
<p>Context: books//chapter, ignore books/book//chapter/title, books/book//chapter/p, books/book//chapter//footnote</p>
</item>
<item>
<p>Return: books/book//title, books//chapter</p>
</item>
<item>
<p>Comments: If this query had ignored the content of footnote elements, the words "computer" and "professionals" would 
not have matched.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;subject&gt;Usability testing&lt;/subject&gt;
   &lt;chapter&gt;
      &lt;title&gt;Conducting <phrase role="found">Usability Tests</phrase>&lt;/title&gt;
      ...
      &lt;p&gt;Give the user the script, then assure them 
      that you are testing the Web site, not them. 
      Users are asked to verbalize their thoughts as 
      they complete the tasks. The event is recorded 
      or someone takes notes. It is often preferable 
      to have two testers, &lt;footnote&gt;Usability 
      testing can be done at great expense or on a 
      shoe string, using &lt;testingProcedure&gt;in-house 
      expertise&lt;/testingProcedure&gt; or 
      &lt;testingProcedure&gt;contracting with human 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">computer</phrase> interaction <phrase role="found">professionals</phrase>
      &lt;/testingProcedure&gt;.&lt;/footnote&gt; one to ask the 
      questions, another to take notes. Testers should 
      offer no guidance or comments to the user. Mouse 
      movements, typing, expressions, and the user's 
      words should be recorded.&lt;/p&gt;
   &lt;/chapter&gt;</eg>
</div3>
<div3 id="ignore-queries-results-q10">
<head>Q10 Proximity Query Ignoring All Tags and Content of Descendant Elements</head>
<p>Find advice on whether an observer in a usability test should correct or help the user. 
Return the chapter containing the found words and titles for the book and the chapter.</p>
<p>This query ignores intervening tags and content of a descendant element.</p>
<ulist>
<item>
<p>Operands: "usability testing" "user" "help"</p>
</item>
<item>
<p>Functionality: phrase query, character wildcard (suffix), word queries, unordered proximity query (0 to 3 
intervening words between "user" and "help), <code>and</code> query, stemming</p>
</item>
<item>
<p>Context: books//chapter, ignore books/book/content/part/chapter/p/footnote</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//chapter</p>
</item>
<item>
<p>Comments: This query can ignore any number of footnotes. In particular, if footnotes are nested in each other.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;subject&gt;Usability testing&lt;/subject&gt;
   &lt;chapter&gt;
      &lt;title&gt;Conducting <phrase role="found">Usability Tests</phrase>&lt;/title&gt; 
      ...
      &lt;p&gt;Give the <phrase role="found">user</phrase> the script, then assure them 
      that you are testing the Web site, not them. <phrase role="found">Users</phrase> are 
      asked to verbalize their thoughts as 
      they complete the tasks. The event is recorded 
      or an observer takes notes. &lt;footnote&gt;Usability 
      testing can be done at great expense or 
      on a shoe string, using in-house 
      expertise or contracting with human 
      computer interaction professionals. 
      &lt;/footnote&gt; Testers should offer no <phrase role="found">guidance</phrase> or 
      comments to the <phrase role="found">user</phrase>. Mouse 
      movements, typing, expressions, and the <phrase role="found">user's</phrase> 
      words should be recorded.&lt;/p&gt;
      ...   
   &lt;/chapter&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Composability">
<head>Use Case "COMPOSABILITY": Queries Illustrating Composability of Full-Text with Other XQuery Functionality</head>
<div2 id="composability-description">
<head>Description</head>
<p>These queries combine full text queries with other XQuery
functionality. We use some of the XQuery functions and operators
defined in <bibref ref="FandO"/>.
</p>
</div2>
<div2 id="composability-queries-results">
<head>Queries and Results</head>
<div3 id="composability-queries-results-q1">
<head>Q1 Query Combining Full-Text with Creation of New Elements</head>
<p>Create a flat list of all the title-author pairs, for books on usability, with each pair enclosed in a result element.</p>
<p>This query finds a word in an element and returns it and a different element wrapper in a new element.</p>
<ulist>
<item>
<p>Operands: "usability"</p>
</item>
<item>
<p>Functionality: word query, construction of new elements</p>
</item>
<item>
<p>Context: books/book/metadata/title</p>
</item>
<item>
<p>Return: books/book/metadata/title, books/book//author, results (constructed element)</p>
</item>
<item>
<p>Comments: This query requires looking for the word "usability" in the title of a book and building title-author pairs 
for those books.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;result&gt;
   &lt;title&gt;Improving the <phrase role="found">Usability</phrase> of a Web Site Through 
   Expert Reviews and <phrase role="found">Usability</phrase> Testing&lt;/title&gt;
   &lt;author&gt;Millicent Marigold&lt;/author&gt;
   &lt;author&gt;Montana Marigold&lt;/author&gt;
&lt;/result&gt;
   
&lt;result&gt;
   &lt;title&gt;<phrase role="found">Usability</phrase> Basics: How to Plan for and Conduct 
&nbsp;&nbsp;&nbsp;<phrase role="found">Usability</phrase> Tests on Web Site Thereby Improving the 
&nbsp;&nbsp;&nbsp;<phrase role="found">Usability</phrase> of Your Web Site&lt;/title&gt;
&lt;/result&gt;</eg>
</div3>
<div3 id="composability-queries-results-q2">
<head>Q2 Query Combining Full-Text with Aggregate on Number of Elements</head>
<p>Find all books with a chapter title on usability tests. Return it and the number of steps in chapters.</p>
<p>This query finds a set of words in an element using stemming and returns the number of specified elements.</p>
<ulist>
<item>
<p>Operands: "usability" "test"</p>
</item>
<item>
<p>Functionality: word queries,  stemming, fn:count()</p>
</item>
<item>
<p>Context: books/book/content/part/chapter/title</p>
</item>
<item>
<p>Return: books/book/metadata/title, books/book/content/part/chapter/title, books/book/content/part/chapter//step, number-of-steps (constructed element) 
which satisfy the query</p>
</item>
<item>
<p>Comments: This query requires looking for the word "usability" and stemmed forms of the word "test" in the title of 
book chapters and returning 	chapter titles along with their number of steps. The query returns a number of steps equal to 
0 if the chapter is on usability testing but does not specify any steps.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;title&gt;<phrase role="found">Usability Testing</phrase>&lt;/title&gt;
   &lt;number-of-steps&gt;0&lt;/number-of-steps&gt;

&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;title&gt;Planning then Conducting <phrase role="found">Usability</phrase>
&nbsp;&nbsp;&nbsp;<phrase role="found">Tests</phrase>&lt;/title&gt;
   &lt;number-of-steps&gt;7&lt;/number-of-steps&gt;
   &lt;title&gt;Conducting <phrase role="found">Usability Tests</phrase>&lt;/title&gt;
   &lt;number-of-steps&gt;0&lt;/number-of-steps&gt;</eg>
</div3>
<div3 id="composability-queries-results-q3">
<head>Q3 Query Combining Full-Text with Conditional Return</head>
<p>For each book with "usability" in the book title, return the book title and authors, if it has authors, or return the book 
title and publishers, if it has no authors.</p>
<p>This query finds a word in an element and contains a conditional return.</p>
<ulist>
<item>
<p>Operands: "usability"</p>
</item>
<item>
<p>Functionality: word query, conditional query</p>
</item>
<item>
<p>Context: books/book/metadata/title</p>
</item>
<item>
<p>Return: books/book/metadata/title, books/book/metadata//author, books/book/metadata//publisher</p>
</item>
<item>
<p>Comments: This query requires looking for the word "usability" in the title of a book and returning title-author pairs 
for those books when there are authors. If there are no authors, it returns publishers.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the <phrase role="found">Usability</phrase> of a Web Site Through 
Expert Reviews and <phrase role="found">Usability</phrase> Testing&lt;/title&gt;
   &lt;author&gt;Millicent Marigold&lt;/author&gt;
   &lt;author&gt;Montana Marigold&lt;/author&gt;

&lt;title&gt;<phrase role="found">Usability</phrase> Basics: How to Plan for and Conduct 
<phrase role="found">Usability</phrase> Tests on Web Site Thereby Improving the 
<phrase role="found">Usability</phrase> of Your Web Site&lt;/title&gt;
   &lt;publisher&gt;Ersatz Publications&lt;/publisher&gt;
   &lt;publisher&gt;Electronic BookWorks&lt;/publisher&gt;</eg>
</div3>
<div3 id="composability-queries-results-q4">
<head>Q4 Query Combining Full-Text with Functions on Numerics</head>
<p>For each book with "usability" in the book title, return its book title and the round number of its suggested price if the price exceeds $25.</p>
<p>This query finds a word in an element and contains a conditional return based on a function on a numeric value.</p>
<ulist>
<item>
<p>Operands: "usability"</p>
</item>
<item>
<p>Functionality: word query, fn:round(), numeric value comparison</p>
</item>
<item>
<p>Context: books/book/metadata/title, books/book/metadata/price</p>
</item>
<item>
<p>Return: books/book/metadata/title, books/book/metadata/price</p>
</item>
<item>
<p>Comments: This query finds the word "usability" in the title of a book and returns the round 
number of its price if the price exceeds a specified value.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the <phrase role="found">Usability</phrase> of a Web Site Through 
Expert Reviews and <phrase role="found">Usability</phrase> Testing&lt;/title&gt;
   &lt;price&gt;26&lt;/price&gt;

&lt;title&gt;<phrase role="found">Usability</phrase> Basics: How to Plan for and Conduct 
<phrase role="found">Usability</phrase> Tests on Web Site Thereby Improving the 
<phrase role="found">Usability</phrase> of Your Web Site&lt;/title&gt;
   &lt;price&gt;174&lt;/price&gt;</eg>
</div3>
<div3 id="composability-queries-results-q5">
<head>Q5 Query Combining Full-Text with Query on Character String</head>
<p>Find introductions in books, which were published in New York, which include listings for 
résumés, drafts, and correspondence.</p>
<p>This query finds words in an element and combines the result with a character string query on a 
different element.</p>
<ulist>
<item>
<p>Operands: "résumés" "drafts" "correspondence" character string "New York"</p>
</item>
<item>
<p>Functionality: word query, <code>and</code> query, fn:contains</p>
</item>
<item>
<p>Context: books//introduction, books//publicationInfo/place</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//introduction</p>
</item>
<item>
<p>Comments: This query combines full-text and character string queries. It uses "fn:contains", but other character string 
functions could have been used.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;John Wesley Usabilityguy: A Register of His Papers&lt;/title&gt;
   &lt;introduction&gt;
      &lt;p&gt;The papers of John Wesley Usabilityguy span the 
      years 1946-1999, with the bulk of the items
      concentrated in the period from 1985 to 1999. The 
      papers feature his career as a developer of software 
      applications and usability specialist. The collection 
      consists of <phrase role="found">correspondence</phrase>, memoranda, journals, 
      speeches, article <phrase role="found">drafts</phrase>, book drafts, notes, charts, 
      graphs, family papers, clippings, printed matter, 
      photographs, <phrase role="found">résumés</phrase> and other materials.&lt;/p&gt;
   &lt;/introduction&gt;</eg>
</div3>
<div3 id="composability-queries-results-q6">
<head>Q6 Query Combining Full-Text with Operators on Booleans</head>
<p>For each book on "usability", return its book title and a new element called has-publisher with value <code>true</code> if the book has publishers, return its title and a new element called has-publisher with value <code>false</code> if the book does not have publishers.</p>
<p>This query finds a word in an element and return Boolean values.</p>
<ulist>
<item>
<p>Operands: "usability"</p>
</item>
<item>
<p>Functionality: word query, construction of new Boolean values, construction of new element, op:boolean-equal</p>
</item>
<item>
<p>Context: books/book//title</p>
</item>
<item>
<p>Return: books/book//title, has-publisher (constructed element)</p>
</item>
<item>
<p>Comments: This query requires looking for the word "usability" in the title of a book and returning Boolean values 
showing whether the book has a publisher or not.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the <phrase role="found">Usability</phrase> of a Web Site Through 
Expert Reviews and <phrase role="found">Usability</phrase> Testing&lt;/title&gt;
   &lt;has-publisher&gt;false&lt;/has-publisher&gt;

&lt;title&gt;<phrase role="found">Usability</phrase> Basics: How to Plan for and Conduct 
<phrase role="found">Usability</phrase> Tests on Web Site Thereby Improving the 
<phrase role="found">Usability</phrase> of Your Web Site&lt;/title&gt;
   &lt;has-publisher&gt;true&lt;/has-publisher&gt;</eg>
</div3>
<div3 id="composability-queries-results-q7">
<head>Q7 Query Combining Full-Text with Queries on Nodes and Dates</head>
<p>Find books about conducting usability tests which have more than one author and 
are published after 2000.</p>
<p>This query finds a phrase in multiple elements, counts the number of instances of another  
element, runs a greater than comparison on a date element, and combines the results.</p>
<ulist>
<item>
<p>Operands: "usability testing", "2000"</p>
</item>
<item>
<p>Functionality: phrase query, character wildcard (suffix), fn:count, op:numeric-greater-than, op:date-greater-than</p>
</item>
<item>
<p>Context: books//subject, books//author, books//publicationInfo/dateIssued|dateRevised</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//author, books//subject which satisfy query</p>
</item>
<item>
<p>Comments: This is a full-text query on the phrase "usability testing" using a wildcard on the word "test", restricted to the subjects element. The query also 
counts the number of author elements, runs a greater than comparison on dates, and combines the results.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;author&gt;Millicent Marigold&lt;/author&gt;
   &lt;author&gt;Morley Marigold&lt;/author&gt;
   &lt;subject&gt;<phrase role="found">Usability testing</phrase>&lt;/subject&gt;</eg>
</div3>
</div2>
</div1>
<div1 id="Complex">
<head>Use Case "COMPLEX": Complex Queries</head>
<div2 id="COMPLEX-description">
<head>Description</head>
<p>The use cases illustrate a multi-lingual query and queries which use multiple full-text functionalities, full-text functionalities and 
other XQuery functionalities, and multiple XPath statements.</p>
</div2>
<div2 id="complex-queries-results">
<head>Queries and Results</head>
<div3 id="complex-queries-results-q1">
<head>Q1 Query Entered in More than One Language</head>
<p>Find all books with the subject "网站可用性", with an introduction written by Elina Rose, 
which mention the name of the usability expert, Millicent Marigold.</p>
<p>This query finds a phrase and words entered in more than one language.</p>
<ulist>
<item>
<p>Operands: "网站可用性" "Elina" "Rose" "Millicent" "Marigold"</p>
</item>
<item>
<p>Functionality: phrase query, word queries, unordered proximity queries (0 to 3 intervening words), capacity to enter, query, and return multiple languages</p>
</item>
<item>
<p>Context: books//subject, books/book/content/introduction/author, books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//subject, books/book/content/introduction/author, books//content</p>
</item>
<item>
<p>Comments: This query accepts multiple languages as input and returns multiple languages as output.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;subject&gt;<phrase role="found">网站可用性</phrase>&lt;/subject&gt;
   &lt;author&gt;<phrase role="found">Elina</phrase>&nbsp;<phrase role="found">Rose</phrase>&lt;/author&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;The most successful projects employ multiple methods in multiple 
         iterations. As <phrase role="found">Millicent</phrase>&nbsp;<phrase role="found">Marigold</phrase> remarked during a recent conference, 
         "Don't stop. Iterate, iterate, then iterate again."&lt;/p&gt;
      ...
   &lt;/content&gt;</eg>
</div3>
<div3 id="complex-queries-results-q2">
<head>Q2 Query Combining Proximity, Phrase, and Stemmed Queries within an Instance of an Element</head>
<p>Find all paragraphs in books which discuss the role of task performance in expert review methods.</p>
<p>This query finds multiple words close to each other together with a phrase in one instance of a paragraph. </p>
<ulist>
<item>
<p>Operands: "task" "performance" "expert review"</p>
</item>
<item>
<p>Functionality: word queries, stemming, phrase query, unordered proximity (0 to 3 intervening words 
						between "task" and "performance"), all within one instance of an p element.</p>
</item>
<item>
<p>Context: books/book/content//p</p>
</item>
<item>
<p>Return: books/book/metadata/title, books/book/content//p</p>
</item>
<item>
<p>Comments: This query combines functionalities introduced in previous sections.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;<phrase role="found">Expert reviewers</phrase> evaluate Web site 
         understandability and ease of learning while 
         <phrase role="found">performing</phrase> specified <phrase role="found">tasks</phrase>. They walk through 
         the site answering questions such as "Would a 
         user know by looking at the screen how to 
         complete the first step of the task?" and "If 
         the user completed the first step, would the 
         user know what to do next?," with the goal of 
         identifying any obstacles to completing the 
         task and assessing whether the user would 
         cognitively be aware that he was successful in 
         completing a step in the process.&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="complex-queries-results-q3">
<head>Q3 Nested Proximity Query with Wildcards, Thesaurus Support, and Stemming</head>
<p>Find all books on usability testing which quote Millicent Marigold on the value of multiple 
						iterations.</p>
<p>This query finds multiple words, allowing a specified number of intervening words in any order, 
						then finds those words and a phrase, allowing a specified number of words between the words and 
						the phrase in any order. It uses wildcards, thesaurus support, and stemming. </p>
<ulist>
<item>
<p>Operands: "usability testing" "quote" "millicent" "marigold" "iterations"</p>
</item>
<item>
<p>Functionality: phrase query, character wildcard (suffix), word queries, thesaurus support, stemming, ordered proximity 
						(0 to 3 intervening words between "millicent" and "marigold"), unordered proximity (0 to 3 intervening words 
						between ("millicent ... marigold" and ("quote" or said or says or stated or states or statement or 
						spoke or speaks or replied or replies or reply or remarks or remarked or responded or response or 
						reports or reported or quote or quoted or according or commented or discussed or expressed or told), 
						unordered proximity (0 to 30 intervening words between ("millicent ... marigold" ... ("quote" or said or 
						says or stated or states or statement or spoke or speaks or replied or replies or reply or remarks or 
						remarked or responded or response or reports or reported or quote or quoted or according or commented 
						or discussed or expressed or told) and "usability testing" and "iterations").</p>
</item>
<item>
<p>Context: books//content</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//content</p>
</item>
<item>
<p>Comments: This query combines functionalities introduced in previous sections.</p>
</item>
<item>
<p>Version: For consideration after v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the Usability of a Web Site Through 
Expert Reviews and Usability Testing&lt;/title&gt;
   &lt;content&gt;
      ...
         &lt;p&gt;Expert reviews and <phrase role="found">usability testing</phrase> are 
         methods of identifying problems in layout, 
         terminology, and navigation before they frustrate 
         users and drive them away from your site.&lt;/p&gt; 
         &lt;p&gt;The most successful projects employ multiple 
         methods in multiple iterations. As <phrase role="found">Millicent</phrase>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<phrase role="found">Marigold</phrase>&nbsp;<phrase role="found">remarked</phrase> during a recent conference, 
         "Don't stop. <phrase role="found">Iterate</phrase>, <phrase role="found">iterate</phrase>, then <phrase role="found">iterate</phrase>          
         again."&lt;/p&gt;
      ...     
   &lt;/content&gt;</eg>
</div3>
<div3 id="complex-queries-results-q4">
<head>Q4 Query Combining Proximity, Boolean, and Stemming Queries which Ignores Tags and Content of a Descendant Element</head>
<p>Find advice on whether an observer in a usability test should correct or help the user in 
a book co-authored by Montana Marigold.</p>
<p>This query finds words in close proximity to each other, those words in close proximity to one of four other words, finds both of those near a phrase, ignoring the tags and content  of a descendant element.</p>
<ulist>
<item>
<p>Operands: "usability testing" "correct" "guidance" "assistance" "help" "montana" "marigold"</p>
</item>
<item>
<p>Functionality: phrase query, word queries, character wildcard (suffix), <code>or</code> query ("correct" "guidance" "assistance" "help"), 
unordered proximity query (0 to 10 intervening words between "usability testing" and ("correct" 
or "guidance" or "assistance" or "help"), proximity query (0 to 3 intervening words between 
"montana" and "marigold"), proximity query (0 to 50 intervening words between the results of those proximity queries. Ignores interveing tags and content.</p>
</item>
<item>
<p>Context: books//subject, books//content, books//author</p>
</item>
<item>
<p>Return: books/book/metadata/title, books//author, books//content</p>
</item>
<item>
<p>Comments: This query combines functionalities introduced in previous sections.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Usability Basics: How to Plan for and Conduct 
Usability Tests on Web Site Thereby Improving the 
Usability of Your Web Site&lt;/title&gt;
   &lt;author&gt;<phrase role="found">Montana</phrase>&nbsp;<phrase role="found">Marigold</phrase>&lt;/author&gt;
   &lt;content&gt; 
      ...
      &lt;p&gt;Give the user the script, then assure them that you are testing
      the Web site, not them. Users are asked to verbalize their thoughts 
      as they complete the tasks. The event is recorded or an observer 
      takes notes. &lt;footnote&gt; <phrase role="found">Usability testing</phrase> can be done at great
      expense or on a shoe string, using in-house expertise or contracting
      with human computer interaction professionals. &lt;/footnote&gt; Testers
      should offer no <phrase role="found">guidance</phrase> or comments to the user. Mouse movements, 
      typing, expressions, and the user's words should be recorded.&lt;/p&gt;
      ...
   &lt;/content&gt;</eg>
</div3>
<div3 id="complex-queries-results-q5">
<head>Q5 Query on Different Elements in Different Sub-Trees with a Conditional Return</head>
<p>For each book with a title containing the word "usability", with a book introduction 
containing the word "satisfaction", and a part introduction containing the phrase "identify problems", return the book title and the authors if it has authors, or return the book title and publisher, if it has no authors, then return the content surrounding the found words..</p>
<p>This query finds words and a phrase in different elements, then finds a descendant of the first element and it contains a conditional return.</p>
<ulist>
<item>
<p>Operands: "usability" "satisfaction" "identify problems"</p>
</item>
<item>
<p>Functionality: word queries, phrase query, conditional query</p>
</item>
<item>
<p>Context: books/book/metadata/title, books/book/content//introduction, 
books/book/content/part//introduction</p>
</item>
<item>
<p>Return: books/book/metadata/title, books/book/metadata//author, books/book/metadata//publisher, books/book/content//introduction, 
books/book/content/part//introduction</p>
</item>
<item>
<p>Comments: This query combines functionalities introduced in previous sections.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery"><![CDATA[ ]]></eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;Improving the <phrase role="found">Usability</phrase> of a Web Site Through 
Expert Reviews and <phrase role="found">Usability</phrase> Testing&lt;/title&gt;    
   &lt;author&gt;Millicent Marigold&lt;/author&gt;
   &lt;author&gt;Montana Marigold&lt;/author&gt;   
   &lt;introduction&gt;
      ...
       &lt;p&gt;The usability of a Web site is how well the 
       site supports the user in achieving specified 
       goals. A Web site should facilitate learning, 
       and enable efficient and effective task 
       completion, while propagating few 
       errors. <phrase role="found">Satisfaction</phrase> with the site is also important. 
       The user must not only be well-served, but must 
       feel well-served.&lt;/p&gt;
     ...
  &lt;/introduction&gt;
  ...
  &lt;part&gt;
     &lt;introduction&gt;
        &lt;p&gt;Expert reviewers <phrase role="found">identify problems</phrase> and recommend changes 
        to web sites based on research in human computer interaction 
        and their experience in the field.&lt;/p&gt;
        ...
     &lt;/introduction&gt; 
  ...    
  &lt;/part&gt;</eg>
</div3>
<div3 id="complex-queries-results-q6">
<head>Q6 Query Combining Full-Text with Character String, Node, and Date Queries</head>
<p>Find introductions in books, which were published in New York after 2000 and have more than one author, which include listings for 
résumés, drafts, and correspondence.</p>
<p>This query finds words in an element and combines the result with a character string query on a 
different element, counts the number of another element, runs a greater than comparison on a date element, and combines the results.</p>
<ulist>
<item>
<p>Operands: "résumés", "drafts", "correspondence", character string "New York",  "2000"</p>
</item>
<item>
<p>Functionality: word query, <code>and</code> query, fn:contains, fn:count, op:numeric-greater-than, op:date-greater-than</p>
</item>
<item>
<p>Context: books//introduction, books//publicationInfo/place, books/book//author, books//publicationInfo/dateIssued|dateRevised</p>
</item>
<item>
<p>Return: books/book/metadata/title, books/book//author, books//introduction</p>
</item>
<item>
<p>Comments: This query combines full-text and character string queries, node and date queries.</p>
</item>
<item>
<p>Version: For consideration in v.1</p>
</item>
</ulist>
<!--<p>
							<emph>Solution in XQuery:</emph>
						</p>
						<eg role="xquery">&lt;&gt</eg>-->
<p>
<emph>Expected Result:</emph>
</p>
<eg>&lt;title&gt;John Wesley Usabilityguy: A Register of His Papers&lt;/title&gt;
   &lt;author&gt;Millicent Marigold&lt;/author&gt;
   &lt;author&gt;Montana Marigold&lt;/author&gt;
   &lt;introduction&gt;
      &lt;p&gt;The papers of John Wesley Usabilityguy span the 
      years 1946-1999, with the bulk of the items
      concentrated in the period from 1985 to 1999. The 
      papers feature his career as a developer of software 
      applications and usability specialist. The collection 
      consists of <phrase role="found">correspondence</phrase>, memoranda, journals, 
      speeches, article <phrase role="found">drafts</phrase>, book drafts, notes, charts, 
      graphs, family papers, clippings, printed matter, 
      photographs, <phrase role="found">résumés</phrase> and other materials.&lt;/p&gt;
   &lt;/introduction&gt;</eg>
</div3>
</div2>
</div1>
</body>
<back>
<div1 id="Acknowledgements">
<head>Acknowledgements</head>
<p>The editors thank the members of the Full-Text Task Force of the XML Query and XSL Working Groups, which produced
the material in this document. Special thanks to Steve Buxton for providing the schema.</p>
<p>The editors thank the following staff at the Library of Congress for providing and improving
			sample data and queries: Ardith Bausenbach, Caroline Arms, Marla Banks, Susan David, Ray Denenberg,  
			Louis Drummond, Bohdan Kantor, Mary A. Lacy, Joe Pagano, Betsy Reifsnyder, Belinda D. Urquiza,
			and Anne Washington.</p>
<p>Thanks also to Bohdan Kantor, Foster Zhang, François Yergeau, and Michel Biezunski for assistance in translating the subjects into Chinese and French.</p>
<p>The editors also wish to thank the members of the W3C Internationalization Working Group for their assistance.</p>
</div1>
<div1 id="References">
<head>References</head>
<div2 id="primary">
<head>References (Primary)</head>
<p>The following references are some of the works considered by the Working Groups in
          deriving its use cases. </p>
<blist>
<bibl href="http://www.w3.org/TR/xquery-operators/" id="FandO" key="FandO">XQuery  and XPath  Functions and Operators.
W3C Working Draft. 
</bibl>
<bibl href="http://www.w3.org/TR/xmlquery-use-cases/" id="XQuery-UseCases" key="XQuery-UseCases">XML Query Use Cases. W3C Working Draft. 
</bibl>
<bibl href="http://www.w3.org/TR/xml-infoset/" id="Infoset" key="Infoset"> XML Information Set, W3C Recommendation
             24 October 2001
, John Cowan, Richard Tobin (eds.), 2001.</bibl>
<bibl href="http://www.w3.org/TandS/QL/QL98/pp/maier.html" id="Maier98" key="Maier98">Database Desiderata for an XML Query Language, David Maier, 1998.
             In Query Languages 98
             (QL'98). 
</bibl>
<bibl id="XML" key="XML" href="http://www.w3.org/TR/1998/REC-xml-19980210"> Extensible Markup Language
             (XML), Version 1.0, Second Edition. W3C Recommendation. 

             </bibl>
<bibl href="http://www.w3.org/TR/xmlschema-0/" id="XMLSchema0" key="XMLSchema0">XML Schema Part 0: Primer, David C. Fallside (ed.), 2000.
                </bibl>
<bibl href="http://www.w3.org/TR/xmlschema-1/" id="XMLSchema1" key="XMLSchema1">XML Schema Part 1: Structures, Henry S. Thompson, David Beech,
             Murray Maloney, Noah Mendelson (eds.), 2000. 
                </bibl>
<bibl href="http://www.w3.org/TR/xmlschema-2/" id="XMLSchema2" key="XMLSchema2">XML Schema Part 2: Datatypes, Paul V. Biron, Ashok Malhotra
             (eds.), 2000. 
                </bibl>
<bibl href="http://www.w3.org/TR/xpath20/" id="XPath2" key="XPath">XML Path Language (XPath). W3C Working Draft.
</bibl>
<bibl href="http://www.w3.org/TR/xquery/" id="XQuery" key="XQuery">XQuery : An XML Query Language.
W3C Working Draft. 
</bibl>
<bibl href="http://www.w3.org/TR/1999/REC-xslt-19991116" id="XSLT" key="XSLT">XSL Transformations (XSLT), Version 1.0. W3C Recommendation.
</bibl>
</blist>
</div2>
<div2>
<head>References (Background)</head>
<blist>
<bibl id="BYR99" key="BYR99">R.
     Baeza-Yates, B. Ribeiro-Neto. Modern
     Information Retrieval. Addison Wesley 1999. 
     </bibl>
<bibl id="FGR01" key="FGR01">N. Fuhr,
     K. Grossjohann. XIRQL: An Extension of
     XQL for Information Retrieval.
     Proceedings of SIGIR, 2001.  </bibl>
<bibl id="HTK00" key="HTK00">Y. Hayashi, J. Tomita,
     G. Kikui. Searching Text-Rich XML
     Documents with Relevance Ranking.
     Proceedings of SIGIR Workshop on XML
     and Information Retrieval,
     2000. </bibl>
<bibl id="MJK98" key="MJK98">S. Myaeng, D.-H. Jang,
     M.-S. Kim, Z.-C. Zhoo. A Flexible
     Model for Retrieval of SGML Documents.
     Proceedings of SIGIR, 1998. </bibl>
<bibl id="SCH01" key="SCH01">T. Schlieder.
Similarity Search in XML Data Using Cost-Based Query Transformations.
Proceedings of SIGMOD WebDB Workshop, 2001. </bibl>
<bibl id="TWE00" key="TWE00">
          A. Theobald and G. Weikum. Adding
          Relevance to XML. Proceedings of
          SIGMOD WebDB Workshop,
          2000. </bibl>
</blist>
</div2>
</div1>
</back>
</spec>

