79155268

Date: 2024-11-04 11:34:54
Score: 1
Natty:
Report link

After much trial and error this worked in my scenario, adding both the telephone number e.g. 8989, and the transformed extension 8*989 as a separate extension.

<Extensions>
    <Extension>
        <xsl:value-of select="telephonenumber"/>
    </Extension>
    <Extension>
        <xsl:value-of select="concat((substring(telephonenumber,1,1)),'*',(substring(telephonenumber,2,3)))"/>
    </Extension>
</Extensions>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Scutch