Subject: RE: passing NodeList through Global Parameter to XSL styles heet problem m
From: "Fernandes, John" <jfernandes@xxxxxxxxxx>
Date: Tue, 29 Apr 2003 16:42:57 -0400
|
Well I found out what my problem was. Seems the Xalan.jar version I had was
very old, I went and downloaded the new version and no sooner did I place it
in my classpath and run this, and the list populated. The code you provided
did help as well. Thanks Brian for the help.
John M. Fernandes
-----Original Message-----
From: Martinez, Brian [mailto:brian.martinez@xxxxxxxxxxx]
Sent: Tuesday, April 29, 2003 4:15 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE: passing NodeList through Global Parameter to XSL
styles heet problem m
> From: Fernandes, John [mailto:jfernandes@xxxxxxxxxx]
> Sent: Tuesday, April 29, 2003 1:50 PM
> Subject: RE: 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
Get to know us
http://www.thestar.com - Canada's largest daily newspaper online
http://www.toronto.com - All you need to know about T.O.
http://www.workopolis.com - Canada's biggest job site
http://www.torontostartv.com - Webcasting & Production
http://www.newinhomes.com - Ontario's Largest New Home & Condo Website
http://www.waymoresports.com - Canada's most comprehensive sports site
http://www.tmgtv.ca - Torstar Media Group Television
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|