Subject: RE: [xsl] passing NodeList through Global Parameter to XSL styles heet problem m From: "Martinez, Brian" <brian.martinez@xxxxxxxxxxx> Date: Tue, 29 Apr 2003 14:14:54 -0600 |
> From: Fernandes, John [mailto:jfernandes@xxxxxxxxxx] > 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.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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] passing NodeList through , Fernandes, John | Thread | RE: [xsl] passing NodeList through , Fernandes, John |
Re: [xsl] showing column headers in, J.Pietschmann | Date | RE: [xsl] How to specify output fil, Michael Kay |
Month |