Xslt and linking

admin

Administrator
Staff member
Hello. There is this xml file that i am transforming a search result but ihaving trouble putting an attribute value inside the <a href=http://forums.devx.com/archive/index.php/"">In html you can have something like "a href ="whatever.html">in the below xml, the link i want to insert into the a href="..." is theattribute called "urllink" in the row element. Given the following xml:<EPILOTRESULTS xmlns:sql="urn:schemas-microsoft-com:xml-sql"><PARAMETERS><row keyword="casino"/><row resultindex="0"/><row pagestart="1"/><row pagesize="2"/<row aff="test"/<row udfparam="none"/><row showadult="yes"/><row ip="63.198.71.1"/></PARAMETERS><RESULTS><rowurllink="http://www.mydomain.com/whatever.html"description="Welcome to the First Casino on the Net!"title="Join Gaming Club Casino and get $10 Free and a 100% Bonus!"advertiserurl="http://216.182.196.139/Search?fig=3516&e..."/><row urllink="http://www.excite.com/whatever.html"description="If you open a Real Account you will be given a car"title="Get $110 FREE at the Lucky Nugget Casino!"advertiserurl="http://216.182.196.139/Search?fig=3514&e..."/></RESULTS></EPILOTRESULTS>For every search result, i want to print out, using xslt, into html the following:<a href="the urllink goes here"> the title goes here </a><br>the description goes here.<br>the advertiserurl goes here.How do I put the urllink value inside the <a href="">?
 
Back
Top