[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] add_attribut
Thank a lot ! I thought that a something like this was possible but I didn't know the correct syntax. Isa Bob Stayton wrote: >Hi Isabelle, >As you found, XSLT processors handle wellformed documents as well as valid >documents. When you add the infoid attribute, your documents may still >process, but they would fail a validation step. If you open such a document >in a validating XML editor application, for example, it will complain. > >You can easily extend the DTD by specifying a new 'common' attribute in the >internal subset of the DTD in your documents, like this: > ><!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" > "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" >[ ><!ENTITY % local.common.attrib "infoid CDATA #IMPLIED"> >]> > >A list of discrete values (without the description) would be implemented >like this: > ><!ENTITY % local.common.attrib "infoid (changed|added|deleted|off) >#IMPLIED"> > >You can also replace #IMPLIED with a default value. > >The %local.common.attrib; parameter entity is declared in the DTD as empty, >ready to be filled in for a customization like this. > >Bob Stayton >Sagehill Enterprises >DocBook Consulting >bobs@sagehill.net > > >----- Original Message ----- >From: "Isabelle DENGHIEN - IFR49" <denghien@shfj.cea.fr> >To: "Docbook-apps" <docbook-apps@lists.oasis-open.org> >Sent: Wednesday, September 21, 2005 2:21 AM >Subject: [docbook-apps] add_attribut > > > > >>Hi , >> >>I would like add an attribut for all elements such as 'infoid'. >>This allows to have informations about the id of an element and then I >>could >>manage the ids and extract them. In fact, I need to have a kind of list >>with description to use them easily in any docbook document. >> >>The question is : Can I add an attribut this attribut in .xml document >>without declaration in DTD >>like this : >> >>-------------------------------------------------------------------------- >> >> >----------------------- > > >><chapter id="dbs_en_chap1" infoid="DescriptionOfFirstChapter"> >> <title>First Chapter</title> >> <sect1> >> <title>Firts Section </title> >> <para>...... >> ......................... >> >>-------------------------------------------------------------------------- >> >> >------------------------ > > >>I tryed html and pdf output and it worked. The xmllint parser works too. >>I haven't got any warning ! >> >>Is it right to make this or not ? Perhaps there is an other way to >>manage ids with description ? >> >> >>Isabelle >> >> >>-- >>************************ >>Isabelle DENGHIEN >>SHFJ-IFR49 >>4 place du General Leclerc >>91401 Orsay Cedex France >> >>http://www.ifr49.org >>Tel +33 (0) 1 69 86 77 81 >>Fax +33 (0) 1 69 86 78 16 >>Mail:denghien@shfj.cea.fr >> >> >> >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >>For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >> >> >> >> >> > > > > > -- ************************ Isabelle DENGHIEN SHFJ-IFR49 4 place du General Leclerc 91401 Orsay Cedex France http://www.ifr49.org Tel +33 (0) 1 69 86 77 81 Fax +33 (0) 1 69 86 78 16 Mail:denghien@shfj.cea.fr
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]