Re: xsl:attribute inside xsl:if?

James asked me to send this issue to the xsl-editors list.

/ Norman Walsh <Norman.Walsh@East.Sun.COM> was heard to say:
| Is this supposed to be legitimate or not?
| 
|     <table border="0" cellpadding="5" cellspacing="0" width="100%">
|       <xsl:if test="$nav.table.summary!=''">
|   	  <xsl:attribute name="summary">
|           <xsl:value-of select="$nav.table.summary"/>
| 	  </xsl:attribute>
|       </xsl:if>
| 
| On the one hand, I can read the XSLT 1.0 spec very literally and
| decide that it isn't. On the other hand, it's really, really obvious
| what it means and really, really convenient.

At the telcon, James identified the more significant issue that the
content of xsl:if is a template and top-level xsl:attributes aren't
allowed in a template.

                                        Be seeing you,
                                          norm

-- 
Norman.Walsh@East.Sun.COM | Mankind are always happy for having been
XML Technology Center     | happy; so that if you make them happy now,
Sun Microsystems, Inc.    | you make them happy twenty years hence by
                          | the memory of it.--Sydney Smith

Received on Monday, 14 August 2000 12:23:29 UTC