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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] René 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 defined 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="http://www.FreeBSD.org/XML/email">greenpuppet@reeBSD.org</email> 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 <email> 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> <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="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="http://www.w3.org/1999/xhtml" in xhtml.xsl. -- Hiroki [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iEYEABECAAYFAlC+NL4ACgkQTyzT2CeTzy2UngCbBPuiHN3p1hbb7alE4PFOByCz pi4AoIhxa2yZ8JHqMnxNPuIP5cTem74y =uesp -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121205.023702.5802241737895160.hrs>
