Help on XML+SQL- HTML

I use the following SP to test transformation of XML and XSL, but the processXML seems didn't work, the result which should be a HTML is XML itself, please help.
create or replace procedure xslsample is
p xmlparser.Parser;
xmldoc xmldom.DOMDocument;
xmldocnode xmldom.DOMNode;
proc xslprocessor.Processor;
ss xslprocessor.Stylesheet;
xsldoc xmldom.DOMDocument;
docfrag xmldom.DOMDocumentFragment;
docfragnode xmldom.DOMNode;
xslelem xmldom.DOMElement;
nspace varchar2(50);
xslcmds xmldom.DOMNodeList;
xml Clob;
xsl Clob;
buffer varchar2(2000);
begin
p := xmlparser.newParser;
xmlparser.setValidationMode(p, FALSE);
xmlparser.setErrorLog(p, 'c:\err.log');
xmlparser.setPreserveWhiteSpace(p, TRUE);
--xmlparser.setBaseDir(p, 'c:\');
select content into xml from snippet where id=5 ; -- parse xml
xmlparser.parseClob(p, xml);
xmldoc := xmlparser.getDocument(p);
select content into xsl from snippet where id=6; -- parse xsl
xmlparser.parseClob(p, xsl);
xsldoc := xmlparser.getDocument(p);
proc := xslprocessor.newProcessor;
ss := xslprocessor.newStylesheet(xsldoc, 'c:\iden.xsl');
-- xmldocnode := xmldom.makeNode(xmldoc);
xslprocessor.processXSL(proc, ss, xmldoc,buffer);
-- docfrag :=docfragnode := xmldom.makeNode(docfrag);
dbms_output.put_line('Writing transformed document');
-- xmldom.writeToBuffer(docfragnode, buffer);
dbms_output.put_line(substr(buffer,1,200));
xslprocessor.freeStyleSheet(ss);
xslprocessor.freeProcessor(proc);
-- deal with exceptions
exception
when xmldom.INDEX_SIZE_ERR then
raise_application_error(-20120, 'Index Size error');
when xmldom.DOMSTRING_SIZE_ERR then
raise_application_error(-20120, 'String Size error');
when xmldom.HIERARCHY_REQUEST_ERR then
raise_application_error(-20120, 'Hierarchy request error');
when xmldom.WRONG_DOCUMENT_ERR then
raise_application_error(-20120, 'Wrong doc error');
when xmldom.INVALID_CHARACTER_ERR then
raise_application_error(-20120, 'Invalid Char error');
when xmldom.NO_DATA_ALLOWED_ERR then
raise_application_error(-20120, 'Nod data allowed error');
when xmldom.NO_MODIFICATION_ALLOWED_ERR then
raise_application_error(-20120, 'No mod allowed error');
when xmldom.NOT_FOUND_ERR then
raise_application_error(-20120, 'Not found error');
when xmldom.NOT_SUPPORTED_ERR then
raise_application_error(-20120, 'Not supported error');
when xmldom.INUSE_ATTRIBUTE_ERR then
raise_application_error(-20120, 'In use attr error');
end xslsample;
null

I use the following SP to test transformation of XML and XSL, but the processXML seems didn't work, the result which should be a HTML is XML itself, please help.
create or replace procedure xslsample is
p xmlparser.Parser;
xmldoc xmldom.DOMDocument;
xmldocnode xmldom.DOMNode;
proc xslprocessor.Processor;
ss xslprocessor.Stylesheet;
xsldoc xmldom.DOMDocument;
docfrag xmldom.DOMDocumentFragment;
docfragnode xmldom.DOMNode;
xslelem xmldom.DOMElement;
nspace varchar2(50);
xslcmds xmldom.DOMNodeList;
xml Clob;
xsl Clob;
buffer varchar2(2000);
begin
p := xmlparser.newParser;
xmlparser.setValidationMode(p, FALSE);
xmlparser.setErrorLog(p, 'c:\err.log');
xmlparser.setPreserveWhiteSpace(p, TRUE);
--xmlparser.setBaseDir(p, 'c:\');
select content into xml from snippet where id=5 ; -- parse xml
xmlparser.parseClob(p, xml);
xmldoc := xmlparser.getDocument(p);
select content into xsl from snippet where id=6; -- parse xsl
xmlparser.parseClob(p, xsl);
xsldoc := xmlparser.getDocument(p);
proc := xslprocessor.newProcessor;
ss := xslprocessor.newStylesheet(xsldoc, 'c:\iden.xsl');
-- xmldocnode := xmldom.makeNode(xmldoc);
xslprocessor.processXSL(proc, ss, xmldoc,buffer);
-- docfrag :=docfragnode := xmldom.makeNode(docfrag);
dbms_output.put_line('Writing transformed document');
-- xmldom.writeToBuffer(docfragnode, buffer);
dbms_output.put_line(substr(buffer,1,200));
xslprocessor.freeStyleSheet(ss);
xslprocessor.freeProcessor(proc);
-- deal with exceptions
exception
when xmldom.INDEX_SIZE_ERR then
raise_application_error(-20120, 'Index Size error');
when xmldom.DOMSTRING_SIZE_ERR then
raise_application_error(-20120, 'String Size error');
when xmldom.HIERARCHY_REQUEST_ERR then
raise_application_error(-20120, 'Hierarchy request error');
when xmldom.WRONG_DOCUMENT_ERR then
raise_application_error(-20120, 'Wrong doc error');
when xmldom.INVALID_CHARACTER_ERR then
raise_application_error(-20120, 'Invalid Char error');
when xmldom.NO_DATA_ALLOWED_ERR then
raise_application_error(-20120, 'Nod data allowed error');
when xmldom.NO_MODIFICATION_ALLOWED_ERR then
raise_application_error(-20120, 'No mod allowed error');
when xmldom.NOT_FOUND_ERR then
raise_application_error(-20120, 'Not found error');
when xmldom.NOT_SUPPORTED_ERR then
raise_application_error(-20120, 'Not supported error');
when xmldom.INUSE_ATTRIBUTE_ERR then
raise_application_error(-20120, 'In use attr error');
end xslsample;
null

Similar Messages

  • HELP: JSP + XML + XSLT = HTML?

    Hello, all.
    I am trying out Weblogic 6 and I am trying to get the JSP + XML + XSLT =>
    HTML chain working.
    I am coming from using Orion and SAXON.. and in that situation I had a JSP
    that contained XML tags... they were filled in at runtime and then using
    Servlet-Chaining was passed along to the SAXON XSLT Processer. SAXON checked
    for the inline XSL specified and then used that to transform the document
    into HTML.
    It worked well, but there were some other features missing/not documented
    that we now need.
    With Weblogic I am trying to use the XSLT Tag Library that comes with the
    distribution, but it seems to be very finicky. I followed the directions and
    I got it to do a sort of roundabout transformation. But it doesn't seem to
    work quite right.
    The best I can get is the following:
    I have an 'xslt' directory url-pattern-mapped to xslt.jsp (as instructed)...
    but can't figure out how to specify the xsl file on-the-fly... that is, if I
    don't hard-code the XSL file in the x:xslt element in the xslt.jsp it
    complains about some XML file not having a root element.
    Ideal situation:
    1. I have a JSP that includes XML elements.
    2. It is filled from a database at runtime and specifys (using a PI) what
    XSL stylesheet it is to be processed with.
    3. Somehow (fingers crossed) the XML is processed and transformed into HTML
    by the appropriate XSL file.
    I think I am mostly stuck moving between steps 2 and 3.
    Can anyone give me some hints? Are there some Weblogic specific
    elements/tags that I have to include in the XML file that Weblogic will
    catch and re-direct to the XSL Parser?
    Please, anyone, if you have some information, I would much appreciate it.
    Dylan Parker
    PS - I apologize for the cross-post, I hope it doesn't cause too much
    traffic.

    Craig,
    I've since discovered how to do it with the WL Taglibrary... and have
    moved on =)
    It has to do with the EXTREMELY BADLY documented x:xml tag that can
    appear within the x:xslt tag body...
    So the WL Tag Library allows something like the following.
    (Please note, angled brackets are omitted in this post to prevent html
    parsing)
    [x:xslt stylesheet="sheet.xsl"]
    [x:xml]
    Here is the XML to run the sheet on.
    This should have all relevant XML syntax: the PIs, the doctype,
    root elements etc...
    [x:xml]
    [x:xslt]
    And that DOES work. But not very well. WL, a little prematurely
    incorporated versions 1.2 of Xerces and Xalan in their product -- and
    these versions have some irritating bugs.
    Also -- There tag library doesn't copy the source XML across as UTF-8
    .. so a lot of the Japanese I have embedded there (from a DB) gets
    mangled somewhere in their code...
    AND -- If you hammer a little bit on an JSP/XML that uses the WL Tag
    Library (eg clicking refresh lots of times in IE)... I get huge
    amounts of irritating exceptions appearing in the log files.
    NullPointerExceptions
    XSL Parsing Exceptions
    XML Parsing Exceptions
    but completely unpredictably...
    In my eyes.. the WL XML/XSL Tag Library using the incorporated and
    untouchable Xalan and Xerces (v1.2) is virtually unusable.
    What a pain.
    BUT! Apache offers a similar OPEN SOURCE XSL Tag Library available
    here:
    http://jakarta.apache.org/taglibs/doc/xsl-doc/intro.html
    And it uses the standard, non-weblogic-incorporated, Xerces and Xalan
    (which means you can provide whatever version you want).. and it works
    impressively well.
    It has almost identical performance as the WL Taglib, and without all
    of the bizarre exceptions being thrown.
    And it does proper passing of the character encoding type!
    If only the taglib did caching though =(
    The performance hit over pure JSP is huge. Almost two orders of
    magnitude. On my desktop box I can get around 500Requests/Sec if I am
    returning HTML direct from a JSP... while if I produce XML that gets
    processed by XSL into HTML the Requests/Sec drops to 5!!!!
    Caching. Caching. And more Caching. A lot of DiskIO is going on with
    the XML/XSL/XHTML chain of events.
    I hope this helps!
    I'd be curious as to what you find out as well.
    Dylan Parker
    On 5 Mar 2001 07:20:00 -0800, "Craig Macha"
    <[email protected]> wrote:
    >
    Yep, I feel Dylan's pain.
    I am trying to accomplish the same thing. A JSP page generating
    dynamic XML content and then utilizing an XSLT stylesheet to transform
    all the content into XHTML.
    Does anyone have some examples that show exactly how to accomplish
    this? Can I do this with WLS and the XML taglib that comes with
    it? Or do I have to move on to something like Cocoon to get this
    capability?
    Any insight would be greatly appreciated.
    Thanks,
    Craig Macha
    "Dylan Parker" <[email protected]> wrote:
    Hello, all.
    I am trying out Weblogic 6 and I am trying to get the
    JSP + XML + XSLT =>
    HTML chain working.
    I am coming from using Orion and SAXON.. and in that situation
    I had a JSP
    that contained XML tags... they were filled in at runtime
    and then using
    Servlet-Chaining was passed along to the SAXON XSLT Processer.
    SAXON checked
    for the inline XSL specified and then used that to transform
    the document
    into HTML.
    It worked well, but there were some other features missing/not
    documented
    that we now need.
    With Weblogic I am trying to use the XSLT Tag Library
    that comes with the
    distribution, but it seems to be very finicky. I followed
    the directions and
    I got it to do a sort of roundabout transformation. But
    it doesn't seem to
    work quite right.
    The best I can get is the following:
    I have an 'xslt' directory url-pattern-mapped to xslt.jsp
    (as instructed)...
    but can't figure out how to specify the xsl file on-the-fly...
    that is, if I
    don't hard-code the XSL file in the x:xslt element in
    the xslt.jsp it
    complains about some XML file not having a root element.
    Ideal situation:
    1. I have a JSP that includes XML elements.
    2. It is filled from a database at runtime and specifys
    (using a PI) what
    XSL stylesheet it is to be processed with.
    3. Somehow (fingers crossed) the XML is processed and
    transformed into HTML
    by the appropriate XSL file.
    I think I am mostly stuck moving between steps 2 and 3.
    Can anyone give me some hints? Are there some Weblogic
    specific
    elements/tags that I have to include in the XML file that
    Weblogic will
    catch and re-direct to the XSL Parser?
    Please, anyone, if you have some information, I would
    much appreciate it.
    Dylan Parker
    PS - I apologize for the cross-post, I hope it doesn't
    cause too much
    traffic.

  • Help with XML to HTML or JS or ASP?

    Let me begin by saying that I am new to using XML.
    I have been able to create a simple tree menu using XML tags, and then saved it as *.xml.  I am using Version 6.0.
    My problem is that I do not know how to convert the xml file into a viewable web page for my users, wheather it is HTML or JSP or ASP.
    Below is the xml that I have created:
    <?xml version="1.0" encoding="UTF-8"?>
    <menu>
    <style>left menu</style>
    <name>BIMI Menu</name>
    <item>
    <name>Home</name>
    <related-page>index.htm</related-page>
    </item>
    <menu>
    <name>HBCA</name>
      <menu>
      <name>Actuate</name>
       <menu>
       <name>Direct Weekly</name>
        <item>
         <name>DR03w - Direct Weekly</name>
         <related-page>#</related-page>
        </item>
       </menu>
       <menu>
       <name>Intraweek Acquisition Weekly</name>
        <item>
         <name>Intraweek Acquisition Weekly</name>
         <related-page>#</related-page>
        </item>
       </menu>
       <menu>
       <name>OAO (OSA) Weekly</name>
        <item>
         <name>DR01w - New Accounts</name>
         <related-page>#</related-page>
        </item>
        <item>
         <name>DR01w - OSA Weekly</name>
         <related-page>#</related-page>
        </item>
        <item>
         <name>DR01w - Promo Code</name>
         <related-page>#</related-page>
        </item>
       </menu>
       <menu>
       <name>Weekly Commercial Checking</name>
        <item>
         <name>Commercial Checking Report - MNY N</name>
         <related-page>#</related-page>
        </item>
       </menu>
      </menu>
      <menu>
      <name>Cognos</name>
       <item>
        <name>Product Analysis Monthly Dashboard</name>
        <related-page>#</related-page>
       </item>
      </menu>
    </menu>
    <menu>
    <name>HBUS</name>
      <menu>
      <name>Cognos</name>
       <menu>
       <name>Product Analysis</name>
        <item>
         <name>PA101 - New Account Analysis Dashboard</name>
         <related-page>#</related-page>
        </item>
       </menu>
       <menu>
       <name>Balance Tier Analysis</name>
        <item>
         <name>BT101 - Balance Tier Analysis Report</name>
         <related-page>#</related-page>
        </item>
       </menu>
       <menu>
       <name>RM Data Analysis</name>
        <item>
         <name>RM191 RM Portfolio - Personal Customer Details By District</name>
         <related-page>#</related-page>
        </item>
       </menu>
      </menu>
       <name>Actuate</name>
       <related-page>#</related-page>
    </menu>
    </menu>
    If someone can point me in the right direction, it would be a great help!
    Thank you in advance.

    I am currently using Dreamweaver version 6, and based on what I read the transformation options for XSLT are only seen on version 8.
    So in order for me to make this work I would have to create an xslt file by scratch that would loop through the xml code and transform it so that I could render it in html or maybe jsp.
    This is where my knowledge is lacking.
    I found this code that I thought could be useful:
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <xsl:for-each select="//menu/entry">
      <xsl:call-template name="SubMenu">
      <xsl:with-param name="strCSS">Parent IsVisible</xsl:with-param>
    </xsl:call-template>
    </xsl:for-each>
    </xsl:template>
    <xsl:template name="SubMenu">
    <xsl:param name="strCSS" />
    <xsl:variable name="strURL" select="url" />
    <div class="{$strCSS}">
      <xsl:choose>
       <xsl:when test="count(entry) > 0">
        <!-- Element has children, it can be expanded -->
        <input type="hidden" id="hidIsExpanded" value="0" />
        <label id="lblExpand" class="Expander" onclick="ExpanderClicked()">+
        </label>
       </xsl:when>
       <xsl:otherwise>
        <label class="Expander">  </label>
       </xsl:otherwise>
      </xsl:choose>
      <a href="{$strURL}"><xsl:value-of select="name" /></a>
      <xsl:for-each select="entry">
       <xsl:call-template name="SubMenu">
        <xsl:with-param name="strCSS">NotVisible</xsl:with-param>
       </xsl:call-template>
      </xsl:for-each>
    </div>
    </xsl:template>
    </xsl:stylesheet>
    Along with this I have some javascript for the expand/collapse functionality....but even with this xslt I am unable o view the menu...so I must be doing something wrong????

  • XML 2 HTML. Please help..

    Is there any standard API / programme(already written) in Java, to convert a HTML document to XML and also XML to HTML.
    Any suggestions, tips, links are appreciated. Please help.
    Thanks in advance,
    Xej.

    Hi!
    For XML to HTML conversion I use XSL transformation utilizing Xalan for Java(xml.apache.org). The other way round is not such an easy task because HTML is a little bit unpredictable with its tag usage. For example a <br> tag as line break is ok for all browsers but it's not well formed XML - in this case it should be
    If HTML is well formed in XML terms it's called XHTML and since that is a XML language you could use XSL for transforming it into another XML document.
    ~k

  • XML to HTML help

    This is just for a hobby, thanks for any suggestions or help.
    Digitech makes guitar multi-effects pedals and they have a public user forum for sharing preset files to simulate a variety of guitar sounds. The particular products I am interested in are older discontinued models RPx400, RP300A and RP300, the RPx400 uses a USB computer interface to store and share preset files as XML data, the older RP300 and RP300A models have the same effects and user controls but lack the computer interface. By viewing the contents of the XML preset file from the newer unit, one can manually enter the preset into the older models. So in the interest of helping to share some guitar sounds among the small user community of these older model discontinued effects pedals, I was interested in creating a XML to HTML preset patch viewer for the RPx400 files so that RP300 and RP300A users could try them out. (I am not affiliated with Digitech at all).
    An example preset file from the RPx400 is here:
    http://www.digitech.com/soundcomm/patches/RPx400/Queen.r4p
    Another line of GNX effects pedals has a preset viewer on the web, based on a different file format, but is a good example of how I would like to display the HTML to be more human-readable:
    preset viewer example
    So, I am a little familiar with perl and would lean towards using that, and I would want to set it up as a web page on my Tiger G3 with Personal Web Sharing which I have running with a DynDNS static alias to my dynamic IP.
    Any pointers on how to set this up would be most appreciated.

    Glen Doggett wrote:
    Yes, exactly how I would like to set it up, since I'd like to share this patch viewer with others on my Personal Web Sharing server. I understand how to write the perl, but the part about setting up the CGI I'm not sure about,
    Any Perl script can run as a CGI. Look for the CGI.pm module, which should always be installed. It is pretty simple. You get the Apache environment in the Perl %ENV hash when your script is run. If handling a POST request, the query comes in on standard input. The CGI.pm module can handle all of this very nicely.
    like what directory to put the perl script, does it matter?
    Yes. it has to go into your CGI-BIN directory, wherever your Apache configuration has that configured to be. Getting the cgi-bin directory straight is the hardest part of writing a CGI in Perl. This is the #1 reason why PHP is so popular. The default configuration for PHP allows PHP scripts to run in any directory. The default for Perl requires them to be in the cgi-bin directory. That's the only difference - the default setting.
    Is there a good reference book or on-line on the Mac-version of CGI how to set it up?
    Yes, but there are probably a few hundred. For this, there is nothing Mac about it. Just look for Apache CGI in Perl on UNIX. I have an ancient book on my desk titled "CGI Programming on the World Wide Web" circa 1996. It doesn't have CGI.pm and the screenshots are Netscape on MacOS 7. Still, it is just out of date, nothing in it is wrong per se.
    It should be a 5-10 line Perl script, depending on how many comments you write.

  • Error in xml to html transform function in 11g(Help needed urgent)

    We are migrating from 9g to 11g.Code given below is working fine with 9g but giving following error while converting xml to html.
    Error:Exception occurred in XML_TO_HTML :ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00609: Function call with invalid number of arguments in 'position (//USER)'.
    Code :<?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="/">
    <HTML>
    <BODY>
    <!--begin header-->
    <xsl:for-each select="AMAP_REMMIT_EMP/HEADERS/HEADER">
    <TABLE border="0" cellpadding="0" cellspacing="0" style="padding:1px" width="100%" height="95" bgcolor="#EAEAEA"><font size="6" face="Arial">amdocs </font>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="VENDOR_NAME"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Date: <xsl:value-of select="RUN_DATE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="ADDRESS"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="TAX_ID"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> <xsl:value-of select="CITY"/> <xsl:value-of select="ZIP"/></TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Vendor Number: <xsl:value-of select="OSEK_MURSHE"/>
    </TD>
    </TR>
    <TR >
    <TD width="50%" align="left" ><b/><font size="2" face="Verdana" /> </TD>
    <TD width="50%" align="left"><b/><font size="2" face="Verdana" />Fax Number: <xsl:value-of select="FAX"/>
    </TD>
    </TR>
    </TABLE>
    </xsl:for-each>
    <!--end header-->
    <!--begin lines-->
    <p dir="ltr" align="center">
    <span style="font-family: Arial; text-decoration: underline; font-weight: 700">
    Subject: Remittance Advice</span></p>
    <table border="1" cellspacing="1" width="100%" bgcolor="#C0C0C0">
    <tr>
    <th width="20%"><font face="Arial"><b>Invoice Date</b></font></th>
    <th width="20%"><font face="Arial"><b>Invoice Number</b></font></th>
    <th width="40%"><font face="Arial"><b>Description</b></font></th>
    <th width="20%"><font face="Arial"><b><xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/CURRENCY"/> Amount</b></font></th>
    </tr>
    <xsl:for-each select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE">
    <tr>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_DATE"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="INVOICE_NUM"/></td>
    <td width="40%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="DESCRIPTION"/></td>
    <td width="20%" >
    <xsl:attribute name="bgcolor">
    <xsl:if test="position() mod 2 = 0">#DDDDDD</xsl:if>
    <xsl:if test="position() mod 2 = 1">#FFFFCC</xsl:if>
    </xsl:attribute>
    <xsl:value-of select="AMOUNT"/></td>
    </tr>
    </xsl:for-each>
    <tr>
    <td width="80%" bgcolor="#FFFFFF" colspan="3" align="right">
    <b>Total Payment:</b></td>
    <td width="20%" bgcolor="#FFFFFF"><xsl:value-of select="//TOTAL"/></td>
    </tr>
    </table>
    <p dir="ltr" align="left"><span style="font-family: Arial"><font size="2">In accordance with your instructions, this amount will be transferred to your <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES='Y'">
    account number <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/ACCOUNT"/> in bank
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BANK"/> , branch <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/BRANCH"/>
    on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/SITES/SITE/INCLUDE_BANK_DETAILES!='Y'">
    account on the date of <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/CHECK_DATE"/>.
    </xsl:if>
    <xsl:if test="AMAP_REMMIT_EMP/MERGE_LINE/CREDITNOTES/CREDITNOTE/CREDITNOTE>'0'">
    <p>The payment will be credited in two days from the payment date in your account.</p>
    </xsl:if>
    <p>In case this date is not a valid value date in the bank system, the money will be transferred in the next valid value date.</p>
    <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/NOTES/NOTE/DESCRIPTION"/>
    </font></span></p>
    <TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="50">
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" />Yours sincerely,</TD>
    </TR>
    <TR >
    <TD width="60%" ></TD>
    <TD width="40%" align="left"><b/><font size="2" face="Verdana" /> <xsl:value-of select="AMAP_REMMIT_EMP/MERGE_LINE/LINES/LINE/COMPANY_NAME"/></TD>
    </TR>
    <!--end lines-->
    <!--end trailer-->
    </TABLE>
    <table cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-left-width: 1; border-right-width: 1; border-top-style: solid; border-top-width: 1; border-bottom-width: 1; padding: 0" bordercolor="#111111" width="100%">
    <tr>
    <td width="34%">Alert No:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/ALERT_ID"/></td>
    <td width="33%">Environment: <xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/DB_NAME"/></td>
    <td width="33%">Date:<xsl:value-of select="AMAP_REMMIT_EMP/HEADERS/HEADER/MAIL_DATE"/></td>
    </tr>
    </table>
    <!--end trailer-->
    </BODY>
    </HTML>
    </xsl:template>
    </xsl:stylesheet>
    Thanks in advance.

    #1. We need to see the code that is being used to invoke the stylesheet.
    #2. We need to see the document that is being transformed...
    It's most likely a bug in 9g which has been fixed in 11g...

  • Help Please ! -- transform XML to HTML using xslt tag in JSP

    Hello,
    I have problem to do XSL transform in JSP.
    I have an XSL : test.xsl
    I have an XML : test.xml
    In JSP I have:
    <x:xslt media="html" xml="test.xml">
    <x:stylesheet media="html" uri="test.xsl" />
    </x:xslt>
    But It doesn't work the way it suppose to. What is wrong in my code ? I followed the URL http://e-docs.bea.com/wls/docs81/xml/xml_apps.html
    Thanks in advance,
    Christina

    Basically:
        try{
          //Setting up parameters.
          xml=new StreamSource(new File(xmlInput));
          xsl=new StreamSource(new File(xslInput));
          baos=new ByteArrayOutputStream();
          htmlResult=new StreamResult(baos);
          //Transform input(xml, xsl) onto html output.
          TransformerFactory tfactory=TransformerFactory.newInstance();
          Transformer transformer=tfactory.newTransformer(xsl);
          transformer.transform(xml, htmlResult);
          baos.writeTo(out);
          //System.err.println(htmlResult.getOutputStream().toString());
        catch(...){
        }I havent tested and I havent use this for a while, but I hope this can serve as a staring point.
    Regards,
    OO

  • Help Needed -- Oracle XML/SQL utility and PL/SQL parser

    Let's say we have an xml file
    <?xml version="1.0" standalone="no"?>
    <abc>
    <def>
    <ghi>test</ghi>
    </def>
    <jkl>
    <mno>testing</mno>
    </jkl>
    </abc>
    We can store the <def> tag in one table say def and <jkl> tag in another table say jkl.
    Is there a way to combine def and jkl and insert in one table so that there in one row with two columns test and testing??
    null

    Hi,
    Are u sure that it is a java enabled database? The most common
    case of failure with the xmlgen package is because the loadjava
    command did not succeed.
    Please make sure that oraclexmlsqlload.bat file loaded all the
    java procedures successfully. If not then u would have to java-
    enable your database by running the initjvm script. (please see
    the docs).
    Thx
    Murali
    Iveta Vojtko (guest) wrote:
    : Hi,
    : I have downloaded XML SQL Utility for Java against Oracle
    8.0.5
    : on WindowsNT. The xmlgen package was created successfully but
    : its body is invalid and my PL/SQL test has failed because of
    : following error: PLS-00103: Encountered the symbol "NAME"
    : when expecting one of the following: := . ( @ % ; not null
    range
    : renames default character. The symbol ":= was inserted abefore
    : "NAME" to continue.
    : Is it because I am not using Oracle8i? I just want to use the
    : server side of XML SQL. Please, reply asap. Thank you.
    Oracle Technology Network
    http://technet.oracle.com
    null

  • XML SQL help needed

    I am having trouble using OracleXML getXML, after
    setting all the path variables in env.csh I try
    java OracleXML getXML -user "user/passwd" "select a, b from blog"
    but get the following error.
    ORA-01019: unable to allocate memory in the user side
    The same error occurs for jdk1.1.7 and jdk1.2
    null

    Hi Dean,
    It might be something to do with connecting through oci8 to the
    Oracle executable. ( I am not sure since I dont know ur
    configuration etc..). BTW what release of Oracle is this?
    One thing for you to try out would be to write a small java
    program against the OracleXMLQuery class to see if that works.
    I have attached a very simple program below:-
    import java.sql.*;
    import java.math.*;
    import oracle.xml.sql.query.*;
    import oracle.jdbc.*;
    import oracle.jdbc.driver.*;
    public class testXML{
    public static void main(String args[]) throws SQLException
    DriverManager.registerDriver
    (new oracle.jdbc.driver.OracleDriver());
    Connection conn = (Connection)
    DriverManager.getConnection("jdbc:oracle:oci8:scott/tiger@");
    Statement stmt = conn.createStatement();
    ResultSet rset = stmt.executeQuery("select * from emp");
    OracleXMLQuery qry = new OracleXMLQuery(conn,rset);
    String xmlString = qry.getXMLString();
    System.out.println(" OUPUT IS "+xmlString);
    This code does a select from emp table available in scott/tiger
    schema. U can change the login and the table names
    appropriately. SEtup all the environment variables etc.. (see
    release notes), save this as testXML.java, run javac to get the
    class and execute it using "java testXML". If this doesnt work,
    try changing the getConnection line to use the thin jdbc, such
    as,
    DriverManager.getConnection
    ("jdbc:oracle:thin:@","scott","tiger");
    You can check out the JDBC documentation for how to specify
    your connection for your particular setup (such as specifying
    the port number etc.. if needed).
    Lemme know if it works,
    Murali
    Dean Kuo (guest) wrote:
    : I am having trouble using OracleXML getXML, after
    : setting all the path variables in env.csh I try
    : java OracleXML getXML -user "user/passwd" "select a, b from
    blog"
    : but get the following error.
    : ORA-01019: unable to allocate memory in the user side
    : The same error occurs for jdk1.1.7 and jdk1.2
    null

  • Oracle XSU: oracle.xml.sql.query.OracleXMLQuery is not recognized

    Hi, there!
    I've got a problem when tryed to use Oracle XSU (xml-sql utility to generate xml). My simple java application works fine using XSU. But when I created session stateless bean I've got an EJBException regarding this
    line:
    oracle.xml.sql.query.OracleXMLQuery qry = new oracle.xml.sql.query.OracleXMLQuery(conn, commandSQLStatement);
    It doesn't recognize OracleXMLQuery class as I've got in dump. So my classpath includes original location of that utility and Oracle parser.
    I really appreciate for any help.
    Thanks.
    strXML = qry.getXMLString();

    Patricia,
    Did you go through the link
    Re: XML SQL Utility
    You have to put xsu12.jar in the lib directory of the jdev.
    xsu12.jar is in the lib directory of the XDK installation.
    You can download XDK from
    http://www.oracle.com/technology/tech/xml/xdk/software/prod/xdk_java.html
    Just download the XDK kit, get the xsu12.jar from the lib directory and put in the lib directory of the jdev.
    -- Arvind

  • Oracle.xml.sql.query.OracleXMLQuery not found

    Hi!
    Sorry, but I got a project to continue and there is an import statement "import oracle.xml.sql.query.OracleXMLQuery;" and this gives me a compilation error...
    What do I need to do, where do I find this class??? Any help?
    //Patricia

    Patricia,
    Did you go through the link
    Re: XML SQL Utility
    You have to put xsu12.jar in the lib directory of the jdev.
    xsu12.jar is in the lib directory of the XDK installation.
    You can download XDK from
    http://www.oracle.com/technology/tech/xml/xdk/software/prod/xdk_java.html
    Just download the XDK kit, get the xsu12.jar from the lib directory and put in the lib directory of the jdev.
    -- Arvind

  • XML SQL utility ( Urgent)

    Hi,
    I am trying to install XML SQL utility. I have jdk1.2.2 and
    oracle xml parser v2. I ran the env.bat file. Then when I try to
    run the oraclexmlsqlload.sql file i got 822 errors. Then I try
    to run the first file "loadjava -resolve -verbose -user %
    USER_PASSWORD% xmlparser.jar" I got some these kind of errors,
    resolving: org/w3c/dom/html/HTMLBodyElement
    Error while resolving class org/w3c/dom/html/HTMLBodyElement
    ORA-04043: object org/w3c/dom/html/HTMLBodyElement does not
    exist
    resolving: org/xml/sax/helpers/LocatorImpl
    Error while resolving class org/xml/sax/helpers/LocatorImpl
    ORA-04043: object org/xml/sax/helpers/LocatorImpl does not
    exist
    resolving: oracle/xml/parser/v2/Axis
    Error while resolving class oracle/xml/parser/v2/Axis
    ORA-04043: object oracle/xml/parser/v2/Axis does not exist
    resolving: oracle/xml/parser/v2/PathExpr
    Error while resolving class oracle/xml/parser/v2/PathExpr
    ORA-04043: object oracle/xml/parser/v2/PathExpr does not
    exist
    resolving: oracle/xml/parser/v2/FromDescPrecedingSibling
    Error while resolving class
    oracle/xml/parser/v2/FromDescPrecedingSibling
    ORA-04043: object
    oracle/xml/parser/v2/FromDescPrecedingSibling does not exi
    st
    "I GOT SOME VIEW/TABLE DOES NOT EXIST ERROR ALSO"
    Here is my env.bat file..................
    rem Copyright (c) Oracle Corporation 1999. All Rights Reserved.
    rem
    rem NAME
    rem env
    rem
    rem DESCRIPTION
    rem environmental variables needed to compile or run
    OracleXML utility
    rem
    rem ------------------------ oraclexmlsql utility directory path
    rem set PD to point to the directory in which you expanded the
    zip file
    set PD=C:\Oracletools\OracleXSU
    rem ------------------------ JDBC classes
    set CLASSPATHJ=D:\Oracle\Ora8i\jdbc\lib\classes111.zip
    rem ------------------------
    rem This need not be changed
    set XMLSQL_DIR=%PD%\lib\oraclexmlsql.jar;%PD%;%PD%\src;%PD%\lib;%
    PD%\sample
    rem ------------------------ Oracle XML parser settings
    rem This need not be changed
    set ORACLE_PARSER=%PD%\lib\xmlparser.jar
    rem ------------------------ JDK_HOME
    set JDK_HOME=C:\JDK1.2.2
    rem ------------------------ CLASSPATH settings
    set CLASSPATH=%ORACLE_PARSER%;%CLASSPATHJ%;%JDK_HOME%
    \lib\classes.zip;%XMLSQL_DIR%;%CLASSPATH%
    I need urgent help from you...........
    Thanks,
    Chandran...
    null

    Hi,
    Here is the problem. As per your suggestion I had installed
    Jdk1.8.8 and jdbc driver too. Though I am having one JDBC driver
    in oracle8i, I have downloaded from your site and set the env
    path and run the env.bat file. Then when I tried to execute the
    Java OracleXML getXML -user "scott/tiger" "select * from emp"
    file I got runtime error. But first time what I did was I had
    already run the oraclexmlsqlload file so there are lot of
    chances for OracleXML class file to be deleted. So Again I ran
    the oraclexmlsqlload bat file, so definitely it should load the
    oraclexmlsql file and xmlparser file. I didn't get any error. So
    I tried the file for xmlgenpkg it says package created with no
    errors and when I tried the oraclexmlsqltest file I got the same
    error...what I did get yesterday............
    Here is the output , please help me out....
    SQL> @C:\Oracletools\OracleXSU\lib\oraclexmlsqltest.sql;
    SQL> Rem
    SQL> Rem $Header: oraclexmlsqltest.sql 27-jul-99.22:53:37
    vnimani Exp $
    SQL> Rem
    SQL> Rem oraclexmlsqltest.sql
    SQL> Rem
    SQL> Rem Copyright (c) Oracle Corporation 1999. All Rights
    Reserved.
    SQL> Rem
    SQL> Rem NAME
    SQL> Rem oraclexmlsqltest.sql - <one-line expansion of
    the name>
    SQL> Rem
    SQL> Rem DESCRIPTION
    SQL> Rem <short description of component this file
    declares/defines>
    SQL> Rem
    SQL> Rem NOTES
    SQL> Rem <other useful comments, qualifications, etc.>
    SQL> Rem
    SQL> Rem MODIFIED (MM/DD/YY)
    SQL> Rem vnimani 07/27/99 - add testing for
    setStyleSheetType
    SQL> Rem vnimani 06/19/99 -
    Rem mkrishna 06/13/99 -
    Rem mkrishna 06/13/99 - add more testsSQL> Rem mkrishna 05/27/99 - sql testing the db loaded util
    SQL> Rem mkrishna 05/27/99 - Created
    SQL> Rem
    SQL>
    SQL> Rem Do not set serveroutput to be on here. There are
    problems (bug) when the
    SQL> Rem serveroutput is turned on before the last PL/SQL block
    is executed.
    SQL>
    SQL> set long 4000
    SQL> set pages 8000
    SQL> set echo on
    SQL>
    SQL> Rem Use these to test the results..
    SQL> select xmlgen.getXML('select * from scott.emp',1) from dual;
    select xmlgen.getXML('select * from scott.emp',1) from dual
    ERROR at line 1:
    ORA-29540: class OracleXMLStore does not exist
    ORA-06512: at "SCOTT.XMLGEN", line 83
    ORA-06512: at "SCOTT.XMLGEN", line 83
    ORA-06512: at line 1
    SQL> select xmlgen.getXML('select * from all_Tables where
    owner=''SCOTT''') from dual;
    select xmlgen.getXML('select * from all_Tables where
    owner=''SCOTT''') from dual
    ERROR at line 1:
    ORA-29540: class OracleXMLStore does not exist
    ORA-06512: at "SCOTT.XMLGEN", line 83
    ORA-06512: at "SCOTT.XMLGEN", line 83
    ORA-06512: at line 1
    SQL>
    SQL> Rem
    SQL>
    SQL>
    SQL> commit;
    Commit complete.
    Thanks,
    Chan...
    Oracle XML Team wrote:
    : Hi Chan,
    : Soon we will release a version of the XSU which runs with
    : JDK1.2 but for now the XSU requires JDK1.1.x. Also, your
    : Oracle8i (or later) database must be java enabled.
    : for starters, try and run the command line front end of the
    : utility:
    : java OracleXML getXML -user "scott/tiger" "select * from emp"
    : once you get this part running then proceed trying to load
    the
    : utility into the db. Note, to run the command line front end
    you
    : will need to have the Oracle JDBC drivers for use with
    JDK1.1.x.
    : They are freely available from:
    : technet.oracle.com/tech/java/sqlj_jdbc
    : Chan (guest) wrote:
    : : Hi,
    : : I am trying to install XML SQL utility. I have jdk1.2.2
    and
    : : oracle xml parser v2. I ran the env.bat file. Then when I try
    : to
    : : run the oraclexmlsqlload.sql file i got 822 errors. Then I
    try
    : : to run the first file "loadjava -resolve -verbose -user %
    : : USER_PASSWORD% xmlparser.jar" I got some these kind of
    errors,
    : : resolving: org/w3c/dom/html/HTMLBodyElement
    : : Error while resolving class org/w3c/dom/html/HTMLBodyElement
    : : ORA-04043: object org/w3c/dom/html/HTMLBodyElement does
    not
    : : exist
    : : resolving: org/xml/sax/helpers/LocatorImpl
    : : Error while resolving class org/xml/sax/helpers/LocatorImpl
    : : ORA-04043: object org/xml/sax/helpers/LocatorImpl does
    not
    : : exist
    : : resolving: oracle/xml/parser/v2/Axis
    : : Error while resolving class oracle/xml/parser/v2/Axis
    : : ORA-04043: object oracle/xml/parser/v2/Axis does not
    exist
    : : resolving: oracle/xml/parser/v2/PathExpr
    : : Error while resolving class oracle/xml/parser/v2/PathExpr
    : : ORA-04043: object oracle/xml/parser/v2/PathExpr does not
    : : exist
    : : resolving: oracle/xml/parser/v2/FromDescPrecedingSibling
    : : Error while resolving class
    : : oracle/xml/parser/v2/FromDescPrecedingSibling
    : : ORA-04043: object
    : : oracle/xml/parser/v2/FromDescPrecedingSibling does not exi
    : : st
    : : "I GOT SOME VIEW/TABLE DOES NOT EXIST ERROR ALSO"
    : : Here is my env.bat file..................
    : : rem Copyright (c) Oracle Corporation 1999. All Rights
    : Reserved.
    : : rem
    : : rem NAME
    : : rem env
    : : rem
    : : rem DESCRIPTION
    : : rem environmental variables needed to compile or run
    : : OracleXML utility
    : : rem
    : : rem ------------------------ oraclexmlsql utility directory
    : path
    : : rem set PD to point to the directory in which you expanded
    the
    : : zip file
    : : set PD=C:\Oracletools\OracleXSU
    : : rem ------------------------ JDBC classes
    : : set CLASSPATHJ=D:\Oracle\Ora8i\jdbc\lib\classes111.zip
    : : rem ------------------------
    : : rem This need not be changed
    : : set
    : XMLSQL_DIR=%PD%\lib\oraclexmlsql.jar;%PD%;%PD%\src;%PD%\lib;%
    : : PD%\sample
    : : rem ------------------------ Oracle XML parser settings
    : : rem This need not be changed
    : : set ORACLE_PARSER=%PD%\lib\xmlparser.jar
    : : rem ------------------------ JDK_HOME
    : : set JDK_HOME=C:\JDK1.2.2
    : : rem ------------------------ CLASSPATH settings
    : : set CLASSPATH=%ORACLE_PARSER%;%CLASSPATHJ%;%JDK_HOME%
    : : \lib\classes.zip;%XMLSQL_DIR%;%CLASSPATH%
    : : I need urgent help from you...........
    : : Thanks,
    : : Chandran...
    : Oracle Technology Network
    : http://technet.oracle.com
    null

  • Error while parsing or executing XML-SQL document

    friends,
    my scenario is based on file to jdbc.i am facing  an error in receiver CC in RWB.
    The error states that '
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'MATMAS' (structure 'STATEMENT'): java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]String or binary data would be truncated.'
    My SOAP xml message is
    - <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    - <SOAP:Header>
    - <sap:Main xmlns:sap="http://sap.com/xi/XI/Message/30" versionMajor="3" versionMinor="0" SOAP:mustUnderstand="1" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="wsuid-main-92ABE13F5C59AB7FE10000000A1551F7">
      <sap:MessageClass>ApplicationMessage</sap:MessageClass>
      <sap:ProcessingMode>asynchronous</sap:ProcessingMode>
      <sap:MessageId>18f17dd0-d503-11dc-cb4d-001635b02bfd</sap:MessageId>
      <sap:TimeSent>2008-02-06T22:30:21Z</sap:TimeSent>
    - <sap:Sender>
      <sap:Party agency="http://sap.com/xi/XI" scheme="XIParty" />
      <sap:Service>ECC</sap:Service>
      </sap:Sender>
    - <sap:Receiver>
      <sap:Party agency="http://sap.com/xi/XI" scheme="XIParty" />
      <sap:Service>BS_JDBC</sap:Service>
      </sap:Receiver>
      <sap:Interface namespace="http://file_to_jdbc">MI_JDBC_RECEIVER</sap:Interface>
      </sap:Main>
    - <sap:ReliableMessaging xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
      <sap:QualityOfService>ExactlyOnce</sap:QualityOfService>
      </sap:ReliableMessaging>
    - <sap:DynamicConfiguration xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
      <sap:Record namespace="http://sap.com/xi/XI/System/File" name="Directory">
    sapecc50\sapmnt\trans</sap:Record>
      <sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileEncoding">UTF-8</sap:Record>
      <sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileType">txt</sap:Record>
      <sap:Record namespace="http://sap.com/xi/XI/System/File" name="FileName">matmas1.txt</sap:Record>
      </sap:DynamicConfiguration>
    - <sap:HopList xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
    - <sap:Hop timeStamp="2008-02-06T22:30:21Z" wasRead="false">
      <sap:Engine type="AE">af.e6e.sapecc6eval</sap:Engine>
      <sap:Adapter namespace="http://sap.com/xi/XI/System">XIRA</sap:Adapter>
      <sap:MessageId>18f17dd0-d503-11dc-cb4d-001635b02bfd</sap:MessageId>
      <sap:Info />
      </sap:Hop>
    - <sap:Hop timeStamp="2008-02-06T22:30:21Z" wasRead="false">
      <sap:Engine type="IS">is.01.sapecc6eval</sap:Engine>
      <sap:Adapter namespace="http://sap.com/xi/XI/System">XI</sap:Adapter>
      <sap:MessageId>18f17dd0-d503-11dc-cb4d-001635b02bfd</sap:MessageId>
      <sap:Info>3.0</sap:Info>
      </sap:Hop>
    - <sap:Hop timeStamp="2008-02-06T22:30:22Z" wasRead="false">
      <sap:Engine type="AE">af.e6e.sapecc6eval</sap:Engine>
      <sap:Adapter namespace="http://sap.com/xi/XI/System">XIRA</sap:Adapter>
      <sap:MessageId>18f17dd0-d503-11dc-cb4d-001635b02bfd</sap:MessageId>
      </sap:Hop>
      </sap:HopList>
    - <sap:Diagnostic xmlns:sap="http://sap.com/xi/XI/Message/30" SOAP:mustUnderstand="1">
      <sap:TraceLevel>Information</sap:TraceLevel>
      <sap:Logging>Off</sap:Logging>
      </sap:Diagnostic>
      </SOAP:Header>
    - <SOAP:Body>
    - <sap:Manifest xmlns:sap="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:wsu="http://www.docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="wsuid-manifest-5CABE13F5C59AB7FE10000000A1551F7">
    - <sap:Payload xlink:type="simple" xlink:href="cid:[email protected]">
      <sap:Name>MainDocument</sap:Name>
      <sap:Description />
      <sap:Type>Application</sap:Type>
      </sap:Payload>
      </sap:Manifest>
      </SOAP:Body>
      </SOAP:Envelope>
    and payload message is
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_JDBC_RECEIVER xmlns:ns0="http://file_to_jdbc">
    - <STATEMENT>
    - <ROW action="INSERT">
      <TABLE>MATMAS</TABLE>
    - <access>
      <MATNR>38</MATNR>
      <MTART>HALB</MTART>
      <MATKL>00107</MATKL>
      <MEINS>pc</MEINS>
      <ERSDA>2008.04.05</ERSDA>
      <BRGEW>10</BRGEW>
      <NTGEW>12</NTGEW>
      <GEWEI>KG</GEWEI>
      </access>
    - <access>
      <MATNR>88</MATNR>
      <MTART>FERT</MTART>
      <MATKL>02004</MATKL>
      <MEINS>PC</MEINS>
      <ERSDA>2008.04.05</ERSDA>
      <BRGEW>12</BRGEW>
      <NTGEW>13</NTGEW>
      <GEWEI>KG</GEWEI>
      </access>
    - <access>
      <MATNR>89</MATNR>
      <MTART>FERT</MTART>
      <MATKL>02004</MATKL>
      <MEINS>PC</MEINS>
      <ERSDA>2008.03.02</ERSDA>
      <BRGEW>12</BRGEW>
      <NTGEW>14</NTGEW>
      <GEWEI>KG</GEWEI>
      </access>
    - <access>
      <MATNR>98</MATNR>
      <MTART>HALB</MTART>
      <MATKL>2</MATKL>
      <MEINS>PC</MEINS>
      <ERSDA>2006.09.01</ERSDA>
      <BRGEW>12</BRGEW>
      <NTGEW>12</NTGEW>
      <GEWEI>KG</GEWEI>
      </access>
    - <access>
      <MATNR>170</MATNR>
      <MTART>NLAG</MTART>
      <MATKL>4</MATKL>
      <MEINS>PC</MEINS>
      <ERSDA>2005.03.02</ERSDA>
      <BRGEW>2</BRGEW>
      <NTGEW>3</NTGEW>
      <GEWEI>KG</GEWEI>
      </access>
    - <access>
      <MATNR>178</MATNR>
      <MTART>NLAG</MTART>
      <MATKL>4</MATKL>
      <MEINS>PC</MEINS>
      <ERSDA>2007.03.06</ERSDA>
      <BRGEW>3</BRGEW>
      <NTGEW>4</NTGEW>
      <GEWEI>KG</GEWEI>
      </access>
    - <access>
      <MATNR>188</MATNR>
      <MTART>NLAG</MTART>
      <MATKL>5</MATKL>
      <MEINS>PC</MEINS>
      <ERSDA>2007.05.02</ERSDA>
      <BRGEW>2</BRGEW>
      <NTGEW>3</NTGEW>
      <GEWEI>KG</GEWEI>
      </access>
    - <access>
      <MATNR>288</MATNR>
      <MTART>HALB</MTART>
      <MATKL>101</MATKL>
      <MEINS>PC</MEINS>
      <ERSDA>2006.02.11</ERSDA>
      <BRGEW>5</BRGEW>
      <NTGEW>4</NTGEW>
      <GEWEI>KG</GEWEI>
      </access>
    - <access>
      <MATNR>358</MATNR>
      <MTART>HAWA</MTART>
      <MATKL>2</MATKL>
      <MEINS>PC</MEINS>
      <ERSDA>2007.09.09</ERSDA>
      <BRGEW>500</BRGEW>
      <NTGEW>500</NTGEW>
      <GEWEI>G</GEWEI>
      </access>
    - <access>
      <MATNR>359</MATNR>
      <MTART>HAWA</MTART>
      <MATKL>2</MATKL>
      <MEINS>PC</MEINS>
      <ERSDA>2007.08.01</ERSDA>
      <BRGEW>20</BRGEW>
      <NTGEW>10</NTGEW>
      <GEWEI>G</GEWEI>
      </access>
      </ROW>
      </STATEMENT>
      </ns0:MT_JDBC_RECEIVER>
    Could anybody help me in sorting out this issue.My advance thanks

    hi,
    ypur structure is bad defined.
    if you want to do an insert, the DT should be
    <ns0:MT_JDBC_RECEIVER xmlns:ns0="http://file_to_jdbc">
    ___<StatementName>
    ______<dbTableName action=”INSERT”>
    _____<table>MATMAS</table>
    _______ <access>
    ___________<MATNR>38</MATNR>
    ___________<MTART>HALB</MTART>
    ___________<MATKL>00107</MATKL>
    ___________<MEINS>pc</MEINS>
    ___________<ERSDA>2008.04.05</ERSDA>
    ___________<BRGEW>10</BRGEW>
    ___________<NTGEW>12</NTGEW>
    ___________<GEWEI>KG</GEWEI>
    ______</access>
    _____</dbTableName>
    __ </StatementName>
    </ns0:MT_JDBC_RECEIVER>
    the ROW field is used when you wait receive data from DB for example you execute and SQL Query from Sender communication channel "SELECT name FROM TABLE Names"
    so, the result of this query would be, for example:
    <row>
    ____<name>joge</name>
    </row>
    <row>
    ____<name>pepe</name>
    </row>
    <row>
    ____<name>nicola</name>
    </row>
    See this link
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/frameset.htm
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Feb 8, 2008 8:40 AM
    Edited by: Rodrigo Pertierra on Feb 8, 2008 8:42 AM

  • Convert rtf, pdf or doc file to xml or html

    I'm using RichTextEditor from Flex, but I need to
    upload a .doc, .pdf or .rtf file into RichTextEditor. Or maybe a
    way to convert these files to xml or html.... please can you help
    me??

    Flex has no inherent functionality to do doc conversions. You
    are also looking for the ability to convert several different file
    types that might require seperate conversion methods. Also, it is
    important to note that Flex does not have very good HTMl
    functionality. In fact, it has a very limited subsed of HTML tags
    that are allowable and also require some distinct formatting
    requirements. So, if you are trying to convert PDF's and Docs, RTF
    etc, you might have a difficult time trying to get them to diosplay
    in the Flex RTE.
    I have struggled with trying to get a good PDF converter for
    multiple file types. Adobe does have some good server side
    utilities, but budget might be an issue.
    You can find several PDF converters that are server based
    that you migth be able to leverage.
    If you are CF user, Scorpio does have a better integration
    with PDF and LiveCycle services that may help when it is released.
    Good Luck.
    AL

  • Oracle.xml.sql.OracleXMLSQLException when using OracleXMLQuery getXMLDOM()

    Hi!
    I am trying to reuse a code in JDeveloper to get XML from a query. I have copied the code from a method and created a new method with the copied code and changed it. The problem is that when I run the old code I now get following error:
    Ett oförväntat fel har inträffat: Application: FND, Message Name: FND_GENERIC_MESSAGE.
    Tokens: MESSAGE = oracle.xml.sql.OracleXMLSQLException: Det här objektet har stängts.
    Vill du inte att objektet ska stängas automatiskt mellan anropen kan du granska metoden 'keepObjectOpen()'.;
    This means in english something like:
    An unexpected error accoured: Application: FND, Message Name: FND_GENERIC_MESSAGE = oracle.xml.sql.OracleXMLSQLException: This object is closed. If you don't want the object to close automatically between calls you can check method 'keepObjectOpen()';
    the code I'm running is:
    public String punchoutSomething()
    throws Exception
    StringBuffer sqlForXml =new StringBuffer("select pv.*"
    +", cursor(select * from XXPOS_PUNCHOUT_TABLE2 c where c.vendor_id=pv.vendor_id) as contacts"
    +" from XXPOS_PUNCHOUT_TABLE1 pv where vendor_id in (");
    // add all ids
    SuppSummVOImpl vendorView = getSuppSummVO();
    Row row;
    int punchoutCnt=0;
    // vendorView.reset();
    Row[] selectedRows = vendorView.getFilteredRows("SelectStatus","Y");
    for(int i=0;i<selectedRows.length;i++)
    if(punchoutCnt>0)
    sqlForXml.append(",");
    sqlForXml.append(((Number)selectedRows.getAttribute("VendorId")).toString());
    punchoutCnt++;
    if(punchoutCnt==0)
    sqlForXml.append("-1"); // make sql valid, will not return rows
    sqlForXml.append(")");
    // System.out.println(sqlForXml); // DEBUG
    OADBTransaction tx = (OADBTransaction)getOADBTransaction();
    OracleXMLQuery xq = new OracleXMLQuery( tx.getJdbcConnection()
    , sqlForXml.toString()
    xq.setRaiseException(true); // in case of error raise an exception (default
    // is to generate an error document
    xq.setEncoding("UTF-8"); // not necessary?
    xq.useLowerCaseTagNames();
    xq.setRowsetTag("vendors");
    xq.setRowTag("vendors_row");
    //System.out.println(xq.getXMLString()); // DEBUG
    XMLDocument suppl = (XMLDocument)xq.getXMLDOM();
    XSLProcessor xslt = new XSLProcessor();
    InputStream sheetStream = this.getClass().getResourceAsStream("mystylesheet.xsl");
    if(sheetStream==null)
    throw new Exception("Could not load stylesheet");
    XSLStylesheet sheet = xslt.newXSLStylesheet(
    sheetStream
    StringWriter serialize = new StringWriter();
    xslt.processXSL(sheet,suppl,new PrintWriter(serialize));
    String returnXML = serialize.getBuffer().toString();
    // System.out.println("X:"+returnXML); // DEBUG
    sheetStream.close();
    return returnXML;
    ===================
    i've copied the same code into another method and only changed the sql-statment to be used and the stylesheet to use to transform the xml. Is something wrong with that?
    Another question: if the xsl refers to a xsd but wihtout any path where should it be?
    Thanks for the help,
    Patricia

    Actually, having looked at Metalink, seems that although this message may be accurate and correct,
    it has been 'introduced' as part of the 9i JDBC driver.
    So, I used the 8i JDBC driver I happened to have instead and that worked fine.

Maybe you are looking for

  • Trying to update OS to fix White Screen problem.

    Hello, I have had my Blackberry 8520 on a Virgin contract for about a year and a half now. Recently it has started randomly just changing to a black white screen that won't allow me to turn it off or perform any functions. The way I temporarily fix t

  • Photoshop CS3 printing garbage characters on HP LaserJet 1300

    After installing CS3, Photoshop prints garbage characters on my HP LaserJet 1300. Yes, I have tried printing as ASCII, ASCII85, Binary and JPEG - nothing helps (plus the settings won't stick even after holding down Alt and clicking the Remember butto

  • How to use alias in "From" field when I send a mail with utl_smtp ?

    Hi all, I'm using a PL/SQL package with an Oracle 11G database to send mails. It works fine but instead of use of my mail in "From" field like "[email protected]" as sender E-mail address, I would like to have "Toto" in the sender address. I tryied t

  • Display goes fuzzy then shuts down

    HI, my macbook pro display just goes fuzzy all of a sudden and I can't do anything. It's hard to explain but it's just like a bunch of lines flickering. Then most of the time it shuts itself down or I have to do it manually. I'll restart it and most

  • Delivery block on item level in ERP when document is changed in CRM

    Hi, we have integration order management from CRM replicated to ECC 6. each time we change the document in CRM, the item in ECC then will have delivery block. even the header delivery block is removed, the item will remain block for delivery. unless