wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes How to generate XSL file for cxml document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to generate XSL file for cxml document" Watch "How to generate XSL file for cxml document" New topic
Author

How to generate XSL file for cxml document

Naveen K Garg
Ranch Hand

Joined: Nov 28, 2005
Posts: 105
Hi Rancher,

just wanted to know if there are any utilities which can be used to generate xsl stylesheet based on the input xml data.

I am specially looking for a stylesheet which can be used transform some xml data to cxml data format.

Regards
Naveen Garg
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Naveen K Garg:

just wanted to know if there are any utilities which can be used to generate xsl stylesheet based on the input xml data.


XSL structure mainly depends on the output structure , not on the input xml structure.
Input xml is only the place from which the xml pulls data.


Rahul Bhattacharjee
LinkedIn - Blog
Naveen K Garg
Ranch Hand

Joined: Nov 28, 2005
Posts: 105
Hi Rahul,

Yes, you are correct.

It should the output xml document and not input xml document.

do you know any tools which can help me?

Regards
Naveen Garg
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
I am not aware of such a tool.I think its hand coded as because you have to know both the input and output data model.
Lets wait and see what experts on this forum has to say about this.

I have seen tools to make XSD out of xml's and with some minor changes you have the XSD ready.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

Originally posted by Rahul Bhattacharjee:
Lets wait and see what experts on this forum has to say about this.
Rahul, you are one of the experts in this forum.

I have heard of tools where you provide the input and output (as XML or XSD) and then you can interactively specify what you want mapped to what. The result is an XSL that does that mapping. But I have no personal experience with those tools, and in any case you can't expect any tool to produce the XSL without human assistance.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Paul Clapham:
Rahul, you are one of the experts in this forum.

Oh! thank you

Naveen K Garg
Ranch Hand

Joined: Nov 28, 2005
Posts: 105
Hi Rahul,

I found the following online tool for XML to XSL generation.

XML to XSL

I havn't tried it extensively but it seems to do the job.

Regards
Naveen Garg
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
Originally posted by Naveen K Garg:
Hi Rahul,

I found the following online tool for XML to XSL generation.

XML to XSL

I havn't tried it extensively but it seems to do the job.


Thanks Naveen for keeping posted.
I will evaluate it sometime.

;)
 
GeeCON Prague 2014
 
subject: How to generate XSL file for cxml document