Could you please let us know the best way to do the below validation in xslt
we are reading card number using an xpath expression
<xsl:value of select ="/*/*/*/cardnumber" />
from input. It is a string of 19 characters. we would like to include a check which will see if the first 15 characters are digits and the next 4 charcters are spaces. What is the best way in xsl to perform this check.
"123456789123456 " is valid
Anything other than this format, should not be accepted. that is which are not, first 15 characters are digits and next 4 characters are spaces.can we use any script within xsl or regex. Please advise.If regex or scripts are to be used, let us know what namespaces to declare as well.