[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xslt for xsd (schema)

Subject: RE: xslt for xsd (schema)
From: <tomas.vanek@xxxxxxxxxxxxx>
Date: Wed, 12 Oct 2005 13:18:52 +0200
xslt for xsd
If you're going to write the XSLT, maybe an inspiration could be the
wsdl-viewer: http://tomi.vanek.sk/index.php?page=wsdl-viewer
The message rendering parses XSD and converts it into HTML.

tomi


-----Original Message-----
From: Vikash Gupta [mailto:vikashgupta@xxxxxxxxxxx]
Sent: Tuesday, October 11, 2005 2:50 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  xslt for xsd (schema)

I am trying to write an xslt code that will flatten my schema document.
A
simple example:

Schema document

<xs:element name="product1">
<xs:complexType>
<xs:sequence>
<xs:choice>

<xs:element name="amount" type="Amount"/>
<xs:element name="dimension" type="Dimension"/>

</xs:choice>
</xs:sequence>
</xs:complexType>
</element>

<xs:element name="Amount" type="xs:double"/>
<xs:element name="Dimension>
<xs:attribute name="length" type="xs:double"/>
<xs:attribute name="width" type="xs:double" use= "optional"/>
</xs:element>

I want to go through all the nodes and generate a text file of all the
information (name, data type, enumeration, Path information) for all the

attributes and elements under product1 to the lowest node, so that I
don't
have to refer to my schema document everytime I want to write an XML
document for product1.

Sample output wanted

Name, vnml_type, data_type, vnml_path
amount,element,double,product1/amount
length,attribute,double,product1/Dimension
width,attribute,double,product1/Dimension

Has anybody done it before. Any suggestions or are there any software or

freeware available to do this. Thanks in advance.

Vikash

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/



This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise private information.  If you have received it in
error, please notify the sender immediately and delete the original.  Any
other use of the email by you is prohibited.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.