How do I use XSLT & XML is stored in InterMedia Text.....

I use interMedia Text to store XML document. How do I use the XSLT Processor API to transform the data which is searched by XML SQL Utility??
//***Source Code
public Document xmlquery(String tabName,String xslfilename)
Document xmlDocToReturn = null;
String xmlString;
try
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
//initiate a JDBC connection
// initialize the OracleXMLQuery
OracleXMLQuery qry = new OracleXMLQuery(conn,"select XML_TEXT from bookstore where contains (xml_text,'John WITHIN authorsec')>0");
// structure the generated XML document
qry.setMaxRows(2);
// set the maximum number of rows to be returned
// get the XML document in string format
xmlString = qry.getXMLString();
// print out the XML document
System.out.println(" OUTPUT IS:\n"+xmlString);
// get the XML document in string format
xmlDocToReturn = qry.getXMLDOM();
conn.close();
catch (SQLException e) {
return xmlDocToReturn;
xml = (XMLDocument)query.xmlquery(args[1],args[0]);
// Instantiate the stylesheet
XSLStylesheet xsl = new XSLStylesheet(xsldoc, xslURL);
XSLProcessor processor = new XSLProcessor();
// Display any warnings that may occur
processor.showWarnings(true);
processor.setErrorStream(System.err);
// Process XSL
DocumentFragment result = processor.processXSL(xsl, xml);
Thank you.
null

Your problem here is that when you store an XML document in a CLOB and search it using intermedia, when you do a query like:
SELECT xml_text
FROM bookstore
WHERE CONTAINS(xml_text,'John WITHIN authorsec')>0
The output from the XML SQL Utility using getXMLDOM() looks like this:<ROWSET>
<ROW>
<XML_TEXT><![CDATA[
<bookstuff>
<authorsec>
<name>Steve</name>
</authorsec>
etc.
</bookstuff>
]]>
</XML_TEXT>
</ROW>
</ROWSET>with the document as a single text value (it's actually just a text node, not a CDATA node) but the above illustrates conceptually that the whole XML document is one big text node.
To transform this you'll need to parse that XML text into an XML document in memory by passing constructing a StringReader() on the text value and parsing that reader.
null

Similar Messages

  • How do I use music on my iphone5 as ringtones/text alerts

    How do I use music on my iphone5 as ringtones/ text alerts

    You have shorten the music and then convert/rename to m4r form, import into iTunes. iTunes will create a Tones library if it does not already exist, sync to your iPhone and set it as your ringtone/alert.

  • How did i use the xml schema in WLS 6.0 and up

    i check the WLS6.0 console that can setup the xml dtd
    but how did i setup the xml schema in WLS6.0 and up ??

    Hello-
    The knowledge base: "Can Matlab for Windows Call the National Instruments GPIB Driver?" Also applies to this question as well. This article is very extensive. Try searching on ni.com for "+matlab +gpib" for more details.
    Randy Solomonson
    Application Engineer
    National Instruments

  • How do I use the XML-data from a callback in JSP?

    I´ve tried this but with no success..
    How do I recieve the data in a servlet/JSP-page?
    Thanks.

    Thanks for helping me Anurag.
    The problem I tried to solve was that I want the result from my service methods
    in XML format. I thought a callback/polling was the best alternative, am I right?
    Since the callback option doesn´t work I will try to poll the service.
    Are there any other options for solving my problem??
    Thanks again!!
    /A
    "Anurag Pareek" <[email protected]> wrote:
    >
    Andrej,
    I guess you are trying to invoke a Webservice which defines a callback
    method
    from a JSP, and want the JSP to handle the callback made by the webservice.
    For a client to be able to handle a callback made by a Webservice, it
    has to be
    a web service in itself.
    Even some web service tools do not support 'Solicit responses' and hence
    they
    would not generate handlers for the callback methods by default. You
    can download
    a callback WSDL in such cases and implement it on the client side. The
    server
    side web service will then callback to that webservice.
    The other option to callbacks is to use polling methods. This can be
    done from
    any client such as Java client/ JSP client or a .NET client.
    Hope this helps. Let me know if you have any further questions.
    Regards,
    Anurag
    "Andrej" <[email protected]> wrote:
    I´ve tried this but with no success..
    How do I recieve the data in a servlet/JSP-page?
    Thanks.

  • How do I use an XML Data Feed or a CSV Data Feed?

    I am trying to build a website for a business I started. My drop shipper has a "data feed" that has all of the info for the products (over 100k products). The data feed is available in bot XML and CSV format. I have searched what seems like forever, and cannot find any info on how to actually make it work.  Can anyone point me in the direction of how to actually do this? I have both dreamweaver and muse.do everything?
    Do I need to create different pages and things like that? Or does the data feed
    Also, The data feed is updated every  12 minutes after the hour, every 8 hours from the dropshipper, so will inputting the data feed automatically change on the website, or will I need to re add the data feed code every day?
    This is what the dropshippers website says ...
    Files on this page can be used to populate drop ship websites. We recommend that you update the inventory on your site as often as possible, both to make sure you have all the items we carry, and to avoid placing orders with us for items that are out of stock or discontinued.
    The Bronze feeds, (i.e., ELD-B01.csv, MC-B01.csv, ELD-B01.xml, and MC-B01.xml) start the update process 12 minutes after the hour, every 8 hours at 08:12, 16:12, 00:12 CST. Be advised it takes awhile to complete the update process because of the many different feeds and the amount of data.. The OutofStock.csv, Discontinued.csv and InStock.csv feeds are updated every 15 minutes.
    Thanks in advance!

    You would need to parse the XML feed into your site with PHP or JavaScript. 
    http://www.w3schools.com/php/php_xml_simplexml.asp
    Nancy O.

  • How do I use an XML file to stream information to a Webapp?

    I am trying to use XML generated by an event calander application to set it up with an image slider on the sites webpage. I need it to read in event info and use a picture so that the slider can show "Upcomming Events". It would have a picture, date and link to buying tickets from the ticketmaster page. I am pretty new to web apps and not sure how to set one up to utilize an XML data stream.

    Hi,
    You can't use XML to stream data into webapps, but if you convert the xml to a csv file for example, you could use the import function.
    Kind Regards,
    Alex

  • How do I use an iPhoto library stored on an external HDD (time capsule) on the new photos app?

    I have recently upgraded to a MacBook Air with the latest 10.10.3 updates as such it has photos installed, not iPhoto. The MacBook I'm upgrading from still had 10.9 and as such had iPhoto app.
    The MacBook air has a smaller SSD (128GB) than the HDD from my 2008 MacBook, and isn't big enough to store my iPhoto library (over 150GB). I want to just keep my library on the external HDD (which is an Apple Time Capsule).
    When I follow the steps on Designate a System Photo Library in Photos - Apple Support it seems to want to import all the photos, it took hours to get to just 3% of importing so I left over night. In the morning it said my MacBooks storage isn't big enough, which of course it isn't - I didn't want to import the library on my new MacBook Air !
    I just want to change the location that photos looks for the library every time it opens, I don't actually want it to import the whole library which it appears to have tried to do. thanks!

    Thanks for getting back to me!
    It is connected over wireless. I don't have an RJ45 connection on the MacBook Air (although will purchase an adapter if needed). Even if I do have an RJ45 connection does this mean I can only ever use wired to view my external photo library?
    I suppose having the wired connection will give me the time to organise my photos and delete some of the rubbish (which I would have liked to do on my old MacBook first but it was running too slow, especially with such a big photo library - so I treated myself to a new MacBook Air so I did!).
    And I guess I could then put my favourite photos on the MacBook Air and have a separate library of older/lesser used photos on the Time Capsule and just access those as and when over RJ45 network cable. I prefer to use wireless as much as possible as the Time Capsule is normally stored in a room I don't use the MacBook or other wireless devices !

  • How do I use a xml file in iDVD

    Hello All,
    Hopefully someone can help.  I'm new to Mac, Final Cut Pro (Trial), and iDVD 09.  I a making a project with several chapters in FCPX and would like to use iDVD for the menus.  The only export option I have in FCPX I have is Export XML.  I exported to XML, go to iDVD Media Tab-Movies and I cannot see it.  I cannot drag it into iDVD as other discussions in here have suggested.  Is iDVD incapable of using XML ?  Also is there a way to export from FCPX to Quick Time ? 
    Could the issue be that I'm using a trial, I don't want to pay $300 if this software won't work for me.
    thanks for any advice.
    Jayne

    Sorry, I just have to be super clear here.
    "It always works" and "it is always MP3 and it all works" means:
    I drop an MP3 file into InDesign that plays on page view.
    I create an app on iOS, via DPS.
    The audio plays on the iPad.
    I have to have a "definitely, because I have done exactly that" answer here, not a "you're supposed to do it that way", or "it always works, in the sense that I have exported a PDF with an MP3 and that worked," before we put the cash out for the Pro version. As I mentioned before, I would test this out myself, and tried to, but the educational version blocks me from publishing to the iPad.
    I have to know that we are talking about exactly the same thing here.
    Thanks,

  • How to combine a raw xml file stored in a table field withe other sql query in . xsq

    I created .xsql file like this:
    <xsql:query>
    select xml_file from my_table
    </xsql:query>
    xml_file is field in my_table,it stores raw xml files.
    the xml file in the result is in text format, not in xml format,how to convert the file into xml format in the result

    See the "document" demo that ships with the XSQL servlet for an example of how to do this.
    It lives in the ./demo/document subdirectory.

  • How to stop using unattend.xml

    I need to remove Unattended.xml from applying from within a task for an OS deploy. I've tried removing/delete the task sequence, manually going in and removing the settings from Unattended.xml, it keeps applying during the build process. How
    do I stop it?

    copy <installdir>\Templates\Unattend_<architecture>.xml %DeployRoot%\Control\<TSID>\unattend.xml
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Perfect response!

  • How do you use a logic function to see if text is there?

    I have a column of Dates, and a column of Categories. I want to Numbers to be able to tell me whether a certain Category, in this case "Phone", appears in the Category column during the month of February.
    While playing with the IF and AND functions, aside from Errors, the only results I've come up with are "FALSE", when it clearly is in the category. I have checked everything over and can't find any error on my own part, aside from not understanding clearly how these functions work. Can someone clarify what I need to do to get the desired results?
    Thank you so much!

    Vangard wrote:
    Also, is there a way to specify its "existence" to a date range? What I am trying to do is have a separate table show whether or not I have paid the phone bill each month. So without a date range, it will display that I've paid it on every month. (Assuming I can get it to display the proper status in the first place.)
    What you're looking for is a "breakout table"
    These require an index column on the main table that marks the target rows with an identifier (a serial number) that's used by the LOOKUP function to retrieve other information from the marked rows.
    For the example, I've placed Date, category and amount in columns A, B and C of the main table, and used column E as the index column.
    On the Breakout table, the Category is in A1, dates are listed under it, and amounts in column B.
    Formulas:
    Table 1
    E2 and filled down the column:   =IF(B=$E$1,MAX($E$1:E1)+1,"")
    Table 2
    A2 and filled down the column:   =IF(ROW()-1>MAX(Table 1 :: $E),"",LOOKUP(ROW()-1,Table 1 :: $E,Table 1 :: $A))
    B2 and filled down the column:   =IF(ROW()-1>MAX(Table 1 :: $E),"",LOOKUP(ROW()-1,Table 1 :: $E,Table 1 :: $C))
    The IF part is used to blank cells where LOOKUP would be looking for a number greater than the maximum value in the index column. Because LOOKUP cannot be set to look for exact matches only, it would repeat the last found entry if this part of the formula were omitted.
    Note that the values (text) in the category column, and cell E1 of Table 1 must match exactly for the row to be included in the breakout table. (This may also be the reason for the 'missing' message you are getting from Yvan's formula.) The easiest way to accomplish this is to enter the category labels using a pop-up menu, and to use the same menu in E1.
    Extension: For a single breakout table with a choice of extracting any one of the categories, place a copy of the pop-up menu in cell A1 of Table 2, and replace the value in E1 of table 1 with the formula   =Table 2::A1
    Regards,
    Barry
    Descriptions of ROW, MAX and LOOKUP may be found in the iWork Formulas and Functions User Guide, which may be downloaded through the Help menu in Numbers.

  • In PI how do I convert the XML payload (input) to a text file and send out

    I am extracting data from SAP and sending thru XI / PI to a file (non-sap system).
    On the receiving end, I need the file to be a text file, with one row for each "FTZ_Row concatenated_data" tag in the input.  It needs to be just a plain text file with no XML tags.
    Currently the file gets one record which matches exactly to the XML payload below.
    I want it to create a file that looks like this :
               CONCATENATED DATA 1
               CONCATENATED DATA 2
                012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12
    here is the payload going thru XI
      <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
      <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
      <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
      <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
      </n0:FTZ_Concatenated_Row>
    thanks
    jay

    thanks for the input but I am still having issues - I get an empty file when I use the content conversion option.
    My payload coming into XI is :
            <?xml version="1.0" encoding="utf-8" ?>
    - <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
    <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
    <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
    </n0:FTZ_Concatenated_Row>
    Here is the layout of my data type - I am using the same for input & output
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" targetNamespace="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone">
       <xsd:complexType name="FTZ_Concatenated_Row">
          <xsd:sequence>
             <xsd:element name="FTZ_Row" maxOccurs="unbounded">
                <xsd:complexType>
                   <xsd:attribute name="concatenated_data" type="xsd:string" />
                </xsd:complexType>
             </xsd:element>
          </xsd:sequence>
       </xsd:complexType>
    </xsd:schema>
    I mapped these items :  FTZ_Concatenated_Row & FTZ_Row & concatenated_data
    I set up my content convesion with :
      recordset structure   FTZ_Row
    FTZ_Row.fieldSeparator     #
    FTZ_Row.endSeparator     'nl'
    I am not sure why the following row looks like this ??
        <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
    I thought FTZ_Row would be one tag and "concatenated_data" would be another one.
    any help would be appreciated.
    I have read many entries/blogs/etc in SDN but and tried many different setups, but nothing is working.
    thanks

  • Using external XML document to update / change text fields inside of published captivate output.

    Hello
    I currently have a project where the client has requested to have the ability to update the text fields inside the project at a later date.
    This is due to the nature of the content changing rather rapidly, i would like to set this up so the client can manage this them selfs.
    What would the best way to do this be?
    I'm thinking XML, an external XML sheet were by Captivate imports the text from this XML sheet and then displays it within the specific text fields contained within the captivate output.
    This way the client would just update the external XML document(cut and paste the text in) and then the text would be dynamically updated in the published Captivate document.
    any help would be amazing !
    Thanks in advance
    Nick

    Hi Lieve
    But isn't this thread more about an end user having an ability to change text after the Captivate has been published and delivered? I could see where that might be useful if making changes then publishing to create a new output. But I'm interpreting that the situation here is that a Captivate project has been published and delivered, and some mechanism is desired that allows the recipient to modify an external XML file to influence changes in the already compiled Captivate output.
    Cheers... Rick

  • How can I use a table as source for scrolling text

    Hi,
    I have a javascript scolling news on our portal page and anytime I need to update the news I have to update the portlet. Is there a way to use a database table to store the news and get it displayed automatically (as a scrolling text) after committing the transaction.
    Thanks,
    Leonard

    What do you mean by updating the portlet - page refresh?
    The nature of HTTP is that the client has to initiate the communication. As long as the browser doesn't submit a new request for the page, the content won't refresh.
    There are tricks, though that you may consider... such as placing an iframe on your portal page that "pings" the server and checks whether there's any change on the server side. Another option could be using an applet.

  • How do you use the combo box to populate a text box

    I am a beginner when it comes to Java Script.  I have viewed many different discussions, look at a lot of "help" articles dealing with Acrobat 9 and Java Script, but only to be left confused and dazed.  I am hoping someone will be able to tell me how to write a script that will populate a text box that is on my form with the combo box selection's export value...
    Thanks

    If you want the text box to be read-only, just set it up with the following custom calculate script:
    // Set this field value to the value of the combo box
    event.value = getField("combo1").value;
    but replace "combo1" with the actual name of the combo box field.
    If you want something else, post again with more information.

Maybe you are looking for

  • I downloaded Mountain on an older Mac and now Safari doesn't open

    I clicked on the download to Mountain Lion and got a message that my computer could not support the upgrade. Later I found in itunes under purchased a Mountain Lion download. I clicked on it and it downloaded, but when the download was finished it st

  • Hi Clever people restore after hard drive crash

    Please some advice. Hard disk has crashed. Luckily under warranty so replaced and Apple re-installed my original OS X. Should I restore all my data and application though system restore on start up Installer or use migration assistant? I dont think t

  • Different languages in different styles

    In the previous version of Pages, I could choose a language for my different styles. Now, it automatically chooses a language for me. I use both English and French, and I would need to be able to assign a language for every style. Help please?

  • AutoComplete Text in Report Paramter

    Hi , I need an option like showing parameters as Auto Complete text -"Same like Ajax Tool-Auto complete Textbox". Is there any option,when user types the -Employee Name,like "A",then the report paramter lists all -Employees having -"A" as Starting..

  • Starting a distributed cache system

    Hi, Is there a way to start a distributed cache system on different boxes without actually running the command line application on those boxes? Thanks, Sandeep.