This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: substring function not handling hyphens in variables correctly



>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]