html.head.legalnotice.link.types.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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">
  7. <refmeta>
  8. <refentrytitle>html.head.legalnotice.link.types</refentrytitle>
  9. <refmiscinfo class="other" otherclass="datatype">string</refmiscinfo>
  10. </refmeta>
  11. <refnamediv>
  12. <refname>html.head.legalnotice.link.types</refname>
  13. <refpurpose>Specifies link types for legalnotice link in html head</refpurpose>
  14. </refnamediv>
  15. <refsynopsisdiv>
  16. <src:fragment xml:id="html.head.legalnotice.link.types.frag">
  17. <xsl:param name="html.head.legalnotice.link.types">copyright</xsl:param>
  18. </src:fragment>
  19. </refsynopsisdiv>
  20. <refsection><info><title>Description</title></info>
  21. <para>The value of
  22. <parameter>html.head.legalnotice.link.types</parameter> is a
  23. 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
  24. of the HTML 4.01 specification</link>. If the value of the
  25. <parameter>generate.legalnotice.link</parameter> parameter is
  26. non-zero, then the stylesheet generates (in the
  27. <literal>head</literal> section of the HTML source) either a single
  28. HTML <literal>link</literal> element or, if the value of the
  29. <parameter>html.head.legalnotice.link.multiple</parameter> is
  30. non-zero, one <literal>link</literal> element for each link type
  31. specified. Each <literal>link</literal> has the following attributes:
  32. <itemizedlist>
  33. <listitem>
  34. <para>a <tag class="attribute">rel</tag> attribute whose
  35. value is derived from the value of
  36. <parameter>html.head.legalnotice.link.types</parameter></para>
  37. </listitem>
  38. <listitem>
  39. <para>an <tag class="attribute">href</tag> attribute whose
  40. value is set to the URL of the file containing the
  41. <tag>legalnotice</tag></para>
  42. </listitem>
  43. <listitem>
  44. <para>a <tag class="attribute">title</tag> attribute whose
  45. value is set to the title of the corresponding
  46. <tag>legalnotice</tag> (or a title programatically
  47. determined by the stylesheet)</para>
  48. </listitem>
  49. </itemizedlist>
  50. For example:
  51. <screen> &lt;link rel="license" href="ln-id2524073.html" title="Legal Notice"&gt;</screen>
  52. </para>
  53. <refsection><info><title>About the default value</title></info>
  54. <para>In an ideal world, the default value of
  55. <parameter>html.head.legalnotice.link.types</parameter> would
  56. probably be “<literal>license</literal>”, since the content of the
  57. DocBook <tag>legalnotice</tag> is typically license
  58. information, not copyright information. However, the default value
  59. is “<literal>copyright</literal>” for pragmatic reasons: because
  60. 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
  61. 6.12 of the HTML 4.01 specification</link>, and because certain
  62. browsers and browser extensions are preconfigured to recognize that
  63. value.</para>
  64. </refsection>
  65. </refsection>
  66. </refentry>