|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:if / variables / fancy / confusing
Thanks! I was able to get everything to work properly. I ended up changing
the XML for errors, but I had to use XML similar to that to populate the
drop-downs that had already been selected.
If someone finds this in the archive, watch out for what I did with populating against previous submissions... I know that option_ids will not be duplicated for different attribute_ids. If that weren't the case, I would have had to replace the * with something else. <xsl:for-each select="attribute"> <select name="attribute_{attribute_id}"> <xsl:if test="/configuration/details/errors/error/name = concat('attribute_', attribute_id)"> <xsl:attribute name="style">background-color:#FFCC00; color:red; font-weight:bolder;</xsl:attribute> </xsl:if> <option value="">Select a <xsl:value-of select="attribute_name" /> </option> <xsl:for-each select="option"> <option value="{option_id}"> <xsl:if test="/configuration/request/* = option_id"> <xsl:attribute name="selected">TRUE</xsl:attribute> </xsl:if> <xsl:value-of select="option_name"/><xsl:if test="price_offset > 0"> - add <xsl:value-of select="format-number(price_offset, '$###,###,.00')" /></xsl:if></option>
Hi Johnathon, ------------------------------
|
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
|

Cart








