Tongue, Steve wrote:
> I'm trying to add a couple of buttons to my document with this configuration
> below that I copied from the XHTML configuration.
> 
> The buttons are added but they don't work and are greyed out in the
> document.
> 
> Can someone give me a simple list of steps I need to take to add a button
> like this?
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <configuration name="Assessment"
>   xsi:schemaLocation="http://www.xmlmind.com/xmleditor/schema/configuration
>                       ../configuration/xsd/configuration.xsd"
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>   xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
>   xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>
> 
>   <load location="xhtml.jar" />
> 
>   <detect>         
> <rootElementNamespace>http://www.xmlmind.com/xmleditor/schema/assessment</ro
> otElementNamespace>
>   </detect>
> 
>   <schema>
>     <location>http://www.xmlmind.com/xmleditor/schema/assessment
> assessment.xsd</location>
>   </schema>
> 
>   <css location="assessment.css" name="Assessment Style"/>
> 
>   <template location="assessment.xml" name="Assessment template"/>
> 
> 
>   <toolBar>
>     <button toolTip="Convert to italic" icon="../common/icons2/i.gif">
>       <command name="convert" parameter="[implicitElement] italic" />
>     </button>
> 
>     <button toolTip="Convert to bold" icon="../common/icons2/b.gif">
>       <command name="convert" parameter="[implicitElement] bold" />
>     </button>
> 
>   
>   </toolBar>
> </configuration>

Your <italic> and <bold> elements probably belong the 
"http://www.xmlmind.com/xmleditor/schema/assessment"; namespace, if this 
is the case, you need to specify:

---
<command name="convert" parameter="[implicitElement] 
{http://www.xmlmind.com/xmleditor/schema/assessment}bold"; />
---

(a single space between "[implicitElement]" and 
"{http://www.xmlmind.com/xmleditor/schema/assessment}bold";)



Reply via email to