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

RE: <input> tags in xsl.

Subject: RE: <input> tags in xsl.
From: "Richard Lander" <rlander@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 30 Nov 1999 19:27:40 -0500
xsl input type text value
 Hello,

If you are using IE5, you should be able to still accomplish all of that.
Use something like:

<input type="text">
  <xsl:attribute name="value">
    <xsl:value-of select="/path/to/myvalue"/>
  </xsl:attribute>
</input>

Should work,

Richard.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Mike Brown
Sent: Tuesday, November 30, 1999 7:02 PM
To: 'xsl-list@xxxxxxxxxxxxxxxx'
Cc: 'davek@xxxxxxxxxxxx'
Subject: RE: <input> tags in xsl.


David J. Kim wrote:
> I know that to set some initial value into a text box
> <input type="text" value="some_initialvalue"/>
> I do this, but if the initial value is coming from a
> xml file <myvalue>some_initialvalue</myvalue> how is
> this possible.

Depends on what the context node is, but if myvalue is a child element of
the current one,
<input type="text" value="{myvalue}"/>

There are other ways to get to myvalue. Here are more examples:

<input type="text" value="{/path/to/myvalue}"/>

<xsl:variable name="val" select="/path/to/myvalue"/>
<input type="text" value="{$val}"/>

<!-- if context node is myvalue -->
<input type="text" value="{.}"/>

If you are using IE5, all bets are off.


 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.