Subject: RE: string-length(whatever) equivalent required
From: Jonathan Marsh <jmarsh@xxxxxxxxxxxxx>
Date: Tue, 4 Apr 2000 08:40:29 -0700
|
If it is a given that you must use IE5, a script would do the trick. IE5
offers access within text nodes only through script. Here's a specific
example:
<xsl:if expr="this.nodeValue.length > 9">Double digits!</xsl:if>
- Jonathan Marsh
Microsoft
> -----Original Message-----
> From: Simon Cansick [mailto:SC@xxxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, April 04, 2000 3:14 AM
> To: 'xsl-list@xxxxxxxxxxxxxxxx'
> Subject: string-length(whatever) equivalent required
>
>
> Hello All.
>
> I need to perform various tests on strings in my XSLT to
> decide on further
> processing. The string-length function is the one I need the
> most, but is
> not supported in IE5 (which I must use) and the technology
> previews are no
> use. Is there a way in the IE5 parser to perform an
> equivalent function and
> any other string functions come to that.
>
> Or is my best bet to create some Javasript functions?
>
> Thanks for any Help.
>
> Simon Cansick
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|