[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Conditional attributes based on presence of a chil
Hi Wolfgang, Your input and stylesheet gives exactly what you want when I try with Saxon 6.2 and MSXML3. Is there something about namespaces that you've left out somewhere? BTW, you could use: <xsl:attribute name="type"> <xsl:choose> <xsl:when test="processdata">y</xsl:when> <xsl:otherwise>x</xsl:otherwise> </xsl:choose> </xsl:attribute> instead, as you're always adding the attribute, just changing its value. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|