This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: URI/URL markup in DocBook
- From: Elliotte Rusty Harold <elharo at metalab dot unc dot edu>
- To: Michael Smith <smith at xml-doc dot org>, docbook <docbook at lists dot oasis-open dot org>
- Date: Tue, 20 Aug 2002 11:22:52 -0400
- Subject: Re: DOCBOOK: URI/URL markup in DocBook
- References: <3CF3C504.7010105@metalab.unc.edu><20020820111348.GA26264@sideshowbarker>
At 8:13 PM +0900 8/20/02, Michael Smith wrote:
* Do you have a need for markup that would allow you to distinguish
between different types of URLs and URNs?
Yes.
* If you do have such a need, what kind of URLs would you need to
distinguish from one another?
In particular I often need to style resolvable and nonresolvable URLs
differently. I generally place resolvable URLs into italics and
nonresolvable URLs into monospace.
I do not think it's plausible or desirable to list all possible
different categories of URLs with different elements. However, class
and role attributes like those used on systemitem would be
conceivable. Possibly the element should be called uri, the class
attribute used to distinguish URLs from URNs, and the role attribute
to specify SAX ferature URLs, namespace URLs, etc. On the other hand,
URNs are not in common use and it might be better to just have a url
element with class used for predefined classes and role used for
user-created classes as on systemitem.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| XML in a Nutshell, 2nd Edition (O'Reilly, 2002) |
| http://www.cafeconleche.org/books/xian2/ |
| http://www.amazon.com/exec/obidos/ISBN%3D0596002920/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+