This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
selectin element and attribute for link
- From: Jarkko dot Moilanen at uta dot fi
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 10 Apr 2002 12:19:24 +0300 (EEST)
- Subject: [xsl] selectin element and attribute for link
- References: <000401c1e05c$68d9c5c0$68fea8c0@philippep>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi!
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:
<Information>
<Time>10/12/02</Time>
<Size>22</Size>
<Sender>Moilanen Jarkko</Sender>
<Subject id="00223322334342">Xalan</Subject>
<Subject2>Xsl- muutokset</Subject2>
<Infofield>
<Topic>Include hommat ei pelaa</Topic>
</Infofield>
</Information>
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@uta.fi *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