Newbi Q - Attribute groups and complex types

Oxygen general issues.
Miles
Posts: 1
Joined: Mon Feb 13, 2023 3:45 pm

Newbi Q - Attribute groups and complex types

Post by Miles »

Hi

I'm a casual non-techie user of Oxygen, but have a need to create my first schema -and this is completely from scratch, there's no environment to inherit from.

I need to create a schema that involves our companies, our clients, and products. Both types of party have things in common, many products have things in common.. so I want to create some attribute groups to aid re-use.
Alas, I can't find anything that explains how to do this, and experimenting isn't working.. there's one video in which the presenter inherits a pre-existing group... which doesn't help.

I'm working in design view in Oxygen XML v23.

thanks in advance!

Miles
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

Re: Newbi Q - Attribute groups and complex types

Post by tavy »

Hi Miles,

Unfortunately we do not have a video demo that covers attribute groups.
I recommend you to use the Pallet view to create a new attribute group.
- drag and drop the attribute group in the schema root
- drag an drop attribute components in the attribute group
Then to use the attribute group, you can just drag it over the component (element, definition), and a reference to the attribute group will be created.

You can find more about XML Schema Palette View in our user manual:
https://www.oxygenxml.com/doc/versions/ ... -view.html
https://www.oxygenxml.com/demo/Schema_Palette.html

As a starting point you can also generate an XSD from XML documents. For this you can use the Generate/Convert Schema tool:
https://www.oxygenxml.com/doc/versions/ ... tools.html


Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply