Subject: xsl:if
From: "Mattias Konradsson" <preacher@xxxxxxxxxxx>
Date: Wed, 20 Jan 1999 08:53:39 +0100
Hi, everyone, been playing around with xml, xsl and documents under iis4 and
I must say it has tremendous potential. I've gotten most of the xsl stuff to
work, microsofts documentation is pretty sucky btw. I'm having a little
problem, I want an html tag to be generated with a certain attribute only
when the attribute is present in xml, and not to be set to anattribute="". I
haven't quite figured out the syntax for the if statement , I tried
something like this

<xsl:template match="image">

<img border="0" >

<xsl:if match="@height">

<xsl:attribute name="height"><xsl:value-of




but that obviously wasnt the right syntax, anyone?


Mattias Konradsson, Internet Specialist

ICON Medialab


designSPACE http://www.fragzone.se/preacher/designspace/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread
  • xsl:if
    • Mattias Konradsson - Wed, 20 Jan 1999 08:53:39 +0100 <=
      • <Possible follow-ups>
      • Guy_Murphy - Wed, 20 Jan 1999 10:33:32 +0000