From owner-freebsd-doc@FreeBSD.ORG Tue Dec 4 21:18:02 2012 Return-Path: Delivered-To: doc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B663452; Tue, 4 Dec 2012 21:18:02 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id BB0DF8FC16; Tue, 4 Dec 2012 21:18:01 +0000 (UTC) Received: by mail-bk0-f54.google.com with SMTP id je9so2168197bkc.13 for ; Tue, 04 Dec 2012 13:18:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; bh=eLZH0PptLqVGldeKT+VnnMDhIfeJduUIZUxuJ4oH/YU=; b=O2phUOyh/6M3659o2l9UfHzhyiey5LVlD/0vmGlPhm2+O1dVBTs9LidBj/Ot5Lxby6 OCHeiKzuQoLC8BUrbo5KPXWkc7K+MBV8rlfS0QE/XLa+Kz0I/3YsAt4lbFqoyFFYuRAY OfqKPD6m0K7/TMkoF9pGD4CV91X28Jz2YyKRZs/gnPgLTIIXQUPX3QP6lnDop+nELqxz avVkHgI23P4a/sqoj/92/nYJ/UiGbZC4H2ilzqeLCOxtEe0HfxPgxJpcUV2QHpYo2JAX 9rI6IQ4tY6XOT1EkxhSXafKG3XGucnzmOv4FwpcJwLt4ziFkBpFiu4ABs0EiJMOzMWHF 1Mpg== Received: by 10.204.9.147 with SMTP id l19mr4710176bkl.15.1354655880197; Tue, 04 Dec 2012 13:18:00 -0800 (PST) Received: from ?IPv6:2001:980:d7ed:1:9fa:69be:5fda:257? ([2001:980:d7ed:1:9fa:69be:5fda:257]) by mx.google.com with ESMTPS id l17sm2402737bkw.12.2012.12.04.13.17.58 (version=SSLv3 cipher=OTHER); Tue, 04 Dec 2012 13:17:59 -0800 (PST) Sender: =?UTF-8?Q?Ren=C3=A9_Ladan?= Message-ID: <50BE6885.3000607@freebsd.org> Date: Tue, 04 Dec 2012 22:17:57 +0100 From: =?ISO-8859-1?Q?Ren=E9_Ladan?= User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Hiroki Sato Subject: Re: XSLT template for References: <50BE2FF1.9050901@freebsd.org> <20121205.023702.5802241737895160.hrs@allbsd.org> In-Reply-To: <20121205.023702.5802241737895160.hrs@allbsd.org> X-Enigmail-Version: 1.4.6 Content-Type: multipart/mixed; boundary="------------080406010206090905030707" Cc: 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: Tue, 04 Dec 2012 21:18:02 -0000 This is a multi-part message in MIME format. --------------080406010206090905030707 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04-12-2012 18:37, Hiroki Sato wrote: > René Ladan wrote in > <50BE2FF1.9050901@freebsd.org>: > > re> Hi, re> re> as of r40266 of the projects/entities branch one > can write re> &committer.email; in $LANG/htdocs which then gets > expanded as defined in re> share/xml/authors.ent, so: re> re> > authors.ent: re> re> > > greenpuppet@FreeBSD.org"> re> re> > administration.xml: re> ... some story about ET ... re> > &a.greenpuppet.email; re> re> administration.html: re> ... some > story about ET ... re> Green Puppet > xmlns="http://www.FreeBSD.org/XML/email">greenpuppet@reeBSD.org > > re> > re> The xmlns attribute is defined in share/xml/email.dtd and is > required to re> keep xmllint (which is run for each XML document) > happy. re> re> The attached patch for share/xml/xhtml.xsl defines a > template to convert re> the tag into XHTML but it looks the > template is never reached. re> The template above it > (process.contentwrap) includes an xsl:copy-of re> statement which > copies the body of the XML document verbatim, leaving re> > tags as-is. re> re> So how to get the new template to do its job? > Should part of the re> process.contentwrap be rewritten? > > | + > > You needed to add namespace for email element if you did not > define it. This is because the default namespace in > is defined as xmlns="http://www.w3.org/1999/xhtml" > in xhtml.xsl. > Do you mean what is described in the attached new patch, or that all elements in authors.ent need to have a namespace definition as attribute (which would make it very cumbersome)? The generated administration.xml now looks a bit different but the tags are not converted yet. René -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQIcBAEBAgAGBQJQvmiEAAoJEK27+GEKN4m3LKgP/iEhZ9UhzoY8L+V5cQS5b7wM USY43VUvi2XXpfBsNa8WSSO3maCdW8s3F2L6B3yWQPreLLGPIAiSsUiQ9+CzYH01 Ojl5CdgQ9WRoVT09KThv4cZkXd8BU+MERtfttyepzv4uIzowVa3SdqbRDPypUWWh cN1jkjxOSAxPxqZGGwdHd7fn94BcNzYHEf7rlxEsVhV0P6OidvnZun6ZoxViMfGT trQlWFzc6An8K4X0MmBoxhYrc7efUwNshlXh+nLRnTg91x/l99CZtXql5oCqzLTw arvxM+vmfYiOqgEm7AcrO+Cs8WWgpDOLNypSOj7RmBtsk3M1zvu4pnmW3irEQuHl ZQRF4dH6YKHt3hhEdta8H6C5ciia5hq59LXG334Gl1scAvG6I3RBNt82lWSfzqhC KTheSg2BW1yYFYK+8B2nUQOI2VGpam2yJejajo3tkipmtvlHST+AlpmsbmIfBzvQ DmB7uEaJ1gOyoGIZqHRingC9keyZmNFBmPSin/In/f6bXE9gqWHONyQyxs5jlzBC L43X+s9mLBMXUzuFzLKV0bJPNBQw/fXzUMAyAOjDVekBCPYpEvzARxlnldFe4mqL wbixaAIM+d4vOMf4uOoTd3nCfkwfWGsaEzvZcS88fi589kBrSHIS9FacwF3IRPqZ yc1oJHLhFF3eXe8wdX/a =mwrD -----END PGP SIGNATURE----- --------------080406010206090905030707 Content-Type: text/plain; charset=UTF-8; name="xslt-email-2.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xslt-email-2.diff" Index: share/xml/email.dtd =================================================================== --- share/xml/email.dtd (revision 40265) +++ share/xml/email.dtd (working copy) @@ -2,4 +2,5 @@ Index: share/xml/xhtml.xsl =================================================================== --- share/xml/xhtml.xsl (revision 40265) +++ share/xml/xhtml.xsl (working copy) @@ -6,10 +6,11 @@ @@ -159,6 +160,23 @@ + + < + + + + + + + mailto: + rect + + + + + > + + ©right;
--------------080406010206090905030707 Content-Type: application/octet-stream; name="xslt-email-2.diff.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="xslt-email-2.diff.sig" iQIcBAABAgAGBQJQvmiEAAoJEK27+GEKN4m3bYsQAIiKYzbLD/bvCWS6PjZ+nqx9wAkL8W08 ryVvKnoTloItUGX8ngrQqdGec9cD+q+9xdY2baRgTaVBgFzUL+XrVxvjeukM8vRCksXBR/As IvffS9pBo9+5dwEYHDv4w5IFPjUz5OjOVLJrHscUs8Z2ULZ7HsSMSUeGT4KkZmUUoUUm/uVm WZD7PLsWDrSRgKrhi1JUrXfDADfgUNsuUVDXOwfD1+CDA56Pog4e8zdgxgA+cXdPCbnAQ/aQ p7y9hMTlNoaOR7ziEr7LYfvILjgvEe86tX4AGFkixjVYW0Q+zbQ6CRa8I9PyU/6yDqbhJbbR v1lWNU3liqgQwmMVq+ceQHfUn01eBHKY64LnggsmaVWU7JenvHRsyYLF9JsGri/23GQi40pE J3I6p3SGLVN5FFkJV6W5m5ciA7RL+/8sVd2eh/gekGFDyAQFSiLfKqlHD2BdvsIqMV0YIYJU LkA3NIQ2O+Xmy6PN8duD1EslmhZz4SglFil66r8p6BCc7ZQ5IaOD+jYtbffsrAzwqIrxjB1I smrpf0WNhKszvpzY0eekJCVBHV+yQQ7hMPNnfog3eOYzZItenFydtREqwrB+CCmbQEwkXcXo ROY5YHefyEjctxxy8jcZeXPcI5Bhs9rQ84s3m3Yrn4BLcWZffxB/n5pmzqocxGkokxna2i2n W5JP --------------080406010206090905030707--