XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
- Stylus Studio Feature Requests (1192)
-> + Have lost Stylus Studio licens... (3)
-> + XTDE1425: Cannot find a matchi... (2)
-> - Flatten Schema XSD (1)
-> + NEED TO RUN THE CONVERSIONS ON... (2)
-> + Generate different combination... (3)
-> + Display Full Path to File in T... (3)
-> + Conversion from a custom XML f... (2)
-> + memory management (3)
-> + Stylus Studio Pro x15 unattend... (5)
-> - Allow copying file URL from Pr... (1)
-> - Undocking and resizing preview... (1)
-> - Stylus Studio and DataDirect (1)
-> + Basic Navigation in UI (2)
-> + Support Grid View for XML frag... (3)
-> + Some requests from a power use... (7)
-> - Enable Selecting installation ... (1)
-> + Enumeration drop down in grid ... (3)
-> + Showfull path of node at curre... (2)
-> + SSL Connection failure: javax.... (2)
-> + Can Stylus Studio generate X12... (2)
-- [1-20] [21-40] [41-60] Next
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Naveen MalhotraSubject: Enquiry about XSD documentation features
Author: Naveen Malhotra
Date: 14 Jun 2011 01:00 AM
Dear Sir/Madam,

Greetings! We have a few queries with respect to the documentation features of your company’s product Stylus Studio. We have tried the evaluation version of Stylus Studio and we would consider using the licensed version of the software if it meets our expectations.

Here are our queries/expectations from the tool:

(1) We are trying to auto-generate documentation for our XML files using the corresponding XSD files (we are using the XSD files for the validation of our XML files). E.g. assume we have a “customer.xml” file and we have a schema file called “customer.xsd” file that is used for validation purpose of “customer.xml”. Now what we want is that we provide this “customer.xsd” file to the tool as the input, then the tool should be able to generate documentation about “customer.xml” file (and not about the .xsd file itself). Such documentation should include different fields (elements/attributes) in the xml, their data-types and restrictions in plain, simple English rather than technical XSD language (like maximum length limit, maximum precision for floating point, possible enumerated values etc) and, of course, the annotations (comments about the element).

In short, we want the generated documentation to be of XML style and we don’t want the XSD syntax look and feel in it (although we would provide XSD to the tool as the input). Our customers would want the documentation for the XML and the data-types for various fields in the XML & restrictions should be told to them in plain, simple English rather than technical XSD language (e.g. our customers don’t want to know what is a simple type or a complex type, or what is a facet or namespace, or if one XSD includes another XSD or inherits from another XSD etc). However, the problem we get with most of the documentation tools available online (apparently, including Stylus Studio) is that they generate a lot of XSD-style stuff which we don’t want to see. Is there a way to use or customize the tool to serve our purpose?

E.g. if we provide “customer.xsd” to the tool, then the generated document should only say that CUSTOMER has an element called NAME which is a string that can take upto 259 characters, plus annotations – that’s all we want! Instead, when I use most of the available tools (including Stylus Studio), they generate a document saying that the complex type “customer_type” has an element called “NAME” which is of simple type “fixed_length_260_string”, and further, “fixed_length_260_string” has a restriction base of “xs:string” and has a facet maxLength = 259 but we are not interested to read all of this as our goal is to document the corresponding XML file “customer.xml” in simple English easily understandable by the customer and not the XSD itself.

We have used annotations for all our types. E.g. the simple type “fixed_length_260_string” has an annotation “String (upto 259 characters)”, so in the documentation of the data-type of element NAME, if we can see this “String (upto 259 characters)” instead of “fixed_length_260_string”, that would also be good (probably a workaround) and should serve our purpose – though I am not sure if such a workaround could help in all cases.

(2) Another expectation from the tool is that if, in our new product release, we add/edit/delete a few elements in our “customer.xsd” file, then by providing the old & new “customer.xsd” files, we should be able to generate a document showing the differences in our XML file between the two releases (i.e. newly added fields, deleted fields and modified fields) – most likely in a tabular format and which can be saved (again, as explained above, in XML style, not XSD style syntax).

(3) We also want to generate sample XML files by providing the XSD file as an input. E.g. if we provide “customer.xsd” as input to the tool, it should be able to generate a few example files e.g. customer001.xml, customer002.xml, customer003.xml etc with the sample customer data contained in those files as per the syntax & restrictions defined in the XSD file provided to the tool.

I would appreciate your quick response. Thanks.

Kind Regards,

Naveen Malhotra
Aircom International,
Gurgaon, India



Posttop
Ivan PedruzziSubject: Enquiry about XSD documentation features
Author: Ivan Pedruzzi
Date: 22 Jun 2011 10:45 PM


Stylus Studio does not provide what you are looking for neither any other tools for documenting XSD.

You will need to build your own either using XSLT or XQuery.

Hope this helps
Ivan

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.