p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

xslt thread: Combobox and checkbox problems


Message #1 by "David Dyer" <davidjdyer@b...> on Mon, 24 Jun 2002 10:04:15
> HTML uses SGML-style abbreviations; the familiar <OPTION SELECTED> is an
abbreviation for <OPTION SELECTED="SELECTED"/>. These abbreviations are
not available in XML, you need to generate the full attribute name and
value. The serializer will turn it into correct HTML.

Michael Kay
Software AG
home: Michael.H.Kay@n...
work: Michael.Kay@s... 

> -----Original Message-----
> From: David Dyer [mailto:davidjdyer@b...] 
> Sent: 24 June 2002 10:04
> To: P2P_XSLT
> Subject: [xslt] Combobox and checkbox problems
> 
> 
> I am creating XML files that conatin information about the 
> attributes and 
> their associated data to be used on a form.
> 
> I have created a generic XSLT that then transforms the data 
> into an input 
> form for processing.
> 
> The problem I have is getting the current value highlighted 
> in a combobox 
> (ie box contains 1="Male",2="Female" and current value is 2 I want it 
> highlighted. I have tried all combinations of setting the SELECTED 
> attribute, but I cannot find the correct solution.
> 
> This is the same as checkbox, I cannot set the checked 
> attribute correctly 
> no matter what I do.
> 
> Anyone help?
> ---
> Change your mail options at http://p2p.wrox.com/manager.asp or 
> to unsubscribe send a blank email to 
> 


  Return to Index