Home › Forums › General XMetaL Discussion › ToggleInline › Reply To: ToggleInline
Reply to: ToggleInline
July 9, 2010 at 6:53 amThe problem is with the schema itself. The paragraph element contains strong, emphasis and underline elements inline e.g.
(same with the super/subscript).
What you need to do is create a type for the above as follows…
…etc
and then define the type…
Note that the emphasis is included (as well may the underline) to allow strong/emphasis combinations.
Now you need to include the elements defined using the ref attribute instead…
The modified schema is thus:
elementFormDefault=”qualified”
xmlns=”http://www.tempuri.org/paper”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”>
Even though the previous schema was perfectly valid and the xmax tool itself validates it, I do not know why it does not work in the previous form. This does however work and I have tried it in a sample .net application (which is attached).
Regards
SteveS