# HG changeset patch # User Maxim Dounin # Date 1393510055 -14400 # Node ID c3a1cf38f19e9e63aa1f8542d7f47b3f195aece0 # Parent 83a64d9082bc84470e6c874bc867a9bb9f5e09f5 Added explicit X:text to avoid spurious whitespaces. While use of XSLScript produces no trailing whitespace and resulting link is correct, it's believed that this is by chance. XSLT produced with perl-based XSLScript replacement is slightly different (trailing whitespace after "./" isn't stripped), and X:text is required to produce proper output. diff -r 83a64d9082bc -r c3a1cf38f19e xsls/menu.xsls --- a/xsls/menu.xsls Wed Feb 26 18:18:26 2014 +0000 +++ b/xsls/menu.xsls Thu Feb 27 18:07:35 2014 +0400 @@ -52,7 +52,7 @@ X:if "starts-with(@href, $DIRNAME)" { X:if "substring-after(@href, $DIRNAME) = ''" { - ./ + X:text {./} } else { !{ substring-after(@href, $DIRNAME) } }