Just use :
<a href="http://{BackSideUrl}/customerlogin.asp?P={DynaCalPath}"> Login to View History of This Request </a>
This (using AVT - attribute-value-patterns) is shorter and more readable.
The reason for the behavior message , as explained in almost all of the answers, is that the value of the href attribute is created (partially) from a text node containing the NL character.
Such problems are the result of a purely human psychological phenomenon : we clearly see NL when it is surrounded by non-white space, however we are NL-blind when NL is at the beginning or at the end of a block of text. It would be a useful feature of any XSLT / XML IDE to display query groups of special "invisible" characters, such as NL and CR.
Dimitre novatchev
source share