Hello Renzo,
I think the easiest way would be something like the solution that you
yourself have provided, even if you think that it does not feel right. There
is nothing to say, though, that it needs to be an element named "link", you
could have an element named "mail" instead.
If you want to use
<element>my name is foobar</element>
and turn it into
<p>my name is <a href="mailto:foobar(_at_)foobar(_dot_)com">foobar</a></p>
then you have to tokenize the string value of the element, and you have to
be sure that the name will always be that last in the string or have some
other means of finding out which token will be the name.
Also, in this example, the name of the recipient and the mail adress is the
same (foobar), but I would expect that they can differ:
<a href="mailto:foobar(_at_)foocompany(_dot_)com">foobar</a>
Then the solution below, which is close to your example, is much better:
<item>
<name>foobar</name>
<mail>foobar(_at_)foocompany(_dot_)com</mail>
<style>bold</style>
</item>
The xsl could then write the "mailto:" if that is required, depending on the
output (html, pdf, etc.).
If you still want the tokenization solution, you have to look this up -
there are some solutions that provide easier ways to make tokenization than
from scratch - for example fsxl http://sourceforge.net/projects/fxsl
Hope this is some help
Regards and happy new year,
Ragulf Pickaxe :)
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list