Hi
I am very new to xslt and have been trying to figure this out for a long time but without much sucess.
What I am trying to do is to allow a user type a word into an input box and then that it would search an rss file to see if that word is contain in the desciption of an item.
I have the following code, which works for me if I was searching for the language:
<xsl:copy-of select=“item[contains(description/@language,$filterBy)]”/>
so in the rss file desciption is as follows:
some text
What I would like to have is the description to be like:
some text
and then in my xslt file be able to compare “some text” with @language(which contains what the user entered). I do not know how to access the text and how to compare it to the @language.
Please if any one can help me it would be much appreciated,
Kind Regards
Hi,
I hope this example helps. I made some assumptions about your xml input and your result, so I have attached my input and output xml files to make things clearer.
HTH.
Example.zip (696 Bytes)
Thank you very much for that. I have that bit working now what I have is a local rss.xml file called
in a html file and is filtered by an xslt.xml file. This works alright.
I now what my html file to link to an opml file so that it can access
numberous rss files. I can not get this to work, I have tried saving a
local file as .opml, and then as .xml and I have tried linking it to an
opml file on the internet.
Any soultions?
Thank you,
Kind Regards