Preferred number of repetitions: the same behavior for maxOccurs as for minOccurs
Are you missing a feature? Request its implementation here.
Preferred number of repetitions: the same behavior for maxOccurs as for minOccurs
Hello,
I have on RFE. When using Generate Sample XML Files -> Options -> Settings -> Preferred number of repetitions, I would like to have some ability to generate maxOccurs element. As stated in "i" help:
n < minOccurs -> minOccurs
minOccurs < n -> n
n < maxOccurs -> n
maxOccurs < n -> n = THAT IS WHAT I DO NOT WANT TO HAVE IN RESULT, I WANT maxOccurs
Because I think, that in case maxOccurs < n -> n, the resulted XML would be invalid. In other words - it could be nice to have possibility to generate "largest XML as XSD allows" (and still valid XML).
Am I right? Thank You in advance for Your answer. Stepan
P.S. In "i" help is exactly written (the last statement is problem for me. And I do not know why that behavior was chosen. Maybe I missed something important regarding XML usage.
Option to set the preferred number of repeating elements related with minOccurs and maxOccurs defined in XML Schema.
If the value set here is between minOccurs and maxOccurs, that value will be used.
If the value set here is less than minOccurs, the minOccurs value will be used.
If the value set here is greater than maxOccurs, that value will be used.
I have on RFE. When using Generate Sample XML Files -> Options -> Settings -> Preferred number of repetitions, I would like to have some ability to generate maxOccurs element. As stated in "i" help:
n < minOccurs -> minOccurs
minOccurs < n -> n
n < maxOccurs -> n
maxOccurs < n -> n = THAT IS WHAT I DO NOT WANT TO HAVE IN RESULT, I WANT maxOccurs
Because I think, that in case maxOccurs < n -> n, the resulted XML would be invalid. In other words - it could be nice to have possibility to generate "largest XML as XSD allows" (and still valid XML).
Am I right? Thank You in advance for Your answer. Stepan
P.S. In "i" help is exactly written (the last statement is problem for me. And I do not know why that behavior was chosen. Maybe I missed something important regarding XML usage.
Option to set the preferred number of repeating elements related with minOccurs and maxOccurs defined in XML Schema.
If the value set here is between minOccurs and maxOccurs, that value will be used.
If the value set here is less than minOccurs, the minOccurs value will be used.
If the value set here is greater than maxOccurs, that value will be used.
Re: Preferred number of repetitions: the same behavior for maxOccurs as for minOccurs
Hello,
So you are referring to the section Generate Sample XML Files from the documentation:
http://www.oxygenxml.com/doc/ug-editor/ ... rator.html
Have you observed a different behavior in practice, or did you only notice this in the documentation?
Regards,
Adrian
So you are referring to the section Generate Sample XML Files from the documentation:
http://www.oxygenxml.com/doc/ug-editor/ ... rator.html
That's just a mistake in the documentation. I've checked in the code and if the value is greater than maxOccurs then maxOccurs is used.Preferred number of repetitions - Allows the user to set the preferred number of repeating elements related with minOccurs and maxOccurs facets defined in XML Schema.
- If the value set here is between minOccurs and maxOccurs, then that value is used;
- If the value set here is less than minOccurs, then the minOccurs value is used;
- If the value set here is greater than maxOccurs, then that value is used.
Have you observed a different behavior in practice, or did you only notice this in the documentation?
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Re: Preferred number of repetitions: the same behavior for maxOccurs as for minOccurs
Hello,
yeas, I read it in "fast documentation" ~ click on "i" sign in tool wizard. I did not nested then. I have tried it now and it works fine as I wanted.
Thank you. Stepan
yeas, I read it in "fast documentation" ~ click on "i" sign in tool wizard. I did not nested then. I have tried it now and it works fine as I wanted.
Thank you. Stepan
Re: Preferred number of repetitions: the same behavior for maxOccurs as for minOccurs
Hi,
I've submitted an issue for correcting this in our documentation (including the quick info from the dialog).
Regards,
Adrian
I've submitted an issue for correcting this in our documentation (including the quick info from the dialog).
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service