This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: string-length(whatever) equivalent required
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: string-length(whatever) equivalent required
- From: Jonathan Marsh <jmarsh at microsoft dot com>
- Date: Tue, 4 Apr 2000 08:40:29 -0700
- Reply-To: xsl-list at mulberrytech dot com
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@access-accounts.com]
> Sent: Tuesday, April 04, 2000 3:14 AM
> To: 'xsl-list@mulberrytech.com'
> 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