This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: access to combo data from xsl
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] access to combo data from xsl
- From: "Zarella Rendon" <zarella at coolheads dot com>
- Date: Mon, 29 Oct 2001 11:24:02 -0600
- Reply-To: xsl-list at lists dot mulberrytech dot com
Juan,
The <xsl:variable> element does not have to be empty. The content of a
variable is a template, which means you can put elements in it:
<xsl:variable name='var'>
<select name="combo1">
<option value="1900">1900</option>
<option value="1901">1901</option>
<option value="1902">1902</option>
<option value="1903">1903</option>
<option value="1904">1904</option>
<option value="1905">1905</option>
</select>
</xsl:variable>
You can also use XSLT elements, if that's what you really intended:
<xsl:variable name='var'>
<xsl:value-of select="combo1"/>
</xsl:variable>
Hope this helps.
Zarella Rendon
Principal Consultant
HMM Consulting International, Inc.
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://www.hmmci.com/ >
zarella@hmmci.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Juan Perez
> Sent: Thursday, October 25, 2001 10:05 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] access to combo data from xsl
>
>
> Hi!,
>
> does anybody know the way to access data coming from a combo in a
> .xsl file?
> I mean, I want to get this data in a xml variable... this is to say,
>
> given
>
> <select name="combo1">
> <option value="1900">1900</option>
> <option value="1901">1901</option>
> <option value="1902">1902</option>
> <option value="1903">1903</option>
> <option value="1904">1904</option>
> <option value="1905">1905</option>
> </select>
>
> instead of
>
> <xsl:variable name='var' select='123'/>
>
> having something like
>
> <xsl:variable name='var' select='content of the combo value'/>
>
>
> Regards,
>
> Juan
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list