Page 1 of 1

xml formatting results.

Posted: Tue Mar 29, 2005 5:24 pm
by jgdoke
I have the xml results mostly formatted but need help determining if there is a way to have the search term highlighted in the result. The search term is hightlighted in the "Concise" result style.

xml formatting results.

Posted: Tue Mar 29, 2005 5:50 pm
by mark
The xml has the search term hilighted. What version of scripts? Do you see it hilighted using the default sample xml?

xml formatting results.

Posted: Wed Mar 30, 2005 9:46 am
by jgdoke
5.4.4 script version. I changed a test crawl to XSL stylesheet and saved it with apply settings. and then checked both live and test.
Since we updated the scripts on Friday I get this error using the default sample.

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
---------------------------------------------------

The value of the 'version' attribute may not be '5.4.4'.

If I take the default and change the top line from:
<xsl:stylesheet version="5.4.4" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
TO:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

Then it works. and yes the highlighting works. I will have to go through my changes to see what I did to screw it up...
Thanks

xml formatting results.

Posted: Wed Mar 30, 2005 10:44 am
by mark
It would appear that IE doesn't like the 5.4.4 version in the stylesheet sometimes. The next release will fix that. For now edit the style sheet to change that as you have done.

xml formatting results.

Posted: Wed Mar 30, 2005 3:56 pm
by jgdoke
Mark, One problem left. the default XML style sheet does not bold the "urldisplay" The XML is correct and shows <b> and </b> surrounding the word "logix" which is my search term. All other occurrences of "logix" are properly bolded.

<Result>
<Profile>www.ab.com</Profile>
<Num>5</Num>
<Id>42046b08a5</Id>
<ResultTitle>Take Control with <B>Logix</B>!</ResultTitle>
<Url>http://www.ab.com/logix/</Url>
<UrlDisplay>http://www.ab.com/<B>logix</B>/</UrlDisplay>
<RawRank>959</RawRank>
<ScaledRank>959</ScaledRank>
<PercentRank>95</PercentRank>
<DocSize>22K</DocSize>
<Depth>1</Depth>
<UrlSimilar>/texis/search?query=logix&pr=www.ab.com&prox=page&rorder=500&rprox=500&rdfreq=0&rwfreq=0&rlead=750&sufs=2&order=r&mode=&opts=&cq=&cmd=mlt&id=42046b08a5</UrlSimilar>
<UrlInfo>/texis/search?query=logix&pr=www.ab.com&prox=page&rorder=500&rprox=500&rdfreq=0&rwfreq=0&rlead=750&sufs=2&order=r&mode=&opts=&cq=&cmd=context&id=42046b08a5#hit1</UrlInfo>
<UrlParents>/texis/search?query=logix&pr=www.ab.com&prox=page&rorder=500&rprox=500&rdfreq=0&rwfreq=0&rlead=750&sufs=2&order=r&mode=&opts=&cq=&cmd=links&id=42046b08a5</UrlParents>
<Modified>2005-02-05 00:43:20</Modified>
<Abstract> <B>Logix</B> Platforms Take Control with <B>Logix</B> Platforms! As part of Rockwell Automation's Integrated Architecture, <B>Logix</B> platforms provide a single control architecture</Abstract>
<Charset>UTF-8</Charset>
</Result>

xml formatting results.

Posted: Wed Mar 30, 2005 5:17 pm
by mark
Where the XSL says
<xsl:value-of select="UrlDisplay"/>
It needs to be "copy-of" instead of "value-of".

xml formatting results.

Posted: Wed Mar 30, 2005 5:27 pm
by jgdoke
That did it! thanks

John