xsl remove all non-numeric characters and leading 1
问题 I need to convert incoming phone number strings to a standardized format that does not have any non-numeric characters and strips off the leading number if it is 1. For example: "+1 (222) 333-4444 x 5555" becomes "22233344445555" Thanks in advance for your help! 回答1: I. XSLT 1.0 solution: This transformation : <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:template match="text()"> <xsl:variable name="vnumsOnly" select=