From: Fernandes, John [mailto:jfernandes(_at_)thestar(_dot_)ca]
Sent: Tuesday, April 29, 2003 1:50 PM
Subject: RE: [xsl] passing NodeList through Global Parameter to XSL
styles heet problem m
Thank you for the quick reply Brian. However it still
produces an empty
drop-down. Its almost as if it is not being able to find the
elements in the
node set. Anyone else have any suggestions on what I may attempt.
Hmm, it seems minor, but try:
<select>
<xsl:for-each select="$v_employer/employer/option">
<option value="{.}"><xsl:value-of select="."/></option>
</xsl:for-each>
</select>
After reading your message again, it appears as though you convert the
entire parameter to a node-set. $v_employer by itself represents the root
node of the node-set, so the XPath expression in my original suggestion
would be the same as writing select="/option", which isn't what you want.
See if that fixes your problem.
cheers,
b.
| brian martinez
brian(_dot_)martinez(_at_)cendant(_dot_)com |
| 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