List Info

Thread: RE: v5 extension elements




RE: v5 extension elements
user name
2007-09-05 13:24:23
Dave,

> > 
> >  <define name="db.ubiq.inlines"
combine="choice">
> >   <choice>
> >     <ref name="shLft"/>
> >     <ref name='shRt'/>
> >   </choice>
> > </define>
> > 
> 
> In an external file Jirka.. then include the main db
file?
> 

That's the way I would suggest doing this.  The DocBook 5.0
Howto mentions this in the section on customization:

h
ttp://docbook.org/docs/howto/#customconsiderations

Dick Hamilton



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-helplists.oasis-open.org


Re: v5 extension elements
user name
2007-09-06 01:45:24
Dick Hamilton wrote:
> Dave,
> 
>>>  <define name="db.ubiq.inlines"
combine="choice">
>>>   <choice>
>>>     <ref name="shLft"/>
>>>     <ref name='shRt'/>
>>>   </choice>
>>> </define>
>>>
>> In an external file Jirka.. then include the main
db file?
>>
> 
> That's the way I would suggest doing this.  The DocBook
5.0
> Howto mentions this in the section on customization:
> 
> h
ttp://docbook.org/docs/howto/#customconsiderations

Thanks Dick.
Suggest an example would help others understand.
Simple para explaining how the combine attribute works
perhaps?
<add>
For example

   <define name="db.ubiq.inlines"
combine="choice">
    <choice>
      <ref name="myelement1"/>
      <ref name='myelement2'/>
    </choice>
  </define>


<define name="myelement1">
   <text/>
</define>

This replaces or merges with the definition within the main
schema, due to the 'combine' attribute being set to
'choice'.
These two elements are added to the main definition.

Then when the schema is updated, the elements remain
defined
without further work.

</add>

regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-helplists.oasis-open.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )