Re: Looking for a concise way of specifying an condit
I'm looking for a more concise way of doing this particular pattern that shows up a lot in (x)html forms.
Because you are using <xsl:value-of/> you are getting the text.
I've been doing it the first way for years, and was just hoping I could make it a little cleaner, but you must not be able to return just an attribute from a function and have it make it's way into the element containing the function call.
Use <xsl:copy-of/> and you should be fine. That copies the attribute node, not the attribute value, to the option element.
I hope this helps.
. . . . . . . . . . . Ken
-- Contact us for world-wide XML consulting & instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Legal business disclaimers: http://www.CraneSoftwrights.com/legal
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format