RE: [xsl] passing NodeList through Global Paramter to XSL stylesh eet proble m

Subject: RE: [xsl] passing NodeList through Global Paramter to XSL stylesh eet proble m
From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx>
Date: Tue, 29 Apr 2003 12:29:47 -0600
> From: Fernandes, John [mailto:jfernandes@xxxxxxxxxx]
> Sent: Tuesday, April 29, 2003 12:20 PM
> Subject: [xsl] passing NodeList through Global Paramter to XSL
> stylesheet proble m 
> 
> just so you know in the nodelist we have a root element 
> called <employer>
> with child elements called <option> and in each option some values.
> <employer>
> <option>1</option>
> <option>2</option>
> <option>3</option>
> </employer> 
> 
> **** Attempt to produce a drop down list in XSL of the values 
> from those
> child elements.
> 
> <xsl:for-each select="$v_employer/option">
> <xsl:value-of select="."/>
> </xsl:for-each>
> 
> **** Nothing is showing up.

If that's literal code from your stylesheet, then it's not surprising you're
not getting the output you want.  You need to output the appropriate HTML
elements:

<select>
  <xsl:for-each select="$v_employer/option">
    <option value="{.}"><xsl:value-of select="."/></option>
  </xsl:for-each>
</select>

hth,
b.

| brian martinez                           brian.martinez@xxxxxxxxxxx |
| lead gui programmer                                    303.708.7248 |
| cheap tickets, part of trip network                fax 303.790.9350 |
| 6436 s. racine cir.                             englewood, co 80111 |
| cendant travel distribution services   http://www.cheaptickets.com/ |

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


Current Thread