Generate XSL from XSD ?

Please let me know the steps involved .
I need to generate XSL's from XSD's created in my application where am using IBM RSA 7.0 .
After generating XSD am converting the same into XML but i could be wrong doing so as it shows errors in my xml file.
My approach is to generate XML file from XSD and then using XSLT feature of RSA create xsl files. But it's not working as am getting errors.
Any inputs or example or different approach would help greatly.
My Thanks in advance for tips.

Have a look at the topic XML Schema Evolution in the XML DB Development Guide that is the same version as your database. Use inplace Schema evolution if your on 11gRx

Similar Messages

  • Generating XML from XSD

    Hi,
    I'm not sure it's possible to do what I want, but can anyone confirm / deny this:
    I have a series of XSDs that I can load into the database. I want to be able to generate XML that conforms to the XSD, by passing in a series of variables - the values that I want to substitute in the XML are not held in the database, but are all calculated in PL/SQL.
    A snippet from the XML is:
    <Name>
      <PersonDescriptives:PersonNameTitle/>
      <PersonDescriptives:PersonGivenName/>
      <PersonDescriptives:PersonFamilyName/>
    </Name>I want to be able to pass in variables to supply the values in the XML, and generate it from the XSD. Is this possible?
    My gut feeling (and initial quick analysis) says that it's not - the option I've come up with so far is simple string manipulation and then I could validate the XML against the XSD to ensure that it's valid, but then I have the issue of what to do if it isn't valid!
    Any thoughts gratefully received,
    Matt
    Edited by: Darryl Burke -- advertisement and links removed

    Thanks Mark.
    I've look at the examples etc already, but they all seem to only cater for selecting from a database table. Since all my values are in PL/SQL variables rather than being in tables, I guess I could select from DUAL the whole time, but the performance of having to do it that way rather than just concatenating text together doesn't seem to make it worthwhile.
    Think I'll just stick with using string manipulation to create the XML.
    Matt

  • Generate xml from xsd file

    i would like to make my java application automaticaly convert a given .xsd file to an .xml one.
    i know that with jdev you can generate an xml file from xsd one, and i want my application do the same thing.
    i know also that i can use JAXB: first i bind the xsd file then i marshall the java class created to obtain xml. But i dont know how to do it.
    is there a simple way to use the "things" behind the jdev xml generation from xsd.

    Please refer
    http://www.developer.com/java/web/article.php/3722211/Using-JAXB-in-JDeveloper-1013.htm
    JDeveloepr 11g includes JAXB 2.0.

  • Programmatically generating XML from XSD

    Hello, everyone:
    I saw the JDev10.1.3 demo for registering an XSD and then
    saw how to manually create an XML instance in JDev.
    Is there a mechanism (e.g., a command line utility) for
    generating an entire XML instance that is conformant to
    a registered XSD? If so, it would be nice to have the
    ability to create multiple conformant XML documents,
    but that might be too much to ask for right now:)
    Regards,
    Oswald
    ps: I have an XSD that imports another XSD and it seems
    that I was able to register this succesfully in JDev10.1.3,
    whereas it did not work when registering
    the XSD in an Oracle 10G instance via 'registerSchema'.

    Hello:
    Thanks for the update, and I tried the following:
    java oracle.xml.jaxb.orajaxb -schema entity.xsd -targetPkg stuff
    using the following CLASSPATH:
    c:\jdev\lib\xmlparserv2.jar;c:\jdev\lib\xschema.jar;c:\jdev\xdk\lib\xml.jar;c:\j2sdk1.4.2_01\lib\tools.jar;c:\
    jdev\lib
    and got this error message:
    XML-32011: (Error) a problem was encountered because an abstract complex type "Entity" is referenced from the element "e
    ntity-elem".
    and I think it's due to the line in entity.xsd:
    <xsd:element name="entity-elem" type="Entity" abstract="true"/>
    where Entity is defined as follows:
    <xsd:complexType name="Entity" abstract="true">
    <xsd:sequence>
    <!-- Identification -->
    <xsd:element name="uid" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="true"/>
    <xsd:element name="entity-type" type="xsd:string" minOccurs="1" maxOccurs="1"/>
    <xsd:element ref="property-value" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    </xsd:complexType>
    Suggestions welcome...
    Regards,
    Oswald

  • Generating xml from xsd automated

    with jdev i can generate a xml dummy document from some xsd-source. i want to do the same in a java program. is there by any chance a (the) library where i can access such a method? i know about jaxb class generation, but that is not what i need.
    thanks

    i propably didnt make myself clear enough, sorry about that. :)
    your link (jaxb):
    1. generate java classes (beans)
    2. write some code calling all the right setter-methods of the generated classes to fill your xml-object.
    what i need:
    1. write one method as explained in my earlier posting
    2. compile once, use infinitly for many many different xsds without the need for further coding or recompiling.
    why jaxb doesn't fulfil my requirements?
    1. you have to generate classes for each new xsd you want a xmlsample for.
    2. you have to write new code, calling the correct setters of the generated classes. each time you have a different xsd.

  • Package issue for the generated types from XSD

    Hi,
    We are using top-down approach to generate the webservices using JDeveloper. All our wsdl we are including common XSD which defines a type to store the error information to be sent to the client when webservice fault occurs.
    <FaultType>
    <Errorcode/>
    </FaultType>
    While generating the webservice from WSDL which includes above xsd, A java class is created in the package which is specified in the wizard. For example com.example.FaultType
    Every module is specifying their own package which is resulting in this class being generated in different package though Class definition is same.
    How can we solve this problem. Should we use the namespace to generate the package where this class will be generated always in the same pacakge.
    It is suggested from the documentation that we should explicitly specify the package instead of relying on the namespace.
    Regards
    Ashwani

    Hi Shweta,
    Most likely, you are having an issue with the message format used. The DII sample code that you are using may have been written for RPC/encoded service while the WSDL you are using advertize a service that is using documet/literal message format.
    When you have issues like you have here, the best is to look at the raw payload exchanged between the clients and the service endpoint, and compare them to figure out what differs.
    Payload captured with your DII code:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://addr.webservices.samples.websphere.ibm.com">
    <env:Body>
    <ns0:getAddressFromName>
    <name>hello</name>
    </ns0:getAddressFromName>
    </env:Body>
    </env:Envelope>
    Payload captured with Jdev generated proxy:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://addr.webservices.samples.websphere.ibm.com">
    <env:Body>
    <ns0:getAddressFromName>
    <ns0:name>hello</ns0:name>
    </ns0:getAddressFromName>
    </env:Body>
    </env:Envelope>
    You can see that 'name' uses a prefix in the second sample. You should be able to find your answer on the documentation (http://download-west.oracle.com/docs/cd/B31017_01/web.htm).
    Using DII code requires a much dipper understanding on way XML need to be formated, based on the WSDL. Using the classes generated by JDeveloper will also have the advantage of making it easier to use WS-Security and other advanced features, once you get to the point were you want to consume more complex services.
    Hope this helps,
    Eric

  • How to generate xml from xsd

    Hi,
    Is there any tool to validate the xml file form given xsd.
    Regards,
    Shakir

    did you not ask this before,
    http://forum.java.sun.com/thread.jspa?threadID=791199
    Hi,
    I am new to xml.I want to validate the xml file from
    a given xsd file.
    Is there any tool validate xml file from a given xsd
    file
    Regards,
    Shakir

  • How to generate XSL from java

    Dear All,
    I got the data from a database Actually that are having some conditions.I want to to create xsl style sheet for the condtions ?
    I dont dont know how to sreate xsl fro that one.
    plz help me .thanx in advance

    Do you know you can pass parameters before calling the xsl transformation.
               // Use the factory to create a template containing the xsl file
                Templates template = factory.newTemplates(new StreamSource(
                    new FileInputStream(xslFilename)));
              // Use the template to create a transformer
                Transformer xformer = template.newTransformer();
                xformer.setParameter("key1", valueA);
                xformer.setParameter("key2", valueB);
                // Prepare the input file
                Source source = new StreamSource(new FileInputStream(inFilename));
                // Create a new document to hold the results
                DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                Document doc = builder.newDocument();
                Result result = new DOMResult(doc);
                // Apply the xsl file to the source file and create the DOM tree
                xformer.transform(source, result);
                return doc;and in your XSL you can get the passed value
    <xsl:param name="key1" select="'default value'"/>
    <xsl:param name="key2" select="'other default value'"/>

  • How To Generate XSL for integration from WSDL

    Hi,
    Can anybody help me to how to generate XSL from WSDL file for Integration.....
    Thanks

    You can use Oracle JDeveloper to general XSL against WSDL or some XML tool like XML Spy. There are lots of XSL tools available to do this (some embedded in Eclipse we well)

  • Generating XML instance from XSD

    Hi,
    I want to know ( java program etc ) to generate XML instance from XSD. How tools ( XML Spy, Oxygen ) generate sample XML file from XSD. What APIs can be used for generating XML from XSD and what APIs are used for checking If XML instance conforms to a XSD? Is it big deal to implement it?
    Thanks in advance
    Sandeep

    To validate xml against XSD , I found I can use the existing parsers( using JAXP which has SAX and DOM APIs ) in current JDKs and validate. I still did not find the best way to generate xml from XSD and how tools like xml spy and oxygen generates sample xml file from xsd.
    Thanks
    Sandeep

  • Generate XSL off of an XSD

    Is it possible to generate an XSL from an XSD?

    In principle you probably could, but XSL is open to an enormous amount of variantion in that what you want it done against an XML document...

  • Generate report from database using .xsl style sheet

    I am trying to view test result histories for specific uut serial numbers.
    We are logging all test data to the default access database template that was provided with Teststand.
    Is there a method of generating reports from the database that match the format of those generated at runtime?
    I was surprised to find that the default access database did not contain any gui or pre-made reports matching the xsl style sheets chosen in the report options dialog.
    My database skills are weak, I am able to browse the raw data and I see the relationships between some of the tables, but the prospect of recreating one of the xml report formats in access seems daunting. Am I missing something? what is the best way to print a uut report from test data stored in access?

    Hello msears,
    Thank you for posting on the NI Discussion Forums.  Unfortunately there are no tools available in TestStand for directly converting an Access database to a formatted .xsl report.  It is possible to have a step in a sequence that reads the information from the database, and create the .xsl report as if it had been generated at sequence run-time, by writing those values directly to Locals.ResultList.  Admittedly, this would require some knowledge of Microsoft Access, and the ability to write a program that will extract information from the database, in order to include it as a step in the sequence.
    Is there anything stopping you from creating a formatted .xsl report when the sequence is run (instead of trying to create it from previous data stored in an Access database)?
    Chris_G
    Sr Test Engineer
    Medtronic, Inc.

  • How to generate the BPEL interface from XSD?

    I am new to the BPEL. How to generate the BPEL interface from XSD because I need the inputed payload to have a complex type instead the simple string?
    Thank you

    I made the following change to the xsd file, however when the input type change to emailDataType, it is underline by red color. and the bpm process, activity guide, organization become the unknown project object.
    <?xml version="1.0" encoding="UTF-8"?>
    <schema attributeFormDefault="unqualified"
         elementFormDefault="qualified"
         targetNamespace="http://xmlns.oracle.com/SampleBPM/SampleEmailNotification/SendEmail"
         xmlns="http://www.w3.org/2001/XMLSchema">
         <element name="process">
              <complexType>
                   <sequence>
                        <element name="input" type="emailDataType"/>
                   </sequence>
              </complexType>
         </element>
         <element name="processResponse">
              <complexType>
                   <sequence>
                        <element name="result" type="string"/>
                   </sequence>
              </complexType>
         </element>
    <complexType name="emailDataType" >
    <sequence>
    <element name="toEmailAddress" type="string" />
    <element name="ccEmailAddress" type="string" />
    <element name="emailSubject" type="string" />
    <element name="emailContent" type="string" />
    </sequence>
    </complexType>
    </schema>
    The XSD file is viewed by the design mode is fine on JDeveloper. Please help!

  • Generating JAXB classes from XSD

    I am generating java classes using JAXB binding from XSDs. I organized the classes into 2 packages say package1 and package2
    The XSD to create the package2 is dependent on package1. So I do an include package1.xsd in package2.xsd. With this I am running into an issue with JDeveloper while generating the classes. When I generate classes using package2.xsd, all package1.xsd classes are also generated in the same package. So, I have to manually delete these classes from package1.xsd and add import statements from package1 where required.
    Is there a solutiion/work around available for suppressing duplicate class generation? Any help would be greatly appreciated.

    Try here as well
    https://jaxb.dev.java.net/

  • About generating Java classes from XSD Schema ???

    I need a powerfull tool to generate Java classes from XML Schema. I want that generated classes to have the option to validate XML(to be JAXP1.2 compliant).
    I used XML Spy 5.4 but the generated classes can't validate an XML file.
    Can you help me with other tools that:
    - generate Java classes from XSD
    - generate sample XML from XSD
    - are JAXP1.2 compliant(validate a XML file with a schema)
    Thanks.

    You can also use Castor: http://www.castor.org
    It generates classes from XML Schemas and enables data
    binding without writing any line of a fuckin SAX
    parser :-)I evaluated Castor and JAXB and while JAXB isn't perfect, it's got some things over Castor. Castor almost looks abandonded when I go to the site. The documentation just sort of trails off.

Maybe you are looking for