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

Re: how to access values of dropdown list created in .

Subject: Re: how to access values of dropdown list created in .html filewith Saxon
From: Mike Brown <mike@xxxxxxxx>
Date: Sun, 19 May 2002 15:52:18 -0600 (MDT)
create access drop down list
dmitri kerievsky wrote:
> When using Saxon to create an output.html file  with a dropdown list
> list (result below), how can the values of the dropdown list be accessed
> through code?
> 
> <?xml version="1.0" encoding="utf-8"?><SELECT
> xmlns:saxon="http://icl.com/saxon"
> name="paglassociates/pagl/state"><out><distinct-states>:
> 
> 
> <OPTION>CA</OPTION><OPTION>CT</OPTION><OPTION>ID</OPTION><OPTION>IL</OPTION>
> <OPTION>MT</OPTION><OPTION>NJ</OPTION><OPTION>NY</OPTION><OPTION>WA</OPTION>
> </distinct-states></out></SELECT>

You did not generate HTML, you generated XML.
Add <xsl:output method="html"/> to your stylesheet, before the first template.

What do you mean 'accessed through code'? What code? 

The typical usage of XSLT, when generating HTML, is to generate a complete 
HTML document, not just a little fragment like this.  Then you put that 
document somewhere where it can be accessed by a web browser. :)

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

 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.