Jan Bares wrote:
>>You probably also have another customized configuration called
>>"MyDocBook" which ``hides'' the above one.
> 
> Yes, I have MyDocBook/MyDocBook.xxe too (are you a magician?). I want to use
> different save options for DocBook and XHTML. I was thinking that the
> configuration is bound to the document type from <detect> and I include
> xhtml.xxe. Can I have two configurations for different document types?

Sure. Here's how this should be done.

[1] Create addon/MyDocBook/MyDocBook.xxe as you did it, but set the
"name" attribute of the <configuration> element to "DocBook".

This will hide the bundled DocBook configuration.

Explanations: If you set the "name" attribute to "MyDocBook" in
addon/MyDocBook/MyDocBook.xxe, you'll end up with *2* DocBook
configurations: one named "DocBook" (the bundled one) and the other
named "MyDocBook". These 2 configurations having the same <detect> rule,
the bundled DocBook configuration would be unusable as such.

[2] Create addon/MyXHTML/MyXHTML.xxe as you did it, but set the "name"
attribute of the <configuration> element to "XHTML".

This will hide the bundled XHTML configuration.

Reply via email to