[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

selectin element and attribute for link

Subject: selectin element and attribute for link
From: Jarkko.Moilanen@xxxxxx
Date: Wed, 10 Apr 2002 12:19:24 +0300 (EEST)
xsl element attribute a link
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@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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.