Subject: Re: [xsl] Conditional branching on string attribute in IE5? From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Mon, 30 Dec 2002 05:44:07 +0100 |
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,
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Conditional branching on , Steve Gold | Thread | RE: [xsl] Conditional branching on , Michael Kay |
Re: [xsl] key grouping with non-exi, Joerg Heinicke | Date | Re: [xsl] processing certain xml ,x, Joerg Heinicke |
Month |