Result of processToXML and process differs

I have a problem in using XSQLRequest :
the results given by process and processToXML are differents
I'd like to use processToXML but in the following example i can't get the right result with it. The problem occurre when using disable-output-escaping in the xsl file
My aim is to query something in my database which return a VARCHAR content XML text
My xsql file is :
// File test.xsql
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<page connection="demo" xmlns:xsql="urn:oracle-xsql">
<MyQuery>
<xsql:query >
<![CDATA[
select '<TEST> toto </TEST>' AS toto from dual
]]>
</xsql:query>
</MyQuery>
</page>
For that i use this xsl file
// File test.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="MyQuery">
<MyQuery>
<xsl:value-of select="." disable-output-escaping="yes"/>
</MyQuery>
</xsl:template>
</xsl:stylesheet>
The expected result is :
<?xml version = '1.0' encoding = 'UTF-8'?>
<page xmlns:xsql="urn:oracle-xsql">
<MyQuery>
<TEST> toto </TEST>
</MyQuery>
</page>
I obtained the expected result in using the process methode of XSQLRequest
but with the processToXML i couldn't obtain it, instead i obtained
<page xmlns:xsql="urn:oracle-xsql">
<MyQuery>
&#60;TEST> toto &#60;/TEST>
</MyQuery>
</page>
Pleas help
Thank you
My java test file
import oracle.xml.xsql.XSQLRequest;
import java.util.Hashtable;
import java.util.StringTokenizer;
import java.io.PrintWriter;
import java.net.URL;
import java.io.*;
import oracle.xml.parser.v2.*;
public class XSQLtest {
private final static void usage()
System.out.println("Usage: \n\t" +
"XSQLtest xsqlFile");
System.exit(1);
public static void main( String[] args) throws Exception {
if (args.length < 1) usage();
File myFile = new File(args[0]);
// Construct a new XSQL Page request
XSQLRequest req = new XSQLRequest(myFile.toURL());
// Setup a Hashtable of named parameters to pass to the request
Hashtable params = new Hashtable();
// TEST with process
System.out.println("TEST with process");
req.process(params,new PrintWriter(System.out), new PrintWriter(System.err));
System.out.println("\n\n");
// TEST with processToXML
System.out.println("TEST with processToXML");
XMLDocument xmlDoc =
(XMLDocument)req.processToXML(params,new PrintWriter(System.err));
xmlDoc.print(new PrintWriter(System.out));
Result :
TEST with process
<?xml version = '1.0' encoding = 'UTF-8'?>
<page xmlns:xsql="urn:oracle-xsql">
<MyQuery>
<TEST> toto </TEST>
</MyQuery>
</page>
TEST with processToXML
<page xmlns:xsql="urn:oracle-xsql">
<MyQuery>
&#60;TEST> toto &#60;/TEST>
</MyQuery>
</page>
null

These two are supposed to differ for this case. When you call processToXML, this avoids the step of serializing the transformed result and instead just returns the transformed, in-memory DOM tree. Since <xsl:output> hints and disable-output-escapin are only relevant when the XSL Processor gets a chance to serialize the output, you have to use process() if you want either of these two to take effect.

Similar Messages

  • Time Division Multiplexing and Processing Different Loops at the same time

            Hi, I am new in Labview so you may find my questions too silly, sorry about that
    I want to design an interface to control the test&measurement devices remotely. I have two desks and there are several devices on these desks. The real problem is to use two different devices at the same time. To do this I heard that I can use time division multiplexing. But I couldn't find enough information about it in Labview. Another advice I heard was to use a matrice and hold the on/off state of the devices in this matrice. 
    Where should I start the design to create such a system? Do you have any advices? Thank you in advance.
    My basic GUI is attached.
    Attachments:
    InterfaceAli.zip ‏42 KB

    As Mike pointed out you cannot communicate in parallel on the GPIB bus - unless you have separate buses for each instrument - and that defeats the purpose of a bus. I am not sure about LXI.
    With regard to your VI:
    1. Do not use global variables to pass your data around.
    2. You should use the Array data type, not the Matrix data type. The Matrix data type in LabVIEW should only be used for matrix mathematical operations (linear algebra) which cannot be easily performed on the array data type. You have many more tools in LV to work with arrays.
    3. The Event structure needs to be in a parallel loop. This is basic data flow. If you do not understand this concept, get some training, either though the online tutorials or through a class.
    4. Use Value Changed events and place the button terminals inside the event case for that control.
    5. The parallel loops need to have a Wait or some other function which causes a delay. Otherwise, the first one to start executing could consume all available processor resources. These are called "greedy loops." 
    6. Use integer data types for case structure selector inputs. Floating point values are coerced to integers at the inputs. If the values resulted from calculations, unexpected rounding effects may occur, resulting in the wrong case being selected. In some cases using type defed enums may be even better. The underlying data is integer and the enum item names show up in the case selector labels, helping to document what the case does or why it was selected.
    7. Remove the timeout case from the event structure since it never executes. Also avoid Use Default if Unwired on the terminal with your matrix (array) data. You never have a situation where an empty array is appropriate.
    Before going any further with the program questions, you need to carefully define your requirements.  How many instruments will you have? How many can be active at one time? What kinds of communication between the program and the instruments is required? This includes commands to the instrument, data returned from the instrument, error handling, and timing requirements. What will be done with the data? Display, save to file, use to automatically control another device? What safety requirements or constraints need to be met? Once you have a good requirements document, then you can begin to determine what kind of program architecture is best suited to meet the needs.
    I suspect that you may be making some things much more complicated than they need to be while ignoring other important issues.
    Lynn

  • Location Heuristics-diff of results in background and foreground

    Hi,
    We have this weekly bacth job of location heu.. just one program. nothing preceding  and succeeding it.
    I find the results in background and foreground different. This is partcularly wrt the receipts being created before the lead time of the loc-product. In the foreground when i delete the same receipts..and re-run the location heuristics, the receipts are correctly created . i.e obeying the lead time.
    Questions:
    - Why does this happen. I am doing this without anytime gap.
    -Are there some settings that are called only in background (e.g from SNP global profile) but not in foreground.
    Let me know if you need to know my SNP global profile settings.
    The imporant ones are
    HEU: Init short qty = Bakward scheduling
    HEU: Order Update =Complete mode
    In the location product master- NO horizons and time fences are maintained for SNP and PPDS.
    Regards,
    Loknath

    Hi Loknath,
    I will try to explain in with simple example.
    Consider there is product xyz which exist at two different locations A & Location B.
    Procurement type:
    at A is Inhouse production
    at B is external procurement from location A.
    Both the location have some forcast/ Demand for the Product suppose 100qty each.
    1. First Sequence:  Now first the Heuristics needs to run at Location B so that there are Destribution receipts planned created  at Location B, In other words, the Demand of Product XYZ will get transferred to Location A in form of Distributed demand Planned.
    Now if you take run on Location A,
    The Total demand  at Location A will be 100 qty (forecast)+ 100qty( Distri.Demand from B)= 200qty  and the Heuristics run will  plan for the total requirement 200 qty and create the planned orders for it.
    2. Second sequence:  if you take heuristics at Location A first & than location B.
    The planned orders generated will be only for Demand at A i.e 100 as Location A is not yet aware of the Distributed Demand which needs to be satisfied for Location B. as you have not taken the run  on location B yet hence the demand is not yet transferred to Location A.
    now if you take  run at location B, the Distri. demand are generated to Location A but not planned or not satisfied.
    Overall you see the wrong results of heuristic if you adapt second sequence.
    So, it become neccesary to determine the right sequence in which the heuristic is taken for different product at different location. to determine this system use SNP low level codes.
    I guess you are aware of low level code in BOM, As without exploding the Parent Material demand you cannot plan exact demand on Child material. similar principle works over here just it applies to Location Products.
    Hope this helps
    Regards
    Kumar

  • Executing Abap Queries in Abap Code and processing the result

    Hi,
    I want to execute ABAP Queries (designed by sq01) in an abap report and processing the result in an internal table.
    How could it be work?
    Thanks a lot for your responses,
    with kind Regards
    Reinhold Strobl

    Hello,
    GO to SQ01 and select your query. Go to Menu QUERY-->More Functions->Display Report Name.
    You can then take that report name and go to SE38. Copy the code before END-OF_SELECTION and then modify as per your own requirements.
    Regrads
    Saket Sharma

  • Different result in IE and Netscape

    Hi,
    I am using JDeveloper 3.2 to create my JSP and BC4J. I deployed them into my web server, but I got different result in IE and Netscape. I amd using web bean method to create my JSP.
    When I view my JSP from IE, everything looks as expected. But when I view them from Netscape, some pages did not display correctly.
    1. For the JSTab, the Netscape displays different color(blue) in the help text area, but the IE display gray color.
    2. If I have a table with many columns (e.g.25) to be displayed and my browser is too small to display them all, the Netscape displays JSRowSetBrowser incorrectly. The top right corner, and bottom right corner did not display at the last column side, instead it displaying in the middle of my JSRowSetBrowser. It also suppressed my one button in the same page. IE displays them all properly.
    How do I fix this problem? Please help.
    I am using webapp/cabo/images/cabo_styles.css as my style sheet.
    Lisa
    null

    I'm not an expert on Netscape, but I would guess that you're problems are simply caused by the differences between IE and NS.
    It is very difficult to write (functional) JS code that works perfectly between the two of them and I bet that JSTab isn't written in such a way.
    You may want to try using your own tab object, we do this by creating a page for each tab and making the actual tabs be links to each page. This avoids the use of JavaScript.
    Good Luck!!!

  • OWB : Runtime Repo for Target and Process Flows on Different M/C

    Hi,
    I have an environment where the Runtime Repositories for the Target Warehouse and Process Flows ( Workflows ) are on different machines. I have deployed :
    * the mappings and Target Tables on the Target Warehouse
    * Process Flows on the Workflow Server which resides on a seperate M/C.
    When I try executing the Process Flows for the Mappings , it errors out indicating that the objects may not have been deployed. Looks like the Process Flows cannot see the Mappings deployed.
    Can somebody help me here ?????

    I think target schema and runtime rep shuould be in same instance

  • TS3694 my iphone 3g fails to restore. i have tried to restore many times and in different computers but at the end of the restore process it keeps giving me an error message- 1015. can anybody help? thx.

    my iphone 3g fails to restore. i have tried to restore many times and in different computers but at the end of the restore process it keeps giving me an error message- 1015. can anybody help? thx.

    The phone was jailbroken. That's what that error indicates. You can't get help here. You can't get help from Apple.
    Try Google.

  • Why is it when i download the software update for iphone an error pops out when downloading is finish and processing file is being done...i've already tried several time but still the same result.

    why is it when i download the software update for iphone an error pops out when downloading is finish and processing file is being done...i've already tried several time but still the same result.

    Disasble the computer's security software during the download and update.

  • SOLR search results - improving look and feel

    Our team has been in the process of moving our site search from Verity to Solr.  We are running CF9. I am able to build the collections and search them but have run into a problem.  Hopefully, someone can shed some light on a solution.  We are using cflincludes which can be either cfm or html files.  When the search results are displayed and clicking on one of the links that happen to be one of the included files, none of the css is applied which is usually displayed from the file containing the cfinclude.  Is there a way to have Solr display the link to the file that contains the cfinclude with all the CSS displayed properly as oppopposed to the included file?

    No, the content is all contained on the included file.  The cfm page is only 15-20 lines long which defines the css.  This was done because the included page is displayed on both our internet and intranet site.  Since the content was the same but the css is different for those two, in order to not duplicate the content, we went with the approach to define the content in one page and have it included into the other two which would display the css (i.e. banners, menus, etc.) depending on whether you were on the internet or intranet site.
    The way I think that Solr is indexing is that it is really doing no work on the cfm page since there is no content at all.  It is picking up the included file which contains all of the content.  Then when the link is hit on the search display, it just displays the included file with no css.

  • Reading offline form from mailbox and processing with scheduled job.

    Hi,
    i'm trying to prepare an application that runs scheduled on portal.
    This applcation will get attached .pdf form form mailbox and parse and process it.
    I can receive attached pdf form from mailbox. And i can develop a scheduled application for portal.
    My problem is to parse into fields the pdf form with java to use in scheduled portal app.
    Thanks.

    hi Chandra,
    I store the url in one of hidden field in form, then copy javascript below to click event, button control type: Regular.
    just replace all the "<>" in the code below.
    var message;
    var response;
    // The name of the data connection will be pulled from the WSDLConnection name in the ConnectionSet packet
    var sWSDLName = <DataConnection name>;
    // clone, modify and execute the connection.
    var vConnection = xfa.connectionSet[sWSDLName].clone(true);
    vConnection.soapAddress.value = <url>;
    // Execute the connection, without remerge data after the result.
      var ws_rc = vConnection.execute(true);
    for multiple data connection, you have to repeat these code with replace different data connection name and it's url address.
    you may use script object (something like subroutine).
    Regards,
    Kathy Lau

  • Mixed results on iPad and iPhone 6 Plus with background image. How to fix this?

    Flash Professional CC
    I'm having an issue with adding images on iPhone 6 plus and iPad. I'm getting mixed results with two items: 1) a background image and 2) a button that should appear at the bottom left-hand corner on any device. In one case the background image appears enlarged and only shows about 30% of itself. In the other case, the bottom left-hand button appears about 50 pixels to the left when x=0. I also get different results when I set the following:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;
    This does not produce the expected results. I would like to have consistent results across iPad and iPhone 6 plus, which seams to be an issue. The immediate fix for this is to leave the images on the stage instead of using addChild. I could then just stretch the background image so that it spans the whole screen. But I want to add the items dynamically for greater flexibility.
    Here are two cases:
    Case #1:
    This an iPhone 6 plus and you should notice 2 things. 1) There is black and white on both sides. The blue background SHOULD APPEAR ACROSS THE WHOLE SCREEN. 2) The red button in the corner SHOULD APPEAR IN THE LEFT MOST CORNER OF THE
    SCREEN.
    Case #2:
    This an iPhone 6 plus and I have set the scale X, Y to the stage.stageWidth/Height:
    mc_stageBackground_Main.scaleX = stage.stageWidth;
    mc_stageBackground_Main.scaleY = stage.stageHeight;
    This results in a close up of the background image.
    Here is the code that I'm using:
    import com.greensock.TweenLite;
    import com.greensock.easing.*;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    //When this is active the background image spans across the device (iPhone 6 plus) correctly. The main logo image does not line up correctly.
    /*stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT;*/
    var main_logo:MC_LOGO_MAIN = new MC_LOGO_MAIN();
    var mainBackground_2208: MC_MAIN_BACKGROUND_2208 = new MC_MAIN_BACKGROUND_2208();
    var mainBackground_1024: MC_BACKGROUND_1024 = new MC_BACKGROUND_1024();
    var mainCorner: MC_MAINCORNER = new MC_MAINCORNER();
    var chapters: MC_CHAPTERS = new MC_CHAPTERS();
    var _stageWidth = 1024;
    if (stage.stageWidth > _stageWidth)
        //Add bigger background if the stage is bigger than 1024
        mainBackground_2208.x = stage.stageWidth/2;
        mainBackground_2208.y = stage.stageHeight/2;
        addChild(mainBackground_2208);
        //Using this code results in a very close up view of the stage on iPhone 6 plus  
        /*mc_stageBackground_Main.scaleX = stage.stageWidth;
        mc_stageBackground_Main.scaleY = stage.stageHeight;*/
        //Adds corner to the main screen.
        mainCorner.y = stage.stageHeight;
        mainCorner.x = (stage.stageWidth - stage.stageWidth);
        addChild(mainCorner);
        TweenLite.from(mainCorner, 1,{ height: 0, width: 0, delay:1, ease:Elastic.easeOut});
        //add logo to sit at 50 pixels from the top of the stage
        /*main_logo.x = stage.stageWidth/2;
        main_logo.y = (stage.stageHeight -stage.stageHeight + main_logo.height *.6);
        addChild(main_logo);
        TweenLite.from(main_logo, 1,{ y: -main_logo.height, ease:Elastic.easeOut});*/
    else
        trace ("The stage is 1024 or smaller");
        //Add 1024 background if stage is 1024 or smaller
        mainBackground_1024.x = stage.stageWidth/2;
        mainBackground_1024.y = stage.stageHeight/2;
        addChild(mainBackground_1024);
        //Adds corner to the main screen.
        mainCorner.y = stage.stageHeight;
        mainCorner.x = (stage.stageWidth - stage.stageWidth);
        addChild (mainCorner);
        TweenLite.from(mainCorner, 1,{ height: 0, width: 0, delay:1, ease:Elastic.easeOut});
        //adds chapters
        chapters.x = (stage.stageWidth - stage.stageWidth)+75;
        chapters.y = stage.stageHeight - 120;
        addChild(chapters);
        TweenLite.from(chapters, 1,{ height: 0, delay:.5, ease:Elastic.easeOut});  
        //adds the Main logo to sit at 50 pixels from the top of the stage
        main_logo.x = stage.stageWidth/2;
        main_logo.y = (stage.stageHeight -stage.stageHeight + main_logo.height *.6);
        addChild(main_logo);
        TweenLite.from(main_logo, 1,{ y: -main_logo.height, ease:Elastic.easeOut});

    On all of the devices go to settings - facetime - iphone cellular calls - oFF, this part of Apple continuity.

  • Is it possible to create and process PO with the line without value?

    Hi,
    I am wondering whether is it possible to create and process the PO with the lines without the value?
    I was thinking that this process would allow me to better track and understand the pallets which arrive to the site so I have set up the pallet as a material but systems doesn't allow me to order the line (pallet) without value?
    Or maybe there is other way which will allow me to track the pallets within the system?
    Many thanks,
    Sylwia

    Dave,
    Thanks for the reply. Of all the suggestions I've received this seemed to
    be most promising. I gave it a try and the problem is that when I attempt
    to save as optimized a message box pops up and says I have to save my
    document first. Low and behold when I save it, compression occurs. Even
    when I select the options you suggest I'm left with a compressed document.
    I'm using Acrobat Pro X
    Jeff
    From:   Dave Merchant <[email protected]>
    To:     Jeff Ross <[email protected]>
    Date:   01/06/2011 09:35 AM
    Subject:        Is it possible to create and save a .PDF
    without any compression to the resulting .PDF?
    You don't want the UncompressPDF plugin - that's designed to split out the
    COS objects but doesn't remove the Flate encoding (plus if you've never
    compiled a plugin before, it's not really the time to learn).
    Instead, simply save your PDF file using the PDF (Optimized) file type,
    click the Settings button and under "Clean Up" - "Object compression
    options", choose "Remove compression". Turn everything else off if you
    want to retain the PDF content exactly as it was before.
    Your document-level scripts will then be in the file as plain text.

  • Upload and Process large files

    We have a SharePoint 2013 OnPrem installation and have a business application that provides an option to copy local files into UNC path and some processing logic applied before copying it into SharePoint library. The current implementation is
    1. Users opens the application and  clicks “Web Upload” link from left navigation. This will open a \Layouts custom page to select upload file and its properties
    2. User specifies the file details and chooses a Web Zip file from his local machine 
    3. Web Upload Page Submit Action will
         a. call WCF  Service to copy Zip file from local machine to a preconfigure UNC path
         b. Creates a list item to store its properties along with the UNC path details
    4. Timer Job executes in a periodic interval to
         a. Query the List to see the items that are NOT processed and finds the path of ZIP file folder
         b. Unzip the selected file 
         c. Loops of unzipped file content - Push it into SharePoint library 
         d. Updates list item in “Manual Upload List”
    Can someone suggest a different design approach that can manage the large file outside of SharePoint context? Something like
       1. Some option to initiate file copy from user local machine to UNC path when he submits the layouts page
       2. Instead of timer jobs, have external services that grab data from a UNC path and processes periodic intervals to push it into SharePoint.

    Hi,
    According to your post, my understanding is that you want to upload and process files for SharePoint 2013 server.
    The following suggestion for your reference:
    1.We can create a service to process the upload file and copy the files to the UNC folder.
    2.Create a upload file visual web part and call the process file service.
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • I downloaded a program and it never shiowed up in the download box. I can't find it anywhere on my computer. I tried it a few different times and from different sites but still nothing. What can I try next?

    I downloaded a program several times and from different download sites. It never showed up in the download box but it said all downloads have completed. I searched for it anywhere on my computer but the search produced no results.

    I suppose there is a possibility that you have security software than may be blocking quarantining or even deleting the downloaded file.
    Normally if Firefox says in the download manager that the file is downloaded then it is on your computer, and if you right click you should get the option to open the folder the er the downloaded file is in.
    #Use keyboard keys '''Ctrl + J''' to open Firefox's download manager
    #* or use ( press''' alt''' to display the menubar) Tools -> Downloads
    # in the downloads window find the file entry you are looking for and right click
    # use the option ''open containing folder''
    * see [[downloads window]] <-- clickable link --
    * and [[unable to download or save files]]
    Please post back with how you get on.

  • Merge several PR line into into 1 PO line item with ME57-Assign and process

    Our process is run MRP to generate Purchase requisition, system generate 1 PR number for each materials. Happening that there are multiple PR for a same material number and same delivery date. When we convert PR to PO using tcode Me57 - Assign and Process PR, system always generate different line item for each PR even the materials and the requirement date is the same.
    How to merge 2 or a few PR line items for a same material and same requirement date into 1 purchase order line item?

    Hi,
    You should use the "shopping cart'' in the "Delivery Schedule" Tab page of the PO to achieve your requirement.  Basically, in this case, you should use ME21N transaction with ''Document Overview" feature to select related PR line items and drag them into this shopping cart.
    Cheers,
    HT

Maybe you are looking for