From owner-freebsd-doc@FreeBSD.ORG Sun Dec 23 22:37:32 2012 Return-Path: Delivered-To: freebsd-doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0913F19 for ; Sun, 23 Dec 2012 22:37:32 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id 40E5B8FC0A for ; Sun, 23 Dec 2012 22:37:32 +0000 (UTC) Received: from server.mypc.hu (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 693C214E750A; Sun, 23 Dec 2012 23:37:28 +0100 (CET) X-Virus-Scanned: amavisd-new at !change-mydomain-variable!.example.com Received: from server.mypc.hu ([127.0.0.1]) by server.mypc.hu (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id PR8II9bEjx-u; Sun, 23 Dec 2012 23:37:23 +0100 (CET) Received: from [192.168.1.117] (catv-80-99-23-232.catv.broadband.hu [80.99.23.232]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id CD8F914E7509; Sun, 23 Dec 2012 23:37:23 +0100 (CET) Message-ID: <50D787A2.500@FreeBSD.org> Date: Sun, 23 Dec 2012 23:37:22 +0100 From: Gabor Kovesdan User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/18.0 Thunderbird/18.0a2 MIME-Version: 1.0 To: Eitan Adler Subject: Re: url of the current page in xhtml.xsl References: <50D6A527.2040606@FreeBSD.org> <50D6E6E2.1040405@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-doc@freebsd.org X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 22:37:32 -0000 On 2012.12.23. 20:18, Eitan Adler wrote: >>> >>Is this a difficult change? Is there a reason we don't want this? >> > >> >1. Not the most trivial. >> >2. Probably it does not compensate the added quirks. > Okay. Is there an alternate way to insert the header? How is > handled? If you take a look at the source files, you can see the title explicitly included in each one. Title is very different from this since it is something that cannot be inferred from the source file location. As for canonical path, it can usually be inferred. Hardcoding them like titles would be redundant and too verbose. If you want to infer them, that is not possible from XSLT 1.0 (nor EXSLT) code. The only thing you can do is pass an XSLT parameter from outside that contains the relative path that has to be appended after the http://www.FreeBSD.org/ URI. This needs to be done for each file and you have to take into account the source folder not just the filename. Gabor