This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
name() and attribute()
- To: "xsl-list at mulberrytech dot com" <xsl-list at mulberrytech dot com>
- Subject: name() and attribute()
- From: Lee Goddard <home at leegoddard dot com>
- Date: Wed, 23 Aug 2000 10:36:13 +0100
- Organization: Little Bits Ltd / Research Centre for Cognitive Science, University of Sussex
- Reply-To: xsl-list at mulberrytech dot com
...alternatively....
I'm trying to output an attribute only if
if exists; although the below choose block
works, it doesn't really seem like good
practice -- could someone please let me
know what is?
<xsl:choose>
<xsl:when test="@name">blue</xsl:when>
<xsl:choose>
Thanks in advance,
lee
--
Lee Goddard <l.goddard@sussex>
Research Centre for Cognitive Science,
University of Sussex, Brighton UK
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list