[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] selectin element and attribute for link

Subject: [xsl] selectin element and attribute for link
From: Jarkko.Moilanen@xxxxxx
Date: Wed, 10 Apr 2002 12:19:24 +0300 (EEST)


I am trying to figure out how select and element and then make the selected 
element to be a link. But the link value (where the link points) is not 
the elements name but instead it is the elements attribute. 

So if a have this kind of xml file:
    <Sender>Moilanen Jarkko</Sender>
    <Subject id="00223322334342">Xalan</Subject>
    <Subject2>Xsl- muutokset</Subject2>
    <Topic>Include hommat ei pelaa</Topic>

And the result should be in html format like this:

<a href="00223322334342.htm">Xalan</a>

Now the part of xsl- file concerning this part is this:
<a href="{Subject}.htm">
<xsl:value-of select="Subject" /></a>

So could the wise and witty guru tell some hints about what to do =)

Jarkko Moilanen         *You are wise, witty, and wonderful,      *
Research/ ITCM          *but you spend too much time              *
jarkko.moilanen@xxxxxx  *reading this sort of trash.              *
www.uta.fi/~jm60697     *                                         *
GSM: +358 50 3766 927   *                                         *

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread