Usually, Link surrounds the text that should be made "hot," unlike XRef which must generate the text but the EndTerm attribute can be used to copy text from another element. Processing expectations Formatted inline. If the Link element specifies an EndTerm, and then the content of the element pointed to by EndTerm should be repeated at the location of the Link and used as the "hot" text instead of the Link content, which should be suppressed. Linking elements must not be nested within other linking elements including themselves. The processing of nested linking elements is undefined. It will no longer be available in the content model of this element.
|Published (Last):||17 December 2012|
|PDF File Size:||1.52 Mb|
|ePub File Size:||5.5 Mb|
|Price:||Free* [*Free Regsitration Required]|
Linking to websites Creating a link from your DocBook document to a website is easy. The first ulink example is not empty, so its text content becomes the hot text in HTML output. The second ulink is empty, so the stylesheet will automatically copy its URL to use as the hot text. In HTML output, you can have the target document appear in a separate window if you set the ulink. That adds a target attribute to the HTML anchor tag.
For FO output, you can choose whether the url attribute value for the ulink is printed. If you just set the parameter ulink. If you also set the parameter ulink. Regardless of the parameter settings, if the URL exactly matches the ulink text string or the ulink element is empty, which produces the same result , then the stylesheet does not repeat the same URL in brackets or a footnote. The problem is that URLs have no spaces, and so will not be line broken on a space.
If you try to insert zero-width spaces in the ulink url attribute to allow breaks in the printed form, you will find that the URL no longer works as a link. If you copy the url to the ulink element content and add the zero-width spaces there, you will find that the stylesheet no longer treats them as the same and repeats the URL after the text.
You can solve this problem by using a feature of the print stylesheet to enable hyphenation of ulink URLs, with a hyphenation character that you specify. The way it works is you set the stylesheet parameter ulink. When that parameter is not empty, then that character is inserted by the stylesheet into the printed version of the URL after every character that is included in the stylesheet parameter ulink. Generally you should set ulink. The former will generate a hyphen if the URL breaks, and the latter will not.
However, not all processors support both characters, so you should test.
DOCBOOK ULINK PDF
While it is not a radical change in terms of element names and structures, it signficantly changes the foundation on which DocBook is based. DocBook 5 differences These are the major changes included in DocBook 5. They are each described in more detail in the following sections. DocBook namespace. This allows elements from other namespaces to be mixed into DocBook documents without creating element name conflicts. Likewise, DocBook fragments can more easily be embedded in other compound document types.
Kamuro The way it works is you set the stylesheet parameter ulink. DocBook 5 has a new system for associating annotations with elements. The universal linking mechanism enables you to create logical links between any two DocBook elements. For example, if you put an xlink: In DocBook 5, most elements that generate some output can be made uulink a link. The link element contains some text or even other elements: Usually, external links are used in two ways:.