Custom Schema Documentation

This should cover W3C XML Schema, Relax NG and DTD related problems.
jvanhille
Posts: 8
Joined: Tue Jan 27, 2015 2:36 pm

Custom Schema Documentation

Post by jvanhille » Fri Mar 20, 2015 2:40 pm

Hi,

In my schema documentation generated with Oxygen, I would like to put in evidence all elements or attributs not authorized by my bussiness rules.

How do I can modify the images to mark all objects not allowed.

Do you have any ideas?

Thanks!

adrian
Posts: 2515
Joined: Tue May 17, 2005 4:01 pm

Re: Custom Schema Documentation

Post by adrian » Fri Mar 20, 2015 5:59 pm

Hello,

If you want to customize the stylesheets that produce the schema documentation, please see this forum post:
http://www.oxygenxml.com/forum/post29164.html#p29164
Let me know if you need additional assistance with this.

If you want to do this only for a specific schema, you could add comments or some HTML snippets (for HTML output) in the annotations from the schema.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

jvanhille
Posts: 8
Joined: Tue Jan 27, 2015 2:36 pm

Re: Custom Schema Documentation

Post by jvanhille » Fri Mar 20, 2015 8:59 pm

Thanks Adrien but I would like for example put a line one each elements not alowed by my bussiness rules.

My idea is to add an attribute on each element not allowed in my schema and after generate an image in a specific style for them. But do you think that is possible to modify the images output?

Regards

adrian
Posts: 2515
Joined: Tue May 17, 2005 4:01 pm

Re: Custom Schema Documentation

Post by adrian » Mon Mar 23, 2015 11:29 am

Hi,

No, I'm afraid you can't alter the diagram (image) generation of the schema documentation tool. An image is a direct reflection of the diagram from the Design mode (when editing an XML schema).

The stylesheet can only be used to customize the text content. So you could maybe add a new field in the output which mentions that the element is not allowed and style it appropriately.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Post Reply