Date: Wed, 05 Dec 2012 02:37:02 +0900 (JST) From: Hiroki Sato <hrs@FreeBSD.org> To: rene@FreeBSD.org Cc: doc@FreeBSD.org Subject: Re: XSLT template for <email> Message-ID: <20121205.023702.5802241737895160.hrs@allbsd.org> In-Reply-To: <50BE2FF1.9050901@freebsd.org> References: <50BE2FF1.9050901@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Wed_Dec__5_02_37_02_2012_032)-- Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Ren=E9 Ladan <rene@freebsd.org> 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 defin= ed in re> share/xml/authors.ent, so: re> = re> authors.ent: re> <!ENTITY a.greenpuppet "Green Puppet"> re> <!ENTITY a.greenpuppet.email "&a.greenpuppet; re> <email>greenpuppet@FreeBSD.org</email>"> 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 <email re> xmlns=3D"http://www.FreeBSD.org/XML/email">greenpuppet@reeBSD.org</= email> re> = re> The xmlns attribute is defined in share/xml/email.dtd and is requir= ed 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 co= nvert re> the <email> tag into XHTML but it looks the template is never reach= ed. re> The template above it (process.contentwrap) includes an xsl:copy-of= re> statement which copies the body of the XML document verbatim, leavi= ng re> <email> 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? | + <xsl:template match=3D"email"> You needed to add namespace for email element if you did not define it. This is because the default namespace in <xsl:stylesheet> is defined as xmlns=3D"http://www.w3.org/1999/xhtml" in xhtml.xsl. -- Hiroki ----Security_Multipart(Wed_Dec__5_02_37_02_2012_032)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAlC+NL4ACgkQTyzT2CeTzy2UngCbBPuiHN3p1hbb7alE4PFOByCz pi4AoIhxa2yZ8JHqMnxNPuIP5cTem74y =uesp -----END PGP SIGNATURE----- ----Security_Multipart(Wed_Dec__5_02_37_02_2012_032)----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121205.023702.5802241737895160.hrs>