Sax Loader example vs XSLT

mdrake,
your Sax Loader example in the FAQ (found here: Sax Loader example )
is very timely. I've been working around this issue for several days.
Like the example, I have a very large document that is really a collection of smaller documents.
Until I read your example, I was leaning towards using XSLT to break out the smaller documents.
The huge document would be in XML DB in one folder, but without any namespace.
I was hoping that XSLT could be used
a) to read that huge document,
b) to parse out the smaller documents,
c) to create a new file in XML DB in an output folder for each of the smaller documents in the huge document,
d) while creating each of the smaller documents, to add a namespace reference to the document so that the document would be shredded as it is added to the output folder.
I admit I'm a newb. Can XSLT be used for this? Any guesses as to which approach would take less elapsed time?
Thanks

mdrake,
a followup question
Your SaxLoader example at
Sax Loader example is for 10g.
There is a similar one for 9i and I have found a readme for the 9i version at http://www.oracle.com/technology/sample_code/tech/xml/xmldb/saxloader/StandAlone_Install.html, but it's incomplete.
Is there a readme for the 10g? If so, I can't find it. Will you provide a link to a 10g version of the readme?
Also, is the 10g version designed (as written) only to work inside an Oracle server, or will it work at a command line prompt under Window/Unix/Linux?
Thanks

