# 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 --git a/xsls/menu.xsls b/xsls/menu.xsls --- a/xsls/menu.xsls +++ b/xsls/menu.xsls @@ -52,7 +52,7 @@ X:template = "menu/item" { X:if "starts-with(@href, $DIRNAME)" { X:if "substring-after(@href, $DIRNAME) = ''" { - ./ + X:text {./} } else { !{ substring-after(@href, $DIRNAME) } }