DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Right to Left Arabic Character

    Posted 10/08/20 02:41 PM

    Dears,

    how to get right to left arabic names using xslt.

    i want to reverse arabic name <name>سانكت</name>

    can you please help to get sample



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: Right to Left Arabic Character

    Posted 10/08/20 02:57 PM

    Hi San,

    Please try the below code snippet and let me know if you are able to reverse or not.

    Just call the below template with param of the name object.

    <xsl:template name="reverse">

    <xsl:param name="str"/>

    <xsl:choose>

    <xsl:when test="string-length($str) &gt; 0">

    <xsl:call-template name="reverse">

    <xsl:with-param name="str" select="substring($str, 2)" />

    </xsl:call-template>

    <xsl:value-of select="substring($str,1,1)"></xsl:value-of>

    </xsl:when>

    </xsl:choose>

    </xsl:template>



    #DataPower
    #Support
    #SupportMigration