# HG changeset patch # User Ruslan Ermilov # Date 1327917265 0 # Node ID 978b9e3897f750878614d2a24a6723fee88cf7a6 # Parent e5e7d63656123190ed34ed18f6a561e5ea5db1fe For links to documents, use the document name as the link's text by default. diff --git a/xsls/link.xsls b/xsls/link.xsls --- a/xsls/link.xsls +++ b/xsls/link.xsls @@ -71,7 +71,13 @@ X:template = "link[@id and not(@doc)]" { } X:template = "link[@doc and not(@id)]" { - !!; + + X:if "count(node()) != 0" { + !!; + } else { + !{ document(@doc)/article/@name | document(@doc)/module/@name } + } + } X:template = "link[@id and @doc]" {