[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl:if

Subject: Re: xsl:if
From: Guy_Murphy@xxxxxxxxxx
Date: Wed, 20 Jan 1999 10:33:32 +0000
asp to xml
Hi.

Off the top of my head try <xsl:value-of select=".[@height]" />

I have found that is some cases with IE5b2 you have to explicitly state the
current context.

And yes I am currently moving an intranet application over from ASP to
XML/XSL and I am stunned. So, so, *so* much faster it's untrue :)

Cheers
     Guy





xsl-list@xxxxxxxxxxxxxxxx on 01/20/99 04:53:39 PM

To:   xsl-list@xxxxxxxxxxxxxxxx
cc:    (bcc: Guy Murphy/UK/MAID)
Subject:  xsl:if




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
select="@height"/></xsl:attribute>
</xsl:if>
</img>
</xsl:template>
but that obviously wasnt the right syntax, anyone?
-----------------
Mattias Konradsson, Internet Specialist
ICON Medialab
mattias.konradsson@xxxxxxxxxxxxxxx
designSPACE http://www.fragzone.se/preacher/designspace/








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






 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 <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.