Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
XSLT : I am not good at XSLT i am learning it.
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
The main problem is that the meaning of the dot or the context of the match for a template is misunderstood. That reflects fully in the construction of the variable $acct-num. The dot in a string function would be the text context of the node in context. There isn't any trace of 'AccountNo', the tag name, anymore. The AccountNo element, on the other hand, has to be re-constructed through xsl:copy.
This is how it should look like, with some improvements like in case where the account number being of length less than or equal to 2 (you then don't want to show anything, do you? because it would reveal too much). This is how you mask and then produce a fixed length output. I hope that gives you an instructive implementation on multiple aspect --- you've to discover them yourself.
This tiny ad is guaranteed to be gluten free.
Free, earth friendly heat - from the CodeRanch trailboss