Jeff Hooker wrote:
> I'm seeing some interesting behavoir with the Docbook 5 config. Essentially, 
> it's allowing me to insert admonishments (notes, warnings, cautions,etc.) 
> into table entry elements and then immediately flagging the inserted elements 
> as errors. I've loaded the RELAX NG schema used by XMLmind into another 
> validating editor, which exhibits the correct behavoir (i.e. allows the 
> elments to be inserted and validates them). Is this a known issue?

[[[Attached screenshot is used to explain what happens to the other 
readers of this mailing list.]]]

XMLmind XML Editor and the other editor you are used both exhibit the 
correct behavior. Let me explain this.

XMLmind XML Editor not only uses the RELAX NG schema of DocBook 5, but 
also the *Schematron* schema of DocBook 5.

The RELAX NG schema is a grammar. This grammar is used to guide you 
while you are editing a DocBook 5 document. This grammar allows you to 
insert a <note> in an <entry>.

This Schematron is not used to guide editing. It may be seen as 
post-validation ``business rules''. This Schematron tells you: it is not 
a good idea to insert a <note> in an <entry>.

If you want to get rid of the Schematron validation (which is definitely 
*not* recommended), comment out the following line in 
XXE_install_dir/addon/config/docbbok5/docbook5.xxe:

---
   <schematron location="rng/V5.0/docbook.sch" />
---



-------------- next part --------------
A non-text attachment was scrubbed...
Name: Schematron_in_action.png
Type: image/png
Size: 44933 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080610/6bf49843/attachment.png
 

Reply via email to