This is the mail archive of the
mailing list for the DocBook project.
RE: [docbook] is there any way to code genus & species names in docbook XML
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: 'Jeff Biss' <jeff at marco-inc dot com>, raju at iccind dot stpn dot soft dot net
- Cc: Gisbert Amm <gia at webde-ag dot de>, docbook at lists dot oasis-open dot org
- Date: Fri, 23 May 2003 09:40:46 -0400
- Subject: RE: [docbook] is there any way to code genus & species names in docbook XML
You may also want to use <foreignphrase role="genus">...</foreignphrase> and
<foreignphrase role="species">...</foreignphrase>. As most genus and
species names are in Latin, and your document isn't, this is semantically
more accurate than the <emphasis/> tag (which is a subject Tobias rather
vehementally addressed) and the DocBook XSL stylesheets provided from
docbook.sourceforge.net already render this as you want it to be rendered,
unlike Tobias' suggestion to use <phrase/>.
(As a side note, I'd like to point out that Jeff Biss's use of id=genus
below is probably not what he intended. The role attribute is designed to
create "sub-classifications" of an element. The id attribute is used to
identify a specific, single, element.)
From: Jeff Biss [mailto:firstname.lastname@example.org]
Sent: Friday, May 23, 2003 9:45 AM
Cc: Gisbert Amm; email@example.com
Subject: Re: [docbook] is there any way to code genus & species names in
I would suggest that you not change the DTD to accomplish what you want,
which is italicized Genus and Species names. The Italization is not
accomplished in the DTD it is accomplished through the appropriate
stylesheet. You could use something like:
<emphasis id=genus> genus</emphasis>
The stylesheet would then render all emphasis elements with ids of genus or
species as italic. This looks like it would work because the Definitive
Reference states that the common attributes are available in the <emphasis>
Raju Sharma wrote:
Thanks for the providing me the solution.
I tried to customize the DTD, but it is giving an error "DTD error - text is
not well-formed after entity resolution (please verify all entities)" during
the declaration of the genusSpecies element (marked with ==>). Please look
at the below DTD declaration and let me know what could be the error.
<!ENTITY % local.para.class "|genus|species">
<!ENTITY % DocBookDTD PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "
==><!ELEMENT genus - - ((%smallcptr.char.mix;)+)>
==><!ELEMENT s pecies - - ((%smallcptr.char.mix;)+)>
From: Gisbert Amm [mailto:firstname.lastname@example.org]
Sent: Friday, May 23, 2003 2:27 PM
To: 'email@example.com'; firstname.lastname@example.org
Subject: RE: [docbook] is there any way to code genus & species names in
Since DocBook is all about technological (computer related) items there's no
special markup for biological terms as you need it.
If you do not have other requirements, you could simply use some
non-semantic inline markup like <emphasis></emphasis> to get the genus and
species names italic.
If you'd like to have <genus> and <species> as elements within your XML, you
had to customize the DTD as described on
http://www.docbook.org/tdg/en/html/ch05.html "Customizing DocBook"; then
you had to provide the matching XSL routines for the new elements aswell
"Writing a customization layer" ff.)
From: Raju Sharma [mailto:email@example.com]
Sent: Friday, May 23, 2003 7:14 AM
Subject: [docbook] is there any way to code genus & species names in docbook
I want to code some genus & species names in italic format. Is there any
coding available in docbook for the same? If not then how can I add these
names in my XML?
Thanks in advance for all your kind help.
To unsubscribe, e-mail: firstname.lastname@example.org
For additional commands, e-mail: email@example.com