OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: Q: How do I use entities like – in DocBook V5.0?

On Tue, Nov 08, 2005 at 10:59:45AM +0100,
 Jirka Kosek <jirka@kosek.cz> wrote 
 a message of 120 lines which said:

> This simply works, so I don't understand what more you want. Do you
> want entites? If yes, then use !DOCTYPE and include needed entity
> definitions.

If it helps, I've attached a Docbook file which does exactly that: it
includes an entity file with my favorite entities.

I can edit the Docbook file (and validates it) with nXML and I can
validate it against the RelaxNG schema with xsltproc (and of course
against the DTD with nsgmls).

% xmllint --noout --relaxng RelaxNG/Docbook/docbook.rng test.db
test.db validates

If I use xmllint without the --noout, I can see that the entity was
indeed processed and expanded.

<?xml version="1.0" encoding="iso-8859-1"?> 
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
<!ENTITY % myentities SYSTEM "myentities.ent">
<para>I believe that &foo; is important.</para>
<!ENTITY foo "<emphasis>Foo!</emphasis>">

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]