Thank you for your help. Tahia
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!! > > > > It does not work :O) > > First : can I do it, is it possible ? > > If not, is there a way ? > > Yes, it is possible to convert some text to an element and to add an > attribute to the newly created element, if the grammar constraining the > document allows to do so. > > There is no known bug in XXE related to this functionality. > > The approach you have taken should work but you probably have a very > minor problem. I would be glad to help you fix it but you need to send > me your whole XXE configuration (*.xxe, *.css, *.dtd) plus a sample > document using that configuration in a zip file. -------------- next part -------------- A non-text attachment was scrubbed... Name: interstices.zip Type: application/zip Size: 20255 bytes Desc: not available Url : http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20030424/158b4733/attachment.zip

