This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Generate an xsl from xsd/xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Generate an xsl from xsd/xml" Watch "Generate an xsl from xsd/xml" New topic
Author

Generate an xsl from xsd/xml

vinitha simon
Ranch Hand

Joined: Dec 13, 2007
Posts: 64
Hi,
I would like to know how to generate an xsl from an xsd or a sample xml.

Any help is appreciated!

TIA
Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

Why would you want to do that?

Let me clarify: so you have an XML document containing the details of (say) a business loan. And you have a schema which describes that document. What would this generated XSL document do? I don't get it at all.
vinitha simon
Ranch Hand

Joined: Dec 13, 2007
Posts: 64
The application has an existing service to parse the xml document, In order to use the existing service, I have to provide the xsl, rng and xsd. I have the xsd, and rng, I'm quite unsure how to create the xsl....

Thanks in advance...

Paul Clapham
Sheriff

Joined: Oct 14, 2005
Posts: 19693
    
  10

Well, that isn't surprising because you don't seem to know the rules for creating it. You won't be able to do anything until you find out the rules. Just from your example I don't even see why an XSL is required, let alone what it's supposed to do.
 
Consider Paul's rocket mass heater.
 
subject: Generate an xsl from xsd/xml
 
jQuery in Action, 3rd edition