My apologies for overlooking this. I made the correction and it is working now. 

Thanks for all your help. 

-----Original Message-----
From: Hussein Shafie [mailto:[email protected]] 
Sent: Friday, December 04, 2009 2:20 AM
To: Goh, Swee-Doon (GPMS)
Cc: xmleditor-support at xmlmind.com
Subject: Re: [XXE] Unable to enter text into list item

Goh, Swee-Doon (GPMS) wrote:
> 
> Thanks for your help in looking into this issue. I hope this won't take too 
> much of your time.
> 
> Attached is the addon folder I used for my custom schema. Please let me know 
> if you need additional info. 
> 

--> XMLmind XML Editor behavior is 100% correct. Our editor simply works
as instructed by your schema.

Your schema allows a listitem to be *completely* *empty* and, unless
configured otherwise, XXE always creates the simplest possible, valid,
contents for a new element.

[1] Click on a listitem.
[2] Use "Help|Show Content Model" or press Ctrl+Shift-F1 and you'll see
by yourself that a listitem may be empty. See attached screenshot.



--> Now I guess that you never intended a listitem to be completely
empty. However this comes from here:

Excerpts of sdocbook-cengage.rnc:
---
cng.listitem =
  element listitem { cng.listitem.attlist, cng.all.blocks+ }

cng.all.blocks =
  cng.nopara.blocks | cng.para.blocks | cng.extension.blocks

cng.nopara.blocks =
  cng.list.blocks
  | cng.admonition.blocks
  | cng.formal.blocks
  | cng.informal.blocks
  | cng.publishing.blocks
  | cng.graphic.blocks
  | cng.verbatim.blocks
  | cng.synopsis.blocks
  | cng.revhistory

cng.list.blocks =
  (cng.itemizedlist | cng.orderedlist ) | cng.bibliolist
cng.admonition.blocks = cng.note
cng.verbatim.blocks = cng.literallayout
cng.publishing.blocks =
  cng.blockquote | cng.address | cng.sidebar | cng.epigraph
cng.graphic.blocks = cng.mediaobject
cng.informal.blocks = cng.informaltable
cng.formal.blocks = cng.example | cng.figure | cng.table
cng.synopsis.blocks = empty

cng.bibliolist = notAllowed

cng.para.blocks = cng.para
---

Replace:
---
cng.synopsis.blocks = empty
---
by:
---
cng.synopsis.blocks = notAllowed
---
and you'll fix this problem. (I've tested that. It works fine.)


--> Next time, before posting a support request to this mailing list,
please be kind enough to double check that you didn't make a bug of your
own. What you do is pretty advanced. It's almost inevitable to make bugs
in this situation.

Reply via email to