Re: [docbook] Markup suggestions please?

From
Jirka Kosek <>
Date
2011-12-06T23:06:49+00:00
ID
Thread
Re: [docbook] Markup suggestions please?
On 6.12.2011 19:36, davep wrote:

> What about markup for an assembly level instruction?
> 
> <instr proc='ARM'>vadd</
>   Suggest anything to improve on that?

Do you really need such precise markup. There not many books talking
about instructions of several different processor at the same time so
@proc seems excessive. Moreover there is already existing attribute for
this @arch:

arch

Designates the computer or chip architecture to which the element applies.

If you don't want to customize DocBook then semantically closest is
probably function element. Of course, you can customize DocBook and add
respective element, I once did this as an excercise:

http://xmlguru.cz/2006/03/easy-docbook-specialization

				Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail:       http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------