Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL

Status
Not open for further replies.

transparent

Programmer
Joined
Sep 15, 2001
Messages
333
Location
GB
Is it possible to using xsl to search for a specific word ie 'uncle' in a tag ie

<text>hello uncle bulgaria</text>


and link up that particular word to produce

hello <a href=&quot;&quot;>uncle</a> bulgaria

Cheers
 
Right so far I have found that:

<?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?>
<xsl:stylesheet version=&quot;1.0&quot;
xmlns:xsl=&quot;<xsl:template match=&quot;/&quot;>

<xsl:for-each select=&quot;body[artist='Bulgaria']&quot;>
Found Bulgaria
</xsl:for-each>

</xsl:template>
</xsl:stylesheet>

will find the word bulgaria.

How do I build up the line

hello <a href=&quot;&quot;>uncle</a> bulgaria

from this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top