1 <refentry xmlns="http://docbook.org/ns/docbook"
\r
2 xmlns:xlink="http://www.w3.org/1999/xlink"
\r
3 xmlns:xi="http://www.w3.org/2001/XInclude"
\r
4 xmlns:src="http://nwalsh.com/xmlns/litprog/fragment"
\r
5 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
\r
6 version="5.0" xml:id="html.head.legalnotice.link.types">
\r
8 <refentrytitle>html.head.legalnotice.link.types</refentrytitle>
\r
9 <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
\r
12 <refname>html.head.legalnotice.link.types</refname>
\r
13 <refpurpose>Specifies link types for legalnotice link in html head</refpurpose>
\r
17 <src:fragment xml:id="html.head.legalnotice.link.types.frag">
\r
18 <xsl:param name="html.head.legalnotice.link.types">copyright</xsl:param>
\r
22 <refsection><info><title>Description</title></info>
\r
25 <parameter>html.head.legalnotice.link.types</parameter> is a
\r
26 space-separated list of link types, as described in <link xlink:href="http://www.w3.org/TR/html401/types.html#type-links">Section 6.12
\r
27 of the HTML 4.01 specification</link>. If the value of the
\r
28 <parameter>generate.legalnotice.link</parameter> parameter is
\r
29 non-zero, then the stylesheet generates (in the
\r
30 <literal>head</literal> section of the HTML source) either a single
\r
31 HTML <literal>link</literal> element or, if the value of the
\r
32 <parameter>html.head.legalnotice.link.multiple</parameter> is
\r
33 non-zero, one <literal>link</literal> element for each link type
\r
34 specified. Each <literal>link</literal> has the following attributes:
\r
38 <para>a <tag class="attribute">rel</tag> attribute whose
\r
39 value is derived from the value of
\r
40 <parameter>html.head.legalnotice.link.types</parameter></para>
\r
43 <para>an <tag class="attribute">href</tag> attribute whose
\r
44 value is set to the URL of the file containing the
\r
45 <tag>legalnotice</tag></para>
\r
48 <para>a <tag class="attribute">title</tag> attribute whose
\r
49 value is set to the title of the corresponding
\r
50 <tag>legalnotice</tag> (or a title programatically
\r
51 determined by the stylesheet)</para>
\r
57 <screen> <link rel="license" href="ln-id2524073.html" title="Legal Notice"></screen>
\r
60 <refsection><info><title>About the default value</title></info>
\r
62 <para>In an ideal world, the default value of
\r
63 <parameter>html.head.legalnotice.link.types</parameter> would
\r
64 probably be “<literal>license</literal>”, since the content of the
\r
65 DocBook <tag>legalnotice</tag> is typically license
\r
66 information, not copyright information. However, the default value
\r
67 is “<literal>copyright</literal>” for pragmatic reasons: because
\r
68 that’s among the set of “recognized link types” listed in <link xlink:href="http://www.w3.org/TR/html401/types.html#type-links">Section
\r
69 6.12 of the HTML 4.01 specification</link>, and because certain
\r
70 browsers and browser extensions are preconfigured to recognize that
\r