Re: reposting highlighting questions

2011-12-30 Thread Chris Hostetter

: I am new to solr/xml/xslt, and trying to figure out how to display 
: search query fields highlighted in html. I can enable the highlighting 
: in the query, and I think I get the correct xml response back (See 
: below: I search using 'Contents' and the highlighting is shown with 
:  and . However, I cannot figure out what to add to the 
: xslt file to transform it in html. I think it is a question of defining 

i think you are looking for the disable-output-escaping="yes" option on 
your  expression to echo out the highlighted 
string.  hard to be sure since you didn't actaully provide any example of 
the XSLT or xpath you are trying to use.


-Hoss


reposting highlighting questions

2011-12-13 Thread Bent Jensen
I am new to solr/xml/xslt, and trying to figure out how to display search query 
fields highlighted in html. I can enable the highlighting in the query, and I 
think I get the correct xml response back (See below: I search using 'Contents' 
and the highlighting is shown with  and . However, I cannot 
figure out what to add to the xslt file to transform it in html. I think it is 
a question of defining the appropriate xpath(?), but I am stuck. Can someone 
point me in the right direction? Thanks in advance!

 

Here is the result I get back:

 

  - 

  - 

  0 

  20 

  - 

   

  on 

  '' 

  * 

   

  on 

  10 

  2.2 

   

  0 

  contents 

  '' 

   

   

  

  

  - 

  - 

  - 

  Start with the Table of Contents. See if you can find the topic that you 
are interested in. Look through the section to see if there is a resource that 
can help you. If you find one, you may want to attach a Post-it tab so you can 
find the page later. Write down all of the information that you need to find 
out more information about the resource: agency name, name of contact person, 
telephone number, email and website addresses. If you were unable to find a 
resource that will help you in this resource guide, a good first step would be 
to call your local Independent Living Center. They will have a good idea of 
what is available in your area. A second step would be to call or email us at 
the Rehabilitation Research Center. We have a ROBOT resource specialist who may 
be able to assist. 

  

  - 

  robot.pdf#page=11 

  

  CHAPTER 1: How to Use This Resource Guide 

  1-1 

  

  

  - 

  - 

  - 

  Start with the Table of ''Contents''. See if you can 
find the topic that you are interested in. Look 

  

  

  

  

 

  _  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1873 / Virus Database: 2108/4678 - Release Date: 12/13/11