Hussein Shafie wrote:
> 
> Tahia wrote:
> >
> > > > About convert element:
> > > >
> > > > We can select a text and converted to <b> for exemple.
> > > > <b> is an element without parameter.
> > > > I realised that we can not convert text to an element within attributes.
> > > >
> > > > See the exemple of xhtml:
> > > >
> > > > --<command name="xhtml.convertToLink">
> > > >     <macro>
> > > >       <sequence>
> > > >         <command name="convert" parameter="a" />
> > > >         <command name="putAttribute" parameter="%*" />
> > > >       </sequence>
> > > >     </macro>
> > > > ---</command>
> > > >
> > > > it uses a method "xhtml.convertToLink". It works well.
> > > >
> > > > How could I convert a text to an element within attributes ?
> > > > I tried:
> > > >
> > > > --<command name="myConvertToLink">
> > > >     <macro>
> > > >       <sequence>
> > > >         <command name="convert" parameter="a" />
> > > >         <command name="putAttribute" parameter="%*" />
> > > >       </sequence>
> > > >     </macro>
> > > > ---</command>
> > > >
> > > > --- <button toolTip="Convert to link" icon="../icons2/link_menu.gif">
> > > >       <menu>
> > > >         <item label="a[externe link]" command="myConvertToLink"
> > > >               parameter="href http://XXX.YYY"; />
> > > >         <item label="a[interne link]" command="myConvertToLink"
> > > >               parameter="href urn:XXX:YYY" />
> > > >       </menu>
> > > > ---</button>
> > > >
> > > > my element <a> is not the same as the one declared with XHTML!!

> 
> PS 4: Some element templates are still missing xmlns="" (ex.
> <elementTemplate name="simpleObject">)
> 


But I thought that I had to added to the element presented by the
template:

That is what I already wrote:

<elementTemplate name="simpleObject">
    <object xmlns="" title="" width="" id="" height="">
        <ressource title="" width="" media="" ref="???" height="" id="" />
      </object>
  </elementTemplate>


I should not add:
<elementTemplate xmlns="" name="simpleObject">
unstead of 
<elementTemplate name="simpleObject">

???

I don't know  if you're reading the correct documents :O)

Reply via email to