Similar Messages

  • From Labview 7.1 help, can't load example vi's

    Quick question:
    When in Labview 7.1 Help, I can no longer load example vi's. I receive a message: "An error occurred – The NI HelpServer could not be found."
    A search on the NI website finds this issue listed & a solution given for Labview version 7.0. It is suggested to:
    Solution: NI HelpServer is one of two services which open TCP/IP ports to communicate with other NI applications running on your computer, such as the NI Example Finder and the LabVIEW Help. By default, LabVIEW 7.0 will launch this service at startup, however, if it has been disabled you will get this error message. In order to enable the HelpServer, navigate to C:\Program Files\National Instruments\LabVIEW 7.0\resource\system and run the HelpServer.llb. On the front panel of the Set HelpServer Config Settings__NATIONAL INSTRUMENTS.vi you will see a boolean control to enable the server. Turn this switch on and run the VI. The LED indicator in the HelpServer.vi will turn on and you will be able to access the shipping examples from the NI Example Finder.
    One finds a HelpServer.llb / HelpServer Config Settings routine in Labview 7.1 as well, and after setting the LED green, the new error message reads:
    Error 63 occured while trying to open this example using the NI Example VI Finder.
    Help!

    Hi Targa,
    Please make sure that you are not blocking the "Port Used" by other applications or firewalls. You might also want to stop and restart the HelpServer.vi several times to access an available port.
    Let me know if you keep getting the error.
    - Philip Courtois, Thinkbot Solutions

  • Compilation/loading/execution  of  XSLT mapping in XI at runtime

    Hi all,
    once a xslt is added to the interface mapping as XSL how its getting compiled/loaded/executed at runtime, since we adding the xslt code as such to the imported archives?did all these steps will take place for each message processing? or is there any approach like xslt caching which will improve the performance at runtime?
    kind regards
    francis

    did all these steps will take place for each message processing - YES
    is there any approach like xslt caching which will improve the performance at runtime? - interms performance xslt is not good.
    Regards,
    Venu.

  • Looking for example - abap xslt - that uses xslt document() function

    Hello,
    I'm looking for an example that shows the use of abap xslt with the xslt document() function.  Using the xslt document() function seems like a straightforward way to use xslt to create a result xml document by processing the content of two or more
    source documents.  For example, if source document A.xml and aux.xml are available in  memory as xstringand using stylesheet ztransformwhat would be the argument for the document() function to associate aux.xml.  Thanks for any insight.
    Regards,
    jb10809

    Hi,
    Sorry, perhaps I should have been clearer! The function that I picked just to test what you need to do just happened to return a string that contains SPAN tags with style attributes. The actual function code is:
    create or replace FUNCTION out_string_fn
       RETURN VARCHAR2
    IS
       CURSOR emp_cur
       IS
          SELECT ename
            FROM emp;
       v_string   VARCHAR2 (4000);
    BEGIN
       v_string := ' ';
       FOR c IN emp_cur
       LOOP
          v_string :=
                v_string
             || '<SPAN style="font-weight:bold;color:green">'
             || c.ename
             || '</SPAN>'
             || ', </br></br>';
       END LOOP;
       RETURN v_string;
    END;And this returned a naff list in green (see [http://apex.oracle.com/pls/otn/f?p=55041:57] and click the Test button) - but it does show that you can style the validation error messages
    Andy

  • Warning while loading example VIs for XPS motion controller

    Hi,
    I'm new to Labview. I want to control the XPS motion controller using Labview and I wanted to get started with the examples provided by XPS along with the drivers. But I get a warning while loading the example. I have attached a screenshot of it. Please help.
    Also, opening the example opens just the front panel. How do I open the bloack diagram of the example VI?
    Thank you.
    Attachments:
    warning.png ‏40 KB

    That warning is nothing to be worried about -- it just means that things were found in a new location, which is normal when you move code around.  Once you save the project it should go away.
    To look at the block diagram, use Window - Show Block Diagram, or simply Ctrl+E.
    Good luck!
    Edwin

  • Sun's Image loading example broken?

    Hello,
    I am trying to use the ImageDisplayer application provided by the Java tutorial. I am doing this because I have been unable to display any images in a JPanel successfully. My problem specifically is that the ImageDisplayer program runs, the frame appears, but no image is painted.
    I am using Java version 1.3.1_02 on Win 2k, and 1.3.1_03 on Linux
    I have tried this on my Linux box and on my Windows 2k box, with the same results. Has anyone experienced this? Could anyone provide me with a small program in a jar file that loads an images sucessfully and is known to work? None of my code tests have sucessfully loaded an image.
    Here is the tutorial and example program. It can also be downloaded in binary format (image.jar) in the tutorial examples zipfile
    Im going nuts here.
    Thanks
    -Ken
    kz1000@hotmailDOTcom

    you can use the sharedobject class to determine how long ago the user logged in and the sequence of images that you want to display.

  • SQL*LOADER example not working for REF

    I was working on the Oracle bulk load scripts using SQL*LOADER utility .
    I have encountered an error while using the REF column option to resolve the parent-child referential integrity .
    The example given in the URL http://www.csee.umbc.edu/help/oracle8/server.815/a67792/ch05.htm Example 5-9 Loading Primary Key REF Columns
    does not work . and generates errors : 'SQL*Loader-418: Bad datafile datatype for column DEPT_MGR'
    example :
    Control File
    LOAD DATA
    INFILE `sample.dat'
    INTO TABLE departments_alt
    FIELDS TERMINATED BY `,' OPTIONALLY ENCLOSED BY `"'
    (dept_no CHAR(5),
    dept_name CHAR(30),
    dept_mgr REF(CONSTANT `EMPLOYEES', emp_id),
    emp_id FILLER CHAR(32))
    Data file (sample.dat)
    22345, QuestWorld, 007,
    23423, Geography, 000,
    Could you please suggest any solutions for this ?

    Some of the quotes are wrong
    Try the sample from the 10.2 documentation
    LOAD DATA
    INFILE 'sample.dat'
    INTO TABLE departments_alt
    FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
    (dept_no       CHAR(5),
    dept_name      CHAR(30),
    dept_mgr       REF(CONSTANT 'EMPLOYEES', emp_id),
    emp_id         FILLER CHAR(32))

  • Loading examples, error code 21

    Every time I try to load the examples, about 20 pop-up boxes come up, all with different file names, with error code 21 : external subroutine required for execution could not be found.  I wrote down a list of all the file names that come up, and a few come up twice.
    WsEpQueryGetHitCount.vi
    WsEpQueryGetTitle.vi
    WsEpQueryGetId.vi
    WsEpQueryGetSummary.vi
    WsEpQueryGetMetadata.vi
    WsEpQueryCheck.vi
    WsEpClose.vi
    WsEpQueryAddTerm.vi
    WsEpQueryOpenGroup.vi
    WsEpQueryCloseGroup.vi
    WsEpOpen.vi
    WsEpQuerySubmit.vi
    WsEpQueryRequestMetadata.vi
    WsEpInstallCheck.vi
    WsEpInstall.vi
    WsPing.vi
    WsLookupOpen.vi
    WsCheck.vi
    WsEpInstallcancel.vi
    WsEpQueryCancel.vi
    WsLoopupGetSize.vi
    WsLookupGetCode.vi
    WsLookupGetText.vi
    WsLookupClose.vi
    WsLookupCancel.vi
    Labview was recently loaded on this labtop, and other than attempting to view the examples hasn't been used.  Can someone please offer some suggestions.

    OK, that helps to narrow it down. It looks like that specific example is related to data acquisition. I know you said that no examples load, but let's concentrate on this for now. First, have you installed DAQmx? I'm not familiar with that example, so I'm assuming that's a DAQmx example - it may be a "traditional DAQ" example. If you haven't installed DAQmx you should install that. Otherwise the example won't find the DAQ VIs. (The list you provided are not DAQ VIs, but without the DAQ VIs you won't be able to run any code.) You can check to see whether you should have "traditional" DAQ or DAQmx using the Measurement and Automation Explorer. Yes, this tool is independent of LabVIEW, but it will tell you what software you have installed. Simply go to one of the sytems where it works, run MAX, and then expand "My System -> Software". You will see a list of software that's installed and you can compare it to what you have installed on your system.
    Now, as far as not being able to open any example: Are you trying to open them from the Example Finder, or from disk via the File->Open menu item? You should be able to at least open the files from disk directly. All examples are in the \National Instruments\LabVIEW 7.1\examples directory. DAQ examples, for instance, should be in the "DAQmx" folder and will probably be in libraries. Can you open the examples direct from disk? Try one of the examples in the "general" folder, as these examples are just LabVIEW code without additional libraries.
    If you're trying to open the examples via the Example Finder you most likely do
    not have some services running. Somewhere along the way NI decided to
    use this convoluted method of using services just to open examples. If some of these services are not running, the Example Finder doesn't work. The list of services that get installed is long, depending on what you've got installed:
    National Instruments Domain Service
    National Instruments PSP Server Locator
    National Instruments Time Synchronization
    National Instruments Variable Engine
    NI Configuration Manager
    NI Service Locator
    nidevldu
    NILM License manager
    nipxirmu
    I believe the only service that the Example Finder is dependent on is the NI Server Location, but you should check the status of all these services (if you have them) and see if they're running. Their startup type should be "Automatic".

  • Can SAX be used with XSLT

    I'm having Java memory problems with 8.1.7 when using a large
    XML file and creating a XML DOM. One solution I may have found
    is to use SAX which will create seperate trees for each
    ROWSET/ROW instead of building the entire tree in memory like
    DOM. But I can't figure out how to use SAX with XSLT. I want
    each record written to the same text file using a XSLT
    template. Anyone know how to do this?

    The solution can be found in the XMLLoader application written
    by Steven Muench, in his book "Building Oracle XML
    Applications". It is also somewhere online under the book's
    O'Reilly pages but I don't have the exact URL.
    The solution is basically that the SAX model is used to parse
    the large file and build a DOM tree as each node is
    encountered. When the SAX model detects the closing tag of a
    subdocument (probably what would be in your <ROWSET></ROWSET>
    tags) then the current DOM tree is used to perform the proper
    database operation. Then the SAX parser goes on with life until
    it finds the next complete subdocument, etc. Pretty slick.
    XMLLoader takes as an argument, the stylesheet you want to apply
    to the data, so you can transform your XML data into something
    that now has the Oracle canonical format on the fly.
    There are numerous posts in this newsgroup regarding XMLLoader,
    and Muench regularly answers questions here as well.
    Good luck!
    Mike

  • For Each example using XSLT in BPEL

    I need a sample How to use For Each in BPEL using XSLT. Like I am getting an array and need to iterate the target XSD accordingly.
    Thanks

    start reading this:
    http://www.w3schools.com/xsl/xsl_for_each.asp
    after that read this:
    http://download.oracle.com/docs/cd/E21764_01/integration.1111/e10224/bp_xslt_mpr.htm#BABGJIGI
    Regards,
    Melvin

  • Softmotion can't load examples

    Hi ,
    I want to open an example from Softmotion module , but i get this screen :
    If you wonder if i have Softmotion module , currently installed and/or activated , i post the following images :
    So i dont know why i can't open the example , any help would be appreciated!
    Thanks in advance,
    Regards,
    Albert

    Hello Albert,
    These are older examples which require the NI SoftMotion Development Module. I think these two links will do a better job of explaining the difference than me.
    http://digital.ni.com/public.nsf/allkb/11D158F0B442409E86257626005DCD10
    http://digital.ni.com/public.nsf/allkb/C219E49C1A6F6E898625760F0052CD66
    Let me know if this makes sense.
    Best Regards,
    Nick C.
    Cardiff University

  • Is JDBC multi threaded

    Newbie to JDBC and XMLDB
    Is it possible to create a java application that has multpule threads that are inserting xml documents into10g using the JDBC driver that comes with 10g?
    (Is the JDBC multi-threaded?)

    Yes....
    Search otn for the sax loader example...

  • Xsl:include not resolving no matter HOW I load the xslt

    I cannot get *<xsl:include>* to work with XMLTRANSFORM in a PL/SQL environment in Oracle 11.2.0.3. I am exclusively working inside the database.
    I have a base XSLT which includes another XSLT using xsl:include. I want to load the base XSLT as an XMLTYPE and have it transform another XML document, as if the entire XSLT were one large document.
    I have loaded the base (base.xslt), the extension (include_with_base.xslt), and the combination of the two (entire_thing.xslt) in the XDB catalog. base.xslt has this statement inside its xsl:stylesheet node, attempting to include the other xslt:
    *<xsl:include href="/public/include_with_base.xslt" />*
    I have the xslts stored in XDB. This verifies they are intact:
    1. The base xslt which has the xsl:include statement in it loads just fine.
    select xdburitype('/public/base.xslt').getXML() from dual;
    2. The extension which is the target of the include reference in the base xslt loads just fine.
    select xdburitype('/public/include_with_base.xslt').getXML() from dual;
    3. The combination of the two, where I cut-and-paste all children of xslt:stylesheet from include_with_base.xslt into the xslt:stylesheet node of base.xslt also loads just fine.
    select xdburitype('/public/entire_thing.xslt').getXML() from dual;
    However, when I try to execute a transformation of some test xml using base.xslt, it fails:
    select XMLTRANSFORM(xdburitype('/public/xml_input.xml').getXML(), xdburitype('/public/base.xslt').getXML()) FROM dual;
    When I try to execute the same transformation of the same test xml using entire_thing.xslt, it works:
    select XMLTRANSFORM(xdburitype('/public/xml_input.xml').getXML(), xdburitype('/public/entire_thing.xslt').getXML()) FROM dual;
    When I perform the transformation using altovaxml and the two xslts are in the same disk directory (and I use a relative reference with no path information rather than an absolute reference like I show in the examples above), the transformation works just fine.
    What can I do to make XMLTRANSFORM work with an XSLT that has an essential <xsl:include ... /> reference in it?
    Edited by: user11359697 on Apr 15, 2013 1:49 PM

    For fun, here's an implementation of what I would call the "poor man" include.
    The query takes the URI of the main stylesheet as input and recursively replaces all xsl:include directives with the content of the corresponding stylesheet.
    It supports relative URIs.
    Test case :
    */public/include1.xsl*
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:include href="./include2.xsl"/>
      <xsl:template name="test">
        <TEST/>
      </xsl:template>
    </xsl:stylesheet>
    {code}
    */public/include2.xsl*
    {code:xml}
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template name="test2">
        <TEST2/>
      </xsl:template>
    </xsl:stylesheet>
    {code}
    */public/main.xsl*
    {code:xml}
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:include href="./include1.xsl"/>
      <xsl:template match="/">
        <xsl:call-template name="test"/>
      </xsl:template>
    </xsl:stylesheet>
    {code}
    and the query that rebuilds the complete stylesheet :
    {code}
    SQL> select xmlserialize(document      -- for display purpose
      2           xmlquery(
      3           'declare namespace xsl = "http://www.w3.org/1999/XSL/Transform"; (::)
      4            declare function local:include($href as xs:string) as element(xsl:stylesheet)
      5            {
      6              copy $d := fn:doc($href)/xsl:stylesheet
      7              modify (
      8                for $i in $d/xsl:include
      9                return replace node $i
    10                       with local:include(resolve-uri($i/@href, $href))/child::*
    11              )
    12              return $d
    13            }; (::)
    14            local:include($main_xsl)'
    15           passing '/public/main.xsl' as "main_xsl"
    16           returning content
    17           )
    18         indent
    19         )
    20  from dual;
    XMLSERIALIZE(DOCUMENTXMLQUERY(
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:template name="test2" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <TEST2/>
      </xsl:template>
      <xsl:template name="test" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
        <TEST/>
      </xsl:template>
      <xsl:template match="/">
        <xsl:call-template name="test"/>
      </xsl:template>
    </xsl:stylesheet>
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Help w/SAX Example from JWSDP1.1

    I have been trying to execute the SAX Parser example from the WSDP1.1 tutorial -- Echo01.java with slideSample.xml and I keep getting the following exception even though the program has compiled successfully:
    C:\j2sdk1.4.2\programs>java Echo01 slideSample.xml
    Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/parsers/SAXParser
    I have a gut feeling this has something to do with my classpath variable, but I just can't seem to figure it out. I have placed all the required .jar files in the <JAVA_HOME>/jre/lib/endorsed directory.
    My classpath variable holds the following information, but when I try to view it in DOS, I get the following JVM error:
    Failed to load Main-Class mainfest attribute from C:\j2sdk1.4.2\jre\lib\endorsed\sax.jar
    My CLASSPATH variable reads as follows:
    C:\j2sdk1.4.2\jre\lib\endorsed\sax.jar;C:\j2sdk1.4.2\jre\lib\endorsed\dom.jar;C:\j2sdk1.4.2\jre\lib\endorsed\xalan.jar;C:\j2sdk1.4.2\jre\lib\endorsed\xercesImpl.jar;C:\j2sdk1.4.2\jre\lib\endorsed\xsltc.jar;C:\j2sdk1.4.2\programs
    PLEASE ADVISE!!!!!!!!!

    I came across this problem before. The problem maybe you have used an old version of java.exe. I am using Windows XP and I realise that there is another java.exe in the path "C:\WINDOWS\system32". Therefore, if the path "C:\j2sdk1.4.2\bin" is put after "C:\WINDOWS\system32" in your Path variable, your computer will always load the java.exe in "C:\WINDOWS\system32", which is an older version shipped with your Windows. So, try to move "C:\j2sdk1.4.2\bin" in front of "C:\WINDOWS\system32 in the Path variable.
    I hope this works!!

  • XSLT mapping Examples

    Hi Xperts,
    Could any one send me XSLT transformation code  with step by step procedure and some examples  on XSLT transformation for  XML to XML Convert.
    please send me to:  <b>[email protected]</b>
    Best regards
    Gopi

    HI,
    please see the below links
    /people/r.eijpe/blog/2005/11/04/using-abap-xslt-extensions-for-xi-mapping - Using ABAP XSLT Extensions for XI Mapping
    XSLT Mapping
    /people/prasadbabu.nemalikanti3/blog/2006/03/30/xpath-functions-in-xslt-mapping
    /people/sreekanth.babu2/blog/2005/01/05/design-time-value-mappings-in-xslt
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    XSLT Mapping with java enhancement
    /people/pooja.pandey/blog/2005/06/27/xslt-mapping-with-java-enhancement-for-beginners
    XSLT - /people/dirk.roeckmann/blog/2006/07/26/grouping-xml-with-xslt--from-muenchian-method-to-xslt-20
    Dynamically sending a mail to the PO creator using XSLT- ABAP Mapping -
    /people/rahul.nawale2/blog/2006/11/01/dynamically-sending-a-mail-to-the-po-creator-using-xslt-abap-mapping
    Using XSLT Mapping within the J2EE Adapter Framework -https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3823 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1442 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    Regards
    Chilla.

Maybe you are looking for

  • Imac CPU Usage insane, Freezing regularly, is the end nigh for my mac?

    Hi, i wonder if anyone can help? My imac is not happy at all, it is freezing all the time even when opening the dock and changing font sizes etc! It can't cope with having more than 2 applications open at once. When i look in activity monitor, it is

  • HP Photosmart C5580 , I need a network driver for windows 7 64 bit.

    hello all  , this is the only driver supplied by HP for my printer and Windows 7 64bit : ftp://ftp.hp.com/pub/softlib/software11/COL30128/mp-74904-1/PS_AIO_04_C5500_NonNet_Full_Win_WW_130_1... as you can see it is listed as "NonNet" and as it is such

  • I need to print "page 0"

    I have an older story program in my school where the story title page is on page "0". On my old 5200 (w/ OS 8.5), I could print page 0 by doing a "print from page 0 to page blank". This would include the title page. However in OS X, I can not enter a

  • NO BATCH INPUT DATA FOR SCREEN SAPMV50A ERROR FROM BDC

    HI I get the following error when my program runs inforeground, using a BDC(VL02N)- 'NO BATCH INPUT DATA FOR SCREEN SAPMV50A SCREEN 1000.' i am trying to attach a serial number to the sales order and it seems that the warning message is causing the e

  • UNinstalling CS3 Design Premium Windows 7

    I have CS3 installed on a second drive on my Windows Desktop - I am getting a fault warning - You cannot use this product at this time. You must uninstall and then re-install your software before continuing. Contact your IT administrator or Adobe if