This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: substring function not handling hyphens in variables correctly
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] substring function not handling hyphens in variables correctly
- From: David_Marston at lotus dot com
- Date: Thu, 13 Sep 2001 13:25:38 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
>I have just upgraded from Xalan 1.0.0 to Xalan 1.3.
>The following snippets no longer function correctly:
>select="concat(substring($user,1,3),substring($user,5,6),...)"
Somewhere back in time, the working group decided that the third
argument to substring() should be a length, not a character
position. So the change was necessary to make substring conform
to the XPath 1.0 specs.
.................David Marston
PS: Tony's solution should work much better.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list