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
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
James HarrisSubject: How to produce a human-readable table, e.g. MS Word or HTML, from an XSD
Author: James Harris
Date: 17 Apr 2014 03:48 PM
Hi.

Your product description and tutorial videos seem to me to say that I can produce a helpful human-readable table, e.g. MS Word or HTML, from an XSD (I infer "from an XSD alone"). I am trying now to attach my XSD file; perhaps you will see it attached.

I have worked on this for a few hours, watched the video tutorial on Reports, which specifically says it can be done with a "Schema Definition" (presumably he means an XSD file), and found nothing that works. Also, the tutorial video is of a Stylus Studio version very different from the one I just downloaded yesterday.

I have the XS3P.xsl in case that may help, but then I understand I need to convert my XSD file into an XML data file, which I also tried to learn how to do with Stylus Studio and failed, and besides, then I could produce my desired output _without_ Stylus Studio, right? (I agree the XS3P method _originally_ seemed to be more work, but as this task is going for me, that may still turn out to be easier).

Please tell me how to produce, from an XSD alone if possible, a human-readable table with a row for each element in the XSD, and a few columns, e.g.:

Element Name
Data Type
Field Length (e.g. M.N for numeric fields)
Restrictions, e.g. MinOccurs, MaxOccurs, etc.

(all of the above should be simply read from the XSD or filled in with something like "Not specified")

Thanks for any help.

Sincerely,

Jim Harris


UnknownFRAPROPOSEDCrossingDataXSD.xsd
Federal Railroad Administration Xing XSD

Postnext
Ivan PedruzziSubject: How to produce a human-readable table, e.g. MS Word or HTML, from an XSD
Author: Ivan Pedruzzi
Date: 17 Apr 2014 06:08 PM
Hi James,

XSD schemas describe the structure for a set of XML documents which can be used to drive data mapping or to design reports.

There are several methods to generate XML from XSD, one is described here
http://www.stylusstudio.com/xml_generator.html

The closest feature to what you have described is the schema editor Documentation tab which can save as HTML.
http://www.stylusstudio.com/xsd-documentation.html

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Posttop
James HarrisSubject: How to produce a human-readable table, e.g. MS Word or HTML, from an XSD
Author: James Harris
Date: 22 Apr 2014 06:22 PM
Thanks, Ivan, but both shots miss the mark.

I agree, there are several ways to generate an XML data file that is valid according to a given XSD, but that is not what I wanted, and neither Stylus Studio nor XML Generator do what I want/need as far as I can tell, including the elaborate and labor-intensive "XSD Documentation" features of Stylus Studio.

However, I did find an old product (the first usable release I have seen is in 1993) called xsddoc (which the provider _says_ will produce the kind of output I want from _any_ XSD). I am running the version 2.0 product found at

http://xframe.sourceforge.net/xsddoc/index.html

and it does in fact produce an HTML table (which I converted easily to a M$ Word table) almost exactly as I want (it’s still missing the Restrictions, which I will need to add to the Word table manually if I can’t script a way to do it). A little “Replace All” editing was all it took to get the final product.

A more fully-developed commercial product (free for non-commercial use, as is true for our State Agencies) is xnsdoc by Buldocs, which has even more features, so I am giving up on Stylus Studio, but thanks for trying.

I will try to mark this thread CLOSED if I can easily figure out how.

Regards,

Jim

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
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.