XSL Reverse function

  • Hari Narayanan
  • Graduate
  • Graduate
  • Hari Narayanan
  • Posts: 103

Post 3+ Months Ago

Hi all,

Is there any means whereby a string can be reversed using XSL ?

I tried using
<xsl:value-of select='reverse(("ab"))'/>

But I get an error:
msxml3.dll error '80004005'

'reverse' is not a valid XSLT or XPath function. -->reverse(("ab"))<--

Expecting response regarding the same and thankyou in advance.

  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1413
  • Loc: 55° N, 3° W

Post 3+ Months Ago

To reverse the content of a string:

Code: [ Select ]
<xsl:template name="str:backward"><xsl:param name="text"/> ...</xsl:template>

... or something. (I just googled that, and don't pretend to be all that familiar with it).

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 24 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.