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

Re: Conditional branching on string attribute in IE5?

Subject: Re: Conditional branching on string attribute in IE5?
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 30 Dec 2002 05:44:07 +0100
ie5 upgrade
Hello,

you seem to use the old MS-implementation of an XSLT working draft. This one is no longer supported by MS and should not be used any longer. You will probably get no help here too. (http://www.netcrucible.com/)

If upgrading to MSXML 3 (upgrade to IE 6 is not necessary) is nooption for you, you must think about server side processing.

MSXML 3: http://msdn.microsoft.com/downloads/sample.asp?url=/MSDN-FILES/027/001/772/msdncompositedoc.xml&frame=true

MSXML 4: http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/001/766/msdncompositedoc.xml

Regards,

Joerg

drsystems@xxxxxxxx wrote:
Hi,

This is for IE5. For an XML file like:
<xml>
<info path="abc.txt">
<info path="abc.jpg">
</xml>
I want to check the value of xml/info/path,
and if it contains a .jpg or .gif extension, generate an img node, else generate an
href node.


I tried the following:
..
<xsl:for-each select="xml/info">
 <xsl-if test="contains(@path,'.jpg')">
   <xsl-element name="a">
    ..
and got an error, "Unknown method contains(@".

What is the right way to do this for IE5?
Upgrade to IE6 is not an option :-(
This is urgent, and I am stuck at this.
Please help out a new XSL enthusiast! :)

Thanks,


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


Current Thread

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.