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