xml use in mailto and target element of <a href> tag .....
Posted on 2004-03-24
I have a very unique rpoblem.
I am using the datasrc - datafld element of xml in a a table for getting cotent for my page.
Now, in every td of the table, i have a mailto: link which - when clicked the the web url should be inserted in the email body part. Baiscally, i want to insert the xml node value in the mailto: subjecct part, like the way we attach to the table by :
<a class="mySpacelinks" href=<span datafld="urlitem"></span><span datafld="urllabel"></span></a>
I tried adding span to the mailto body, but it gives me <span datafld="urlitem"></span> in the body and the not the actual url.
Also, in the html page with href links, i want to add "target" element in it with the value for it coming from an xml file, similar like adding target=<span datafld="target"></span>. i tried it in anchor elemtn but it gives me error and not correct output.