RE: [docbook] is there any way to code genus & species names in docbook XML

From
Raju Sharma <>
Date
2003-05-23T10:40:52+00:00
ID
004201c32119$5c417ac0$7e02a8c0@iccidomain
Thread
RE: [docbook] is there any way to code genus & species names in docbook XML
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" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
%DocBookDTD;

 

==> <!ELEMENT genus - - 
((%smallcptr.char.mix;)+)>

 

<!ATTLIST genus
 %common.attrib; 

 %classname.role.attrib; 
 %local.classname.attrib; 
>

==> <!ELEMENT species - - 
((%smallcptr.char.mix;)+)>

 

<!ATTLIST species
 %common.attrib; 

 %classname.role.attrib; 
 %local.classname.attrib; 
>

=========

 

Regards

Raju Sharma

 

  
-----Original Message-----
From: Gisbert Amm 
  [mailto:]
Sent: Friday, May 23, 2003 2:27 
  PM
To: ''; 
  
Subject: RE: [docbook] is there any way 
  to code genus & species names in docbook XML

  
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 (see http://www.sagehill.net/xml/docbookxsl/CustomMethods.html#d0e4162 "Writing 
  a customization layer" ff.)  

  
 

  
Kind regards

  
Gisbert Amm

  
http://web.de/

  
    
-----Original Message-----
From: Raju Sharma 
    [mailto:]
Sent: Friday, May 23, 2003 7:14 
    AM
To: 
Subject: [docbook] 
    is there any way to code genus & species names in docbook 
    XML

    

    
Hello,

    
 

    
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.

    
 

    
Regards

    
Raju 
    Sharma