Schramm, Martin wrote:
> I have read those mails in the support mailing list under the subject "Adding
> an element to DocBook".
> These describe the problems, I have at the moment. I want to set up an
> example of files (XML DocBook 5, Relax NG, Schematron) and test it with XXE.
> Therefore I would like to start with the files, you have mentioned in the
> following posting:
> http://www.xmlmind.com/pipermail/xmleditor-support/2008-May/006546.html
>
> 1) Could you please tell me, where I can file these files (0example4.xxe,
> example4.css, example4.rng, example4.xml). That would help me a lot.
Add-ons, extensions, customizations, etc, must be installed anywhere
inside one of the two addon/ directories of XMLmind XML Editor.
* The system add-on directory is: XXE_install_dir/addon/
* The user add-on directory is: XXE_user_preferences_dir/addon/
where XXE_user_preferences_dir/ is:
* $HOME/.xxe4/ on Linux.
* $HOME/Library/Application Support/XMLmind/XMLEditor4/ on the Mac.
* %APPDATA%\XMLmind\XMLEditor4\ on Windows 2000, XP, Vista.
Example: C:\Documents and Settings\john\Application
Data\XMLmind\XMLEditor4\ on Windows 2000 and XP.
C:\Users\john\AppData\Roaming\XMLmind\XMLEditor4\ on Windows Vista.
More information in "Writing a configuration file for XXE" --
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/configure.html
Linux example:
[1] Start XXE at least one time to make sure that the user preferences
directory has been created.
[2] ~$ cd ~/.xxe4/addon
[3] ~/.xxe4/addon$ mkdir example4
[4] ~/.xxe4/addon$ cd example4
[5] ~/.xxe4/addon/example4$ cp /tmp/*example4* .
[6] Restart XXE.
[7] Use File|New. Select Example4, Article.
> 2) I have read your information about Schematron
> (http://www.xmlmind.com/xmleditor/_distrib/doc/configure/schematron.html).
> How would the Schematron validation be visible in the XXE? Will there be a
> message popping up, when the author inserts content, that does not follow the
> Schematron schema?
>
Schematron validation errors appear in the Validity tool.
When XXE has been configured to use a Schematron schema, the schematron
validation automatically follows the validation by the grammar (DTD, W3C
XML Schema or RELAX NG Schema).
See attached screenshot. The DocBook 5 RELAX NG grammar allows the note
element to contain note child elements, but the DocBook 5 Schematron
schema considers this is a bad practice.
More information in "Validity tool" --
http://www.xmlmind.com/xmleditor/_distrib/doc/help/checkValidityPane.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: schematron_validation_error.png
Type: image/png
Size: 50622 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20090529/bc6feb20/attachment-0001.png