Schema documentation of more complicated attribute types
This should cover W3C XML Schema, Relax NG and DTD related problems.
-
- Posts: 15
- Joined: Sat Mar 12, 2005 2:45 pm
- Location: Munich, Germany
Schema documentation of more complicated attribute types
Post by Christian Roth »
Hello,
is there a way to generate fully expandable schema documentation for more complicated attribute structures? It seems only the top level (restriction, union, ...) is documented, but not the descendants.
My type at hand looks like this (simplified):
(I know that the type effectively does allow any string. It was created this way so that a set of standard values could be documented.)
The generated documentation only shows as
Type union of(restriction of xs:string, restriction of xs:string)
but there's no way to descend into the two restrictions, where especially the first enumeration restriction with the documentation of the standard values is of interest.
Can complete (hierarchical) documentation of attribute types be enabled by a certain setting of options in the documentation generator, or does this require a customization of the HTML generating stylesheets?
Thanks,
Christian
is there a way to generate fully expandable schema documentation for more complicated attribute structures? It seems only the top level (restriction, union, ...) is documented, but not the descendants.
My type at hand looks like this (simplified):
Code: Select all
<xs:attribute name="name" use="required" form="qualified">
<xs:annotation>
<xs:documentation>name of the document property</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="title">
<xs:annotation>
<xs:documentation>title of the document</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="subject">
<xs:annotation>
<xs:documentation>subject of the document</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value=".+"/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
</xs:attribute>
The generated documentation only shows as
Type union of(restriction of xs:string, restriction of xs:string)
but there's no way to descend into the two restrictions, where especially the first enumeration restriction with the documentation of the standard values is of interest.
Can complete (hierarchical) documentation of attribute types be enabled by a certain setting of options in the documentation generator, or does this require a customization of the HTML generating stylesheets?
Thanks,
Christian
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: Schema documentation of more complicated attribute types
Hello,
I'm afraid this situation is not handled well by the schema documentation tool. The actual restriction rules aren't represented for anonymous types.
There's no option nor any customization of the stylesheets that can resolve this.
I've added this to our issue tracking tool and we will attempt to find a way to better represent anonymous types with restrictions.
A workaround(though very inconvenient) is to alter the schema and make global(and named) the two anonymous simple types from the union. This will result in the proper documentation for them which includes the enumerations.
Regards,
Adrian
I'm afraid this situation is not handled well by the schema documentation tool. The actual restriction rules aren't represented for anonymous types.
There's no option nor any customization of the stylesheets that can resolve this.
I've added this to our issue tracking tool and we will attempt to find a way to better represent anonymous types with restrictions.
A workaround(though very inconvenient) is to alter the schema and make global(and named) the two anonymous simple types from the union. This will result in the proper documentation for them which includes the enumerations.
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
-
- Posts: 15
- Joined: Sat Mar 12, 2005 2:45 pm
- Location: Munich, Germany
Re: Schema documentation of more complicated attribute types
Post by Christian Roth »
Thanks Adrian. I will check out the workaround and see if it's feasible in my case.
Regards, Christian
Regards, Christian
<oXygen/> XML Editor 16.1
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