If you include the protocol in your link attribute (eg,
http://www.xyz.net/~tom) then you can use this:
<xsl:template match="URL">
<a href="{@link}"><xsl:apply-templates/></a>
</xsl:template>
Otherwise, you'll need to add the "http://" part like this:
<xsl:template match="URL">
<xsl:variable name="myUrl" select="concat('http://', @link)"/>
<a href="{$myUrl}"><xsl:apply-templates/></a>
</xsl:template>
"Thomas P. Fuller" <> wrote in message
news: om...
> Hi,
>
> Thanks in advance for any help in this matter.
>
> I need to embed a link in the text portion of an xml element's value.
>
> For example,
>
> <some_element>
> Hi, my name is Tom, and you can find my webpage <URL
> link="www.xyz.net/~tom">here</URL>
> </some_element>
>
> so when this element is transformed into xhtml (using xsl, of course)
> we will see the link properly.
>
> If anyone can offer me a suggestion regarding how to tackle this
> issue, I would much appreciate it.
>
> Tom
>