Re: Conditional IE5 xsl

Subject: Re: Conditional IE5 xsl
From: Dan Morrison <dman@xxxxxxxx>
Date: Tue, 11 Apr 2000 01:09:52 +1200
Ben Robb wrote:
> 
> Sorry - try <xsl:when test="/Form/Name[. = '']">
> 
> It is, after all, monday morning, and I haven't had enough coffee yet *grin*


Sorry, but while we're on the subject of IE xsl:when
(Man I hate asking about MSXML here but...)

I've now spent several hours bashing this about and have completely
failed to find any information on the MSDN website etc...

I've got a fragment as follows

        <xsl:template match="element">
                <xsl:choose>
                        <xsl:when test=".[@class='Page']">
                                <xsl:call-template name="Page" />
                        </xsl:when>
                        
                        <xsl:otherwise>
                         Unknown element class: <xsl:value-of
select="@class" /> id:
<xsl:value-of select="@id" />
                        </xsl:otherwise>
                        
                </xsl:choose>
        </xsl:template>

(the XML is simple, it's the XSL Transform that's breaking)

And the parser (I believe I'm using the March Release. I downloaded &
installed it, but it doesn't seem to have made a difference to me)
insists

[ call-templates cannot be used here ]

Is this a frustratingly coy & annoying way of saying it doesn't actually
know WTF call-template is?

or is there something strange with the syntax?

Why is life so tough sometimes?

Thanx, .dan.


:=====================:====================:
: Dan Morrison        : The Web Limited    :
:  http://here.is/dan :  http://web.co.nz  :
:  dman@xxxxxxxx      :  danm@xxxxxxxxx    :
:  04 384 1472        :  04 495 8250       :
:  025 207 1140       :                    :
:.....................:....................:
: If ignorance is bliss, why aren't more people happy?
:.........................................:


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


Current Thread