[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: passing NodeList through Global Parameter to XSL s

Subject: RE: passing NodeList through Global Parameter to XSL stylesheet problem m
From: "Fernandes, John" <jfernandes@xxxxxxxxxx>
Date: Tue, 29 Apr 2003 15:49:36 -0400
passing node list xsl
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.

Thanks,

John M Fernandes.

End

-----Original Message-----
From: Martinez, Brian [mailto:brian.martinez@xxxxxxxxxxx]
Sent: Tuesday, April 29, 2003 2:30 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE:  passing NodeList through Global Paramter to XSL
stylesh eet proble m 


> From: Fernandes, John [mailto:jfernandes@xxxxxxxxxx]
> Sent: Tuesday, April 29, 2003 12:20 PM
> Subject:  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

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.