Hallo,

I have the following schema (extract):
...
<xs:element name="para" type="paraType"/>
...
<xs:complexType name="paraType" mixed="true">
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:choice>
            <xs:element name="b" type="xs:string"/>    <!-- for bold 
text -->
            <xs:element name="i" type="xs:string"/>     <!-- for italic 
text -->
            <xs:element name="phrase" type="phraseType"/>
            <xs:element name="externalLink">
                <xs:complexType>
                    <xs:simpleContent>
                        <xs:extension base="xs:string">
                            <xs:attribute name="destination" 
type="xs:string" use="required"/>
                        </xs:extension>
                    </xs:simpleContent>
                </xs:complexType>
            </xs:element>
            <xs:element name="sub" type="xs:string"/>   <!-- for 
subscript -->
            <xs:element name="super" type="xs:string"/> <!-- for 
superscript -->
        </xs:choice>
    </xs:sequence>
    <xs:attribute name="onlyProject" type="onlyProjectType" use="optional"/>
</xs:complexType>
.....

I have inserted following menu items to an toolbar button for converting 
text selections and nodes:

<menu>
   <item label="Convert to plain text"
            command="convert"
            parameter="[implicitElement] #text"/>
   <item label="Convert to bold"
            command="convert"
            parameter="[implicitElement] b"/> 
   <item label="Convert to italic"
            command="convert"
            parameter="[implicitElement] i"/>
    <item label="Convert to subscript"
            command="convert"
            parameter="[implicitElement] sub"/>
</menu>

"Convert to plain text" works fine if  I try to convert an inserted 
bold, italic or other node to plain text.
The other convert commands do not work. What is wrong?

Thank you for help and best regards
Anita Fohrenkamm

Reply via email to