Page 1 of 1

Custom Schema Documentation

Posted: Fri Mar 20, 2015 2:40 pm
by jvanhille
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!

Re: Custom Schema Documentation

Posted: Fri Mar 20, 2015 5:59 pm
by adrian
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

Re: Custom Schema Documentation

Posted: Fri Mar 20, 2015 8:59 pm
by jvanhille
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

Re: Custom Schema Documentation

Posted: Mon Mar 23, 2015 11:29 am
by adrian
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