469,343 Members | 5,406 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,343 developers. It's quick & easy.

Create XML by XSD and XSLT..Is it Possible?

my objective to send the xml from client to third party application where my appln is the interface. Both formats of XML are different. So my interface will convert the incomming XML to third party format. So while receiving the XML from client , i had the XSD with me so that the xml send by the client is validated. once it is correct.
I have to create a xml accepted by third party appln . I had a XSD of third pary appln so i created a XSLT to convert the incomming xml to third party format.

if there is any changes in the third party xsd i have to change the XSLT also. is there any way to do it automattically.

LIke i will upload the new third party XSD to my appln so that my existing appln should run properly?

Pandi G S
Mar 12 '07 #1
2 6437
839 Expert 512MB
Welcome to TSDN...

If you want to dynamically generate an XSL, depending on XSD, it's not easy.
Good question...
The XSL doesn't know what the XSD contains, since the XML file is the only one that have a reference to the XSD.
Since the XSL is like a data filter / formatter to get the desired output presentation, I recommend to use one XSL template for same-structure XML files. Otherwise, unexpected results can appear.

However, the same XSL can check for existence of nodes that are missing from a certain XML, so that it can be applied for different-structure XML files (that reference different XSD schema).
But, you should know what will the XML structure be, before building the XSL template.
Mar 12 '07 #2
839 Expert 512MB
Did you succeed to solve the problem ?
If yes, please let me know, in order to close the thread.
Mar 21 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Adam Retter | last post: by
7 posts views Thread by pintihar | last post: by
2 posts views Thread by Richard L Rosenheim | last post: by
3 posts views Thread by Ian Roddis | last post: by
37 posts views Thread by Steven Bethard | last post: by
4 posts views Thread by Joseph J. Kesselman | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.