Using ulink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(Possibly) helpful tip for the day:

FDP standard usage for the DocBook XML tag <ulink> is to always use the
link URL as the text for the link itself.  In other words, instead of
this:

<ulink url="http://some.link.to/somewhere/";>A good link</ulink>

...use this:

<ulink
url="http://some.link.to/somewhere/";>http://some.link.to/somewhere/</ulink>

But wait!  It gets easier.  DocBook XML specifies that when the XML tag
closes itself (i.e. you don't provide any link text), the link itself is
used as the text for any rendering process.  So what you should probably
do instead, for better XML readability, is this:

<ulink url="http://some.link.to/somewhere/"/>

Isn't that a lot easier?  I think so.  Remember the tag-closing slash
after closing the quotes for the URL, or xmlto will give you a hard time
when you attempt to build your document. :-)

-- 
Paul W. Frields, RHCE                          http://paul.frields.org/
  gpg fingerprint: 3DA6 A0AC 6D58 FEC4 0233  5906 ACDB C937 BD11 3717
 Fedora Documentation Project: http://fedora.redhat.com/projects/docs/

Attachment: signature.asc
Description: This is a digitally signed message part

-- 

fedora-docs-list@xxxxxxxxxx
To unsubscribe: 
http://www.redhat.com/mailman/listinfo/fedora-docs-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Red Hat 9]     [Yosemite News]     [KDE Users]

  Powered by Linux