# 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 -r e5e7d6365612 -r 978b9e3897f7 xsls/link.xsls --- a/xsls/link.xsls Mon Jan 30 07:32:54 2012 +0000 +++ b/xsls/link.xsls Mon Jan 30 09:54:25 2012 +0000 @@ -71,7 +71,13 @@ } 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]" {