Click here to Skip to main content
15,922,584 members
Home / Discussions / XML / XSL
   

XML / XSL

 
AnswerRe: Removing Span Tag ? Pin
Dalek Dave12-Jan-09 5:27
professionalDalek Dave12-Jan-09 5:27 
GeneralRe: Removing Span Tag ? [modified] Pin
AndyInUK12-Jan-09 5:34
AndyInUK12-Jan-09 5:34 
GeneralRe: Removing Span Tag ? Pin
Dalek Dave12-Jan-09 5:54
professionalDalek Dave12-Jan-09 5:54 
GeneralRe: Removing Span Tag ? Pin
AndyInUK12-Jan-09 7:04
AndyInUK12-Jan-09 7:04 
AnswerRe: Removing Span Tag ? Pin
George L. Jackson16-Jan-09 8:20
George L. Jackson16-Jan-09 8:20 
GeneralRe: Removing Span Tag ? Pin
AndyInUK19-Jan-09 4:06
AndyInUK19-Jan-09 4:06 
QuestionRe: Removing Span Tag ? Pin
George L. Jackson19-Jan-09 12:40
George L. Jackson19-Jan-09 12:40 
AnswerRe: Removing Span Tag ? [modified] Pin
AndyInUK19-Jan-09 22:19
AndyInUK19-Jan-09 22:19 
Well basically its a search engine powered by vivisimo. i am using vivisimo admin tool to boost certail result.

For instance:-

<xsl:template match="/">
<scope>
<xsl:copy-of select="/scope/attribute" />
<boost name="df" />
<xsl:apply-templates />
</scope>
</xsl:template>
<xsl:template match="document">
<document url="{@url}">
<xsl:if test="viv:test(content[@name='snippet'], 'heart', 'case-insensitive-regex')">
<xsl:attribute name="boost-name">df</xsl:attribute>
<xsl:attribute name="boost-display">boost-and-list</xsl:attribute>
</xsl:if>
<xsl:copy-of select="@*" />
<xsl:copy-of select="* | text() | comment()" />
</document>
</xsl:template>


The above code boost the result with heart word in snippet after any search made.

<xsl:output omit-xml-declaration="yes" />
<xsl:template match="boost" mode="list-boost-custom">
<fieldset style="border: 2px solid orange">
<legend style="font-size: 120%; color: #555">Good Choices:</legend>
<ul style="list-style-type:none; padding: 0 0.5em">
<xsl:for-each select="document">
<li style="margin: 0.5em 0;">
<span>
<a href="{@url}">
<xsl:value-of select="content[@name='title']" />
</a>
</span>
</li>
</xsl:for-each>
</ul>
</fieldset>
</xsl:template>

The above code provide a column for a good choices where the boosted result titles are displayed. Now everything is working fine. I am getting the titles but along with the titles i am also getting span tag as i mentioned before but yeh few of the titles are fine but most of them contain this span tag several times.

Any idea about this ??

Also i would like to ask if there is any way i can also include image along with the title, may be below title (if there is image included with the the boosted page)

Thanks
Andyyy

modified on Tuesday, January 20, 2009 5:12 AM

GeneralRe: Removing Span Tag ? Pin
George L. Jackson20-Jan-09 8:14
George L. Jackson20-Jan-09 8:14 
GeneralRe: Removing Span Tag ? Pin
AndyInUK20-Jan-09 23:13
AndyInUK20-Jan-09 23:13 
GeneralRe: Removing Span Tag ? Pin
George L. Jackson21-Jan-09 3:52
George L. Jackson21-Jan-09 3:52 
GeneralRe: Removing Span Tag ? Pin
AndyInUK22-Jan-09 23:26
AndyInUK22-Jan-09 23:26 
QuestionXML Serialization & Deserialization Pin
mike12354310-Jan-09 9:22
mike12354310-Jan-09 9:22 
AnswerRe: XML Serialization & Deserialization Pin
Henry Minute12-Jan-09 5:19
Henry Minute12-Jan-09 5:19 
GeneralRe: XML Serialization & Deserialization Pin
mike12354312-Jan-09 8:06
mike12354312-Jan-09 8:06 
GeneralRe: XML Serialization & Deserialization Pin
Henry Minute12-Jan-09 10:08
Henry Minute12-Jan-09 10:08 
Questionxml Pin
sevda209-Jan-09 21:43
sevda209-Jan-09 21:43 
AnswerRe: xml Pin
Brij9-Jan-09 23:05
mentorBrij9-Jan-09 23:05 
GeneralRe: xml Pin
sevda2010-Jan-09 23:43
sevda2010-Jan-09 23:43 
Answerproblem with validate of this schema Pin
Honeyboy_207-Jan-09 3:05
Honeyboy_207-Jan-09 3:05 
GeneralRe: problem with validate of this schema Pin
Henry Minute12-Jan-09 5:15
Henry Minute12-Jan-09 5:15 
QuestionHTML tags in XML schema Pin
jonhbt6-Jan-09 23:16
jonhbt6-Jan-09 23:16 
AnswerRe: HTML tags in XML schema Pin
Not Active7-Jan-09 2:48
mentorNot Active7-Jan-09 2:48 
Questionexecuting visio flow chart Pin
sree6-Jan-09 4:12
sree6-Jan-09 4:12 
Questioni want to understand the contents of schema ? Pin
Honeyboy_205-Jan-09 7:55
Honeyboy_205-Jan-09 7:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.