Transform XML using XSL, output XML

Hi all,
I have an xml document and I want to transform it using an xsl file. As a result I want an xml document, it's possible? Anyone could help me?

That 's exactly what XSLT does. Learn more about it here: http://www.ibiblio.org/xml/books/bible2/chapters/ch17.html
Good luck.

Similar Messages

  • How to convert to ' ' in xml using xsl.

    Hi all,
    I have a string downloaded which has the following string
    String= text1 <I> text2 </I&it;
    I have italics tag in my xml file. But my browser does not identifies italics. So i decided to comment out italics tag in my xml using xsl
    So what i need is
    String = text1 <!--I-->text2<!--I-->
    basically to comment out italics tag alone.
    How can i replace <I> to <!--I-->?
    Is there any way in xsl to do the above in a string?
    or
    Any other ways where i can just remove <I> in my out xml file using xsl?
    Thanks in advance.
    Menaga.

    Hi,
    The ultimate solution would be that you also install also a cocoon server (http://cocoon.apache.org/), but that might be overkill.
    Have a look at /people/sap.user72/blog/2004/11/10/bsphowto-generate-pdf-output-from-a-bsp for detailed info on creating PDF from BSP.
    If you want to use XSL(-FO), you might have a look at things like http://alt-soft.com/products_xml2pdf.jsp to be called as external command.
    Eddy

  • Error occured while transforming payload using XSL

    Hi,
    When i deployed the SOAOrderBooking BPEL process, an instance created successfully in BPEL console (after submitting orders successfully), but when i clicked the instance window in ESB control to confirm that the service instance successfully received the order and initiated the SOAOrderBooking BPEL process, i can see 2 instances there OrderBookingESB and FulfillmentESB, so now the issue is the FulfillmentESB instance created with some error which is given below:
    Error Message
    Error occured while transforming payload using XSL "esb:///ESB_Projects/SOAEssentials_FulfillmentESB/PurchaseOrder_To_FedexshipmentCollection.xsl". Reason : Could not load XSL transform into the cache for XSL/XSLT "esb:///ESB_Projects/SOAEssentials_FulfillmentESB/PurchaseOrder_To_FedexshipmentCollection.xsl"! Reason : org.apache.slide.structure.ObjectNotFoundException: No object found at /files/ESB_Projects/SOAEssentials_FulfillmentESB!
    at oracle.tip.esb.server.service.EsbRouterSubscription.transform(Unknown Source)
         at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(Unknown Source)
         at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(Unknown Source)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(Unknown Source)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(Unknown Source)
         at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(Unknown Source)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source)
         at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(Unknown Source)
         at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(Unknown Source)
         at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(Unknown Source)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(Unknown Source)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(Unknown Source)
         at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(Unknown Source)
         at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(Unknown Source)
         at oracle.tip.esb.server.dispatch.BusinessEvent.raise(Unknown Source)
         at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.raiseEvent(Unknown Source)
         at oracle.tip.esb.server.service.impl.soap.EventOracleSoapProvider.........
    Besides after submitting orders, when i clicked "View Current Orders", iam getting 500 internal server error: Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    If anyone know how to solve this issue plz let me know...
    Thanks in advance....
    - Indhu
    Message was edited by:
    Indhu

    Looks like you might not have imported the xsl within the project. When you import the files from outside your project you have to have "Add to project" checked.
    Check if you see the xsl file within the project folder.
    DP

  • XSL-1009 error in XML to XML using XSL

    I'm using XSL to transform one XML format to another using and XSL transform file. I'm initiating this with ORAXSL in.xml transform.xsl out.xml. The XSL file has in it:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.oracle.com/XSL/Transform/Java" version="1.0">
    <xsl:import href="../generic/parsePOHeader.xsl"/>
    <xsl:import href="../generic/parsePOLine.xsl"/>
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    ORAXSL gives an error of XSL-1009: Attribute xsl:version not found in XSL:Stylesheet.
    Putting an XSL: prefix on the version doesn't help. A search for help on this site had a solution for XSL that create HTML.
    Has anyone else solved this problem?

    Thanks everyone for th ereply. Yes, I tested the mapping in integration bulider and it works fine. Even the file conversion works fine intermittantly! Sometimes it converts successfully and wrties file to target location and sometimes I get this error. I checkd in sxi_cache and I see the mapping xsl files there. I jus had basis reboot PI server and run some cache commands but still same problem! Also, when I have to files in source directory sometimes it converts both, sometimes one and sometimes both fails! I haveno clue what els to try.
    What are adapter nodes and wher can I check for that?
    Thanks.
    Mithun

  • Combining xml using xsl

    I have two xml files...
    File1.xml
    <table>
    <field1 name="id">
    <filed2 name="name">
    </table>
    file2.xml
    <table>
    <field1 type="int">
    <field2 type="char">
    <index ....>
    </table>
    I want to read file1.xml and update the field
    attributes in file2.xml to contain the name attribute
    and write the whole thing to file3.xml
    So my output file3.xml should look like
    file3.xml
    <table>
    <field1 name="id" type="int">
    <field2 name="name" type="char">
    <index ....>
    </table>
    Any ideas as to how do i do it??
    Sweetie2

    There's an excellent mailing list where you can ask questions about XSL. Sign up for it here:
    http://www.mulberrytech.com/xsl/xsl-list

  • Embedding inline HTML data in XML using the mx:XML tag with &lt; and &gt;

    What is best practice for embedding HTML within the
    <mx:XML> tag? Programmatically, I can implement this
    successfully:
    [Bindable]
    public var xmlDP:XML = <component data="&lt;" />;
    However, I get the following error if I try to store the same
    data inline in an mx:XML tag, as such:
    <mx:XML id="xmlDP">
    <component data="&lt;" />
    </mx:XML>
    Error #1095: XML parser failure: Unterminated attribute.
    If I change the MXML tag as follows, it works fine:
    <mx:XML id="xmlDP">
    <component data="&amp;lt;" />
    </mx:XML>
    Unfortunately, I also can not source the mx:XML tag to an XML
    file which uses &lt; or &gt; codes, as it yields the same
    results. This leads me to believe that the <mx:XML> tag does
    not support the special character codes for < and >, but why?
    Incidentally, this code also gives a 1095 error:
    <mx:XML id="xmlDP">
    <component data="&#0060;" />
    </mx:XML>
    This is causing an issue with my source data as it is not
    hand typed into Flex, and standard XML supports the &lt; and
    &gt; codes. I have tried a full HTML string, as shown below,
    but this also generates the error:
    <mx:XML id="xmlDP">
    <component data="&lt;b&gt;Test&lt;/b&gt;"
    />
    </mx:XML>
    Many thanks for any input you may have!

    I’m generating the XML source file with
    Microsoft’s XML Notepad 2007. It will encode invalid special
    characters automatically. My understanding is that this is the
    proper way to handle the less than symbol in a XML string, that is
    to say using the &lt; code.
    With respect to the escape and un-escape methods, I am able
    to successfully implement these in AS, but not in MXML. This makes
    sense considering they are AS methods, but I was hoping to be able
    to do something like:
    <mx:XML id="xmlDP">
    <component data="escape('<');" />
    </mx:XML>
    This gives the following compilation error:
    The value of attribute "data" must not contain the '<'
    character.
    As does using the escape character as such:
    <mx:XML id="xmlDP">
    <component data="\<" />
    </mx:XML>
    Below is an example of what the escape character may be used
    for in AS:
    var myString:String = "\"";
    trace(myString);
    // result: "
    Likewise, I can escape the < character as such:
    var myString:String = escape("<");
    trace(myString);
    // result: %3C
    <mx:XML id="xmlDP">
    <component data="%3C" />
    </mx:XML>
    trace(un-escape(xmlDP.@data));
    // result: <
    As you can see, using %3C and unescaping in AS will yield the
    correct result; however, this is not a practical method of
    representing the data in MXML as I would have to write an AS method
    to un-escape the XML string anyway, so I might as well just store
    the data in AS to begin with. I was hoping for a way to source an
    mx:XML object, without having to load it into ActionScript
    manually. Here’s an example of the functionality I would
    expect:
    <mx:XML id="xmlDP">
    <component data="&gt;" />
    </mx:XML>
    trace(xmlDP.@data);
    // result: >
    Only this does not work for the less than symbol. I’m
    assuming at this point that this is a bug in the Flex compiler.
    Thanks again for your help troubleshooting this one!

  • Query resultset to xml using java and XML schema

    Hi,
    I query data using JDBC and I want to store it to an XML file which has a well defined XML schema. I searched a lot in the forum but did not find an answer. Please guide me to create this program.
    I have managed to use JDBC to get result set but I do not know how to export is to XML using XSD and Java.
    Please help.
    Regards,
    Ravi

    I have managed to use JDBC to get result set but I do
    not know how to export is to XML using XSD and Java.Export using XSD? Schemas are for validation.
    Iterate through the result set, and build up the XML stream by creating an entry for each row.
    Another way to do it is to load the ResultSet into a Java object and serialize that to XML using something like XStream.
    %

  • Java.lang.OutOfMemory error when transforming xml using xsl with Weblogic 6.1 sp2

    Hello,
    I have an OutOfMemoryError when applying an xsl transformation to generate html
    code in a web page. I'm running Weblogic 6.1 sp2
    I think the problem comes from the objectin which th html is stored during the
    transformation. The problem only occurs from a minimal xml size. I could fix
    it by increasing JVM allocated size but I would like to find a more flexible solution.
    If I know an other way to solve this problem, I really would appreciate !
    Thanl you,
    Laurent.
    [AgentsGeres.jsp]

    Hello,
    You might try asking your question in the JSP newsgroup:
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.jsp
    There just may not be a more flexible solution :-)
    This doc may be of some value, see chapter 2:
    http://edocs.bea.com/wls/docs61/pdf/perform.pdf
    HTH,
    Bruce
    Laurent Gosuin wrote:
    >
    Hello,
    I have an OutOfMemoryError when applying an xsl transformation to generate html
    code in a web page. I'm running Weblogic 6.1 sp2
    I think the problem comes from the objectin which th html is stored during the
    transformation. The problem only occurs from a minimal xml size. I could fix
    it by increasing JVM allocated size but I would like to find a more flexible solution.
    If I know an other way to solve this problem, I really would appreciate !
    Thanl you,
    Laurent.
    Name: AgentsGeres.jsp
    AgentsGeres.jsp Type: Hypertext Markup Language (text/html)
    Encoding: base64

  • IDML modification using xsl and xml

    Hi All
    I am new to IDML development and get stuck at first step.
    I know that IDML becomes a bunch of xml files so if I create a template and Export it as IDML and for processing the job, I want to modify the story xml file among all the xml files which has some special content in it so is it posible to change only that particular xml file using any java sample example given in SDK or other class files which has this feature ??
    One more question, might be novice, what is use of schema in all IDML process and how to generate the schema using the script given in SDK ??.
    Many Thanks in advance
    Mac

    Hi Frank,
    I assumed I would run into problems like this, so I've decided to transform XML in backing bean and send it to response's output stream and this works for me. Now I'm struggling to get my css file in this backing bean so I can use it as a parameter in my XSLT transformation. We have a css file that ADF loads, can you tell me how do I get a reference on it on a backing bean?
    Thanks,
    regards!

  • Using XSL on XML validated against XSD

    Transforming XSD validated XMLType Data
    Re: example XSL in Chapter 6 that transforms XML with associated XSD schema definition (Oracle 9i XML Database Developer's Guide)
    I noted that this XSL uses only the "general" node identification functions (e.g., name() ) to access nodes in the <xsl:value-of select..>. I have also noted that standard XSL templates from other sections of the documentation, for example in Chapter 3 and in Appendix D, do not work with an XML which is validated against an XSD schema.
    Can anyone give me an example <xsl:value-of select..> that addresses a specific node in the "purchase order" example, like the shipTo, name, street -- or any other specific node. This is critical since there is always bound to be node-specific processing in any transformation, and this is not demonstrated by any example of XML which has been validated against an XSD.
    I have tried this endlessly on my own examples of XML w/XSD validation. Even if the value-of select="name(.)" tells you that the name of the node is "FooBar", you cannot use FooBar as a select test to do FooBar specific processing.
    Help?????

    Not quite understand your question. Can you send me the example doc?

  • How to turn off XML tag when outputting xml nodes?

    I'm outputting some xml data and each time ColdFusion adds the <?xml version="1.0" encoding="UTF-8"?> tag. Is there any way to turn this off?

    It's difficult to tell what are are doing and how best to remedy it without you giving us at least some idea what your code looks like.
    Adam

  • Cannot view PDF created by passing xml and XSL-FO using UTL_HTTP

    Hi,
    Using UTL_HTTP Iam trying to contact a servlet which uses the input XML and XSL/FO to produce a PDF.However, when I run the procedure , I get the following error 'File does not begin with -%PDF' ? I checked the output on the console and the blob values does not start with %PDF . Below is the sample from my code , please let me know if Iam commiting a mistake somewhere. I confirmed that the servlet itself is working fine by confirming with test webpage that takes xml and stylesheet input and generates a PDF when 'submitted' to servlet on the click of a button.
    INSERT INTO TESTPDF ( PDF_REPORT ) VALUES ( Empty_Blob() ) RETURNING PDF_REPORT INTO vBlobRef;
    vReportURL :='/rufop/fop?xml='||xmldoc||'&xsltRPath=../../test/PAXSL.xsl';
    req := UTL_HTTP.BEGIN_REQUEST (url=>vReportURL, method=>'POST');
    resp := utl_http.get_response(req);
    loop
    begin
    Utl_Http.read_raw(resp, vData);
    Dbms_Lob.writeAppend ( lob_loc => vBlobRef , amount => Utl_Raw.length(vData) , buffer => vData );
    exception
    when utl_http.end_of_body then
    exit;
    end;
    end loop;
    Utl_Http.end_response(resp);
    owa_util.mime_header('application/pdf',false);
    htp.p('Content-Disposition: inline; filename="test.pdf"');
    htp.p('Content-Length: '|| dbms_lob.getlength(vBlobRef));
    owa_util.http_header_close;
    wpg_docload.download_file(vBlobRef);
    Thanks in advance,
    Jen

    Hello guys! I have been assigned the same task,i.e to generate pdf through xml using xsl stylesheet.
    I have a procedure which is creating the xml and the stylesheet. But I have no idea how to write the procedure which passes this xml to fo engine. I am very new to this. Can anyone please share your thoughts with me so as how to accomplish this? By reading blogs on internet I figured I would have to use UTIL_HTTP but don't know how.
    Sunny
    Edited by: 887252 on May 29, 2012 1:24 AM

  • XML page cannot be displayed cannot view XML input using XSL style sheet Please correct the error and then click the REfresh

    XML page cannot be displayed cannot view XML input using XSL style sheet Please correct the error and then click the REfresh

    Is the error message displayed in Firefox or in IE, or in a customized window that doesn't identify the browser?
    ''If it displays in Firefox:''
    It's possible that the Troubleshooter doesn't work correctly unless IE is your default browser. You could test that possibility by having IE make itself the default and testing the Troubleshooter again.
    ''If it displays in IE or embedded in another Microsoft application:''
    In a web search I found these suggestions:
    (1) Reset your Internet Explorer settings, according to http://answers.microsoft.com/en-us/ie/forum/ie8-windows_7/cannot-view-xml-using-xsl-style-sheet/ccfe80c6-c0db-4594-a7e3-475f9eac0e85
    (2) Try the System File Checker, according to http://ask-leo.com/why_do_i_get_the_xml_page_cannot_be_displayed_after_running_a_microsoft_troubleshooter.html
    Any luck?

  • Problem using xsl to convert xml to xml

    I have and xml doc that has a format similar to this:
    <HEADER>
    <ORDER_NUMBER>
    <ORDER_DATE>
    <LINE>
    <LINE_NUMBER>
    <ITEM>
    </LINE>
    <LINE_NUMBER>
    <ITEM>
    </LINE>
    </HEADER>
    When I convert from xml to xml using xsl I do not get the second occurence of <LINE>, everything else looks fine.
    Please help.
    Thanks, John

    Hi John,
    I also have problems to convert xml to xml by xsl at command-line interface as follows.
    CLASSPATH=$ORACLE_HOME/rdbms/jlib/xsu12.jar:$ORACLE_HOME/lib/xmlparserv2.jar:$ORACLE_HOME/jdbc/lib/classes12.zip
    java oracle.xml.parser.v2.oraxsl source.xml -s myxsl.xsl destination.xml
    and I received error message as "Error occurred while processing myxsl.xsl: Error in expression: '*|/'."
    Actually, the source xml file and xsl script I used were copied from the book "Professional XML".
    Do you know what's the problem and could you show me setting for the classpath?
    Thanks.
    Yi

  • Problem for XSL copying  XML file with Error in expression '*|/'.

    Hi,
    I am trying to convert xml file to another xml through command-line interface but failed.
    java oracle.xml.parser.v2.oraxsl data.xml data.xsl data_new.xml
    My sample xml and xsl files are:
    1. XML file
    <employee_data>
    <employee_row>
    <employee_number>7950</employee_number>
    <employee_name>ABC</employee_name>
    <employee_title>PRESIDENT</employee_title>
    <manager>1111</manager>
    <date_of_hire>20-JAN-93</date_of_hire>
    <salary>65000</salary>
    <commission>1000</commission>
    <department_number>10</department_number>
    </employee_row>
    </employee_data>
    2. XSL file
    <?xml version="1.0" ?>
    <xsl:stylesheet xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="*">
    <xsl:copy>
    <xsl:apply-templates>
    <xsl:sort select=".//employee_name"/>
    </xsl:apply-templates>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    The error message:
    Error occurred while processing data.xsl: Error in expression: '*|/'.
    I used a sample XSL files copying from a XML book to do the convert but got the same error.
    Does anyone know how to fix this problem? I'll appreciate it very much for your help.
    Thanks.
    Yiguang Zhong

    Hi swanelvis ,
    I have the same issue. Were you able to resolve this ?
    Thanks

Maybe you are looking for

  • "Redo" keyboard shortcut not working?

    Since the most recent update in Premiere Pro CC my "Redo" keyboard shortcut (ctrl-shift-Z on PC) no longer works. I've check the keyboard shortcuts and it's still mapped there correctly, it simply doesn't work, and this is massively slowing down my w

  • HSD DB Replication from Logger

    i have built new HDS and connect to logger, replication have started form that day when i start the HDS serices, not all the previous data which logger has. how to get all the data from logger to HDS? FYI: ICM version is 8.5.4 Thanks, Vishnu.

  • Trap settings in illustrator?

    I have made a logo in illustrator. It is a 3 color logo. I have a green box with yellow shape in it. This logo is placed in InDesign. The press operator would like a trap. How do I do this? Do I change settings in illustrator or in InDesign? And then

  • Lightroom Contact Sheet save????

    Just started in lightroom (Win XP). Cannot find any way to save a contact sheet??? Am I stupid?? Thanks in advance, Nigel

  • How to get up-to-date help menu in Illustrator CC?

    Launching Illustrator Help in CC (International English) opens a PDF file, in which "What's new" tells me what is new in CS6 and CS5. This does not seem right. Is there something I can do to access the right help system for Illustrator CC?