[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Conditional attributes based on presence of a child element
Subject: Re: [xsl] Conditional attributes based on presence of a child element From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx> Date: Fri, 16 Mar 2001 10:49:47 +0000 |
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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Conditional attributes based , Wolfgang Bogacz | Thread | Re: [xsl] What does position() real, Jan Mazac |
RE: [xsl] element value based on at, Michael Kay | Date | Re: [xsl] element value based on at, Jeni Tennison |
Month |