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

RE: How to populate a HTML <select> tag..??

Subject: RE: How to populate a HTML <select> tag..??
From: Camilla Clifford <cclifford@xxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Jan 2001 16:54:30 -0000
html select tag
hi,

you can use the <xsl:attribute> tag to build the attributes of an html
element:

<select>
	<xsl:attribute name="name"><xsl:value-of
select='.'/></xsl:attribute>
	<xsl:attribute name="size">1</xsl:attribute>
		
and so on..

Camilla


-----Original Message-----
From: Kevin Duffey [mailto:kevin.duffey@xxxxxxxx]
Sent: 21 January 2001 10:05
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:  How to populate a HTML <select> tag..??


Hi all,

I am fairly new to XSL and am trying to figure this one out. I want to
transform xml into html, which I am able to do for the basic stuff. But,
when I want to do something like a select tag in html, how do I fill in such
tag attributes as value="", and so on using xsl? For example:

<select name="<xsl:value-of select='.'/>" size="1"><option
value="<xsl:value-of select='.'/>"></select>

My dilema is..how do I put xsl things inside the name=" " quotes, and so on
so that I can insert dynamic data from the xml input source?

Thanks.


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

 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.