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

dynamic href generation in xsl

Subject: dynamic href generation in xsl
From: "Russell Allen" <rallen@xxxxxxxxxxxx>
Date: Fri, 2 Jul 1999 11:01:38 -0500
xslt dynamic href
I'm sure this is a newbie question, so I will apologize up front.  I am trying to add the value of an element from the xml document to a particular href in the 'generated' html by using xsl to pull the value from the xml doc.
 
For example:
 
Data.xml
...
<MEMBER>
  <MEMBNO>
    111111
  </MEMBNO>
  <NAME>
    Joe
  </NAME>
</MEMBER>
<MEMBER>
  <MEMBNO>
    222222
  </MEMBNO>
  <NAME>
    Jerry
  </NAME>
</MEMBER>
...
 
Desired html
...
<A HREF="">Joe</A>
<A HREF="">Jerry</A>
...
 
What should my xsl look like, in order to produce the desired html given the data.xml doc above?  Here is what I have now (its obviously wrong):
 
data.xsl
...
<xsl:for-each select="MEMBER" order-by="NAME">
    <A href=""MEMBNO"/>">
        <xsl:value-of select="NAME"/>
    </A>
</xsl:for-each>
...
 
 
Thanks for the help, in advance.  I greatly appreciate this.  If you can't tell, this is not my primary job function, and for that reason I don't have the background or time needed to learn the whole xsl spec. 
 
Thanks,
Russell Allen
Software Engineer
ComFrame software corp.
 
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.