xsl, xml and time

admin

Administrator
Staff member
I have some XML I'm transforming to HTML using XSLT . Consider: <job start="8:00"end="17:00"/>I need to represent the military time as: <input type="text" value=http://forums.devx.com/archive/index.php/"5:00"><select><option>am</option><optionselected>pm</option></select> . So the trick is to evaluate the value ofthe start and/or end attributes, determine if it's AM or PM and generatethe "selected" attribute for the option as appropriate.Has anyone done this before?
 
Back
Top