Creating javadoc like document from XML Schema(\*.xsd)

This is a sequel to my similar tool for DTD entry. There is one for XML Schema called xsddoc. This time, I will use a XML Schema defining BPEL which I found at OASIS site.

$ gtar xvzf xsddoc-1.0.tar.gz
$ cd xsddoc-1.0
$ wget -nd http://docs.oasis-open.org/wsbpel/2.0/CS01/process/executable/ws-bpel_executable.xsd
$ sed 's/\^M//' bin/xsddoc > bin/xsddoc.unix // that's Control-M
$ chmod +x bin/xsddoc.unix
$ mkdir bpeldoc
$ bin/xsddoc.unix -t "BPEL Execution" -o bpeldoc -verbose ws-bpel_executable.xsd
xsddoc starting.
process attribute {http://www.w3.org/XML/1998/namespace}lang from file http://www.w3.org/2001/xml.xsd
process attribute {http://www.w3.org/XML/1998/namespace}space from file http://www.w3.org/2001/xml.xsd
process attribute {http://www.w3.org/XML/1998/namespace}base from file http://www.w3.org/2001/xml.xsd
process attribute {http://www.w3.org/XML/1998/namespace}id from file http://www.w3.org/2001/xml.xsd
process attributeGroup {http://www.w3.org/XML/1998/namespace}specialAttrs from file http://www.w3.org/2001/xml.xsd
process element {http://docs.oasis-open.org/wsbpel/2.0/process/executable}process from file ws-bpel_executable.xsd
process complexType {http://docs.oasis-open.org/wsbpel/2.0/process/executable}tProcess from file ws-bpel_executable.xsd
[...]
$ du -sk ws-bpel_executable.xsd bpeldoc/\*
46 ws-bpel_executable.xsd
5 bpeldoc/help-doc.html //it created a lot of data so I'm not uploading them to blog. Sorry!
1709 bpeldoc/http___docs.oasis-open.org_wsbpel_2.0_process_executable
46 bpeldoc/http___www.w3.org_XML_1998_namespace
40 bpeldoc/index-all.html
1 bpeldoc/index.html
21 bpeldoc/overview-all.html
1 bpeldoc/overview-namespaces.html
7 bpeldoc/schema-summary.html
2 bpeldoc/stylesheet.css
$ firefox bpeldoc/index.html

 


There you go! The xsddoc page says there's a new commercial development called xnsdoc. It may produce better output.

Comments:

You should also check out the Adivo TechWriter for XML (http://adivo.com/techwriter-for-xml-schemas.aspx). It's an awesome tool for the price.

Posted by J.H. on January 23, 2009 at 06:42 PM JST #

Thanks for the info. Looks interesting.

Posted by Katsumi INOUE on January 26, 2009 at 02:44 AM JST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today