Tahia wrote:
> 
> When reading the Power User Guide,
> it is said that "the validity of the element contained in the
> elementTemplate is not checked by XXE when the configuration file is
> parsed".
> The question is: the element is checked after, isn't it??
> In fact,
> I want to add an element that is not valid with the DocBook DTD.
> To do that I thought that it will work when I write (toolBar.incl):
> 
> -----<button toolTip="Add table" icon="../icons2/table.gif">
>         <command name="add" parameter="#template(table,simple)" />
> -----</button>
> 
> **adding for example(common.incl):
> 
> -----<elementTemplate name="simple">
>         <table title="" id="">
>                 <tr><p></p></tr>
>                 <tr><p></p></tr>
>         </table>
> -----</elementTemplate>
> 
> But it does not activate the icon "table.gif"  at the editor.
> 
> Did I forget something or missunderstand something ?

After being inserted the element template is not checked. XXE trusts the
author of the configuration regarding the validity of the element
template he/she has created.

The icon is disabled for another reason: you simply cannot add a
cfg:table in a DocBook document. That is, what you have specified is a
table in the namespace of XXE configurations.

Try with this template and I think the icon will be enabled (I've added
xmlns=""):

-----<elementTemplate name="simple">
        <table title="" id="" xmlns="">
                 <tr><p></p></tr>
                 <tr><p></p></tr>
        </table>
-----</elementTemplate>

Reply via email to