IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

converting XSD to XLSX Options · View
michel777
Posted: Saturday, January 23, 2016 4:11:04 PM
Rank: Advanced Member

Joined: 1/23/2016
Posts: 54
Hi,

how to transform an XSD into XLSX (see below) ?

I have only XMLSpy 2012 Professional

Thanks a lot in advance,

Michel

element:
name -> column1
type -> column2
minOccours -> column3
maxOccours -> column4
javadoc -> column5



<xsd:complexType name="aaa">
<xsd:sequence>
<xsd:element name="xxx1 type="yyy1">
<xsd:annotation>
<xsd:appinfo>
<jaxb:property>
<jaxb:javadoc>... here text ...
</jaxb:javadoc>
</jaxb:property>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element name="xxx2" type="yyy2>
<xsd:annotation>
<xsd:appinfo>
<jaxb:property>
<jaxb:javadoc>... here text ...
</jaxb:javadoc>
</jaxb:property>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>

</xsd:sequence>
</xsd:complexType>
island
Posted: Monday, January 25, 2016 10:14:28 AM
Rank: Newbie

Joined: 10/28/2002
Posts: 1,283
Location: AT
If you require schema documentation you can use the "Generate DTD/Schema" in the Schema Design menu of XML Spy. With this functionality you can generate schema documentation in HTML; WORD, RTF or PDF formats.

If you only have XML Spy, and if you MUST have an xlsx as output I would suggest the following:

1) write an xslt stylesheet to transform the xsd to a delimited text file

2) open the delimited text file in Excel then save as an xlsx.

Attached is a simple example of a handwritten xslt stylesheet "test.xslt". If you transform the attached "test.xsd" file with "test.xslt" you will end up with an output "test.txt" which can then be opened as a delimited text file in Excel and then saved as an xlsx.

File Attachment(s):
test.zip (2kb) downloaded 1,759 time(s).


michel777
Posted: Tuesday, January 26, 2016 6:29:51 PM
Rank: Advanced Member

Joined: 1/23/2016
Posts: 54
Island,

thanks a lot for your effort !!!!

warm regards,

Michel
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.