Xsql:include-xsql problem

I am attempting to include an authentication widget into each page of a site I am working on using the following code:
<?xml version="1.0"?>
<datapage connection="myDB" xmlns:xsql="urn:oracle-xsql">
<xsql:include-xsql href="authenticate.xsql?xapi_version=1&co_num=106&username=useruser&password=password"/>
</datapage>
The included page is as follows:
<?xml version="1.0"?>
<auth connection="myDB" xmlns:xsql="urn:oracle-xsql">
<xsql:include-owa>
BEGIN
XAPI.Test('{@xapi_version}','{@co_num}','{@username}','{@password}');
END;
</xsql:include-owa>
</auth>
I have tried the xsql:include-xsql tag with the reparse attribute set to both 'yes' and the default value but each time I attempt to access the page I receive the following error:
XSQL-005: XSQL page is not well-formed.
XML parse error at line 3, char 67
Expected ';'.
I cannot source the reason for this error because if I access the page to be included direct (with parameters on the query string) it works fine. Any help would be greatly appreciated.
thanks-->cristian
null

This bug was fixed in XSQL 1.0.4.3, the latest production release that is part of the XDK for Java 8.1.7.1 download here on OTN.

Similar Messages

  • Character problems with xsql:include-xsql reparse="yes"

    I have a problem retrieving XML-fragments from CLOB columns.
    Danish ISO-8859-1 characters (aelig, oslash, aring) are returned as "?" from Apache/Jserv when using xsql:include-xsql reparse="yes".
    My platform is Solaris9/Oracle-9.2.0.2/XDK-9.2.0.4.
    Database characterset is we8iso8859p1.
    I'm using the Apache/Jserv that comes with Oracle 9.2.0.1.
    Steps to reproduce problem:
    -- Table data:
    create table tab1 (id number,clob_col clob);
    insert into tab1 values(1, '<x>fxe</x>');
    /*inserted characters are aelig(230), oslash(248), aring(229)*/
    commit;
    -- test.xsql:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <testdata xmlns:xsql="urn:oracle-xsql" connection="pnrtest">
    <xsql:include-xsql reparse="yes" href="inc.xsql" />
    </testdata>
    -- inc.xsql:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <?xml-stylesheet type="text/xsl" href="unquote_clob_col.xsl"?>
    <xsql:query
    xmlns:xsql="urn:oracle-xsql"
    connection="pnrtest"
    tag-case="lower"
    >
    select clob_col
    from tab1
    </xsql:query>
    -- unquote_clob_col.xsl:
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0">
    <xsl:output method="xml" indent="yes" omit-xml-declaration="no" encoding="ISO-8859-1"/
    <xsl:include href="identity.xsl"/>
    <xsl:template match="clob_col">
    <clob_col>
    <xsl:value-of select="." disable-output-escaping="yes"/>
    </clob_col>
    </xsl:template>
    </xsl:stylesheet>
    -- identity.xsl:
    <!-- The Identity Transformation -->
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!-- Whenever you match any node or any attribute -->
    <xsl:template match="node()|@*">
    <!-- Copy the current node -->
    <xsl:copy>
    <!-- Including any attributes it has and any child nodes -->
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    -- Notes:
    Running test.xsql works fine with XSQL command-line, but FAILS through Apache/Jserv (danish characters are returned as "?").
    inc.xsql works fine through XSQL command-line and Apache/Jserv, problem only happens with xsql:include-xsql reparse="yes" (e.g. test.xsql).
    xsql:include-xml works fine, but I cannot use this, bca. in my real business case I'm selecting more than one row from the database.
    I've checked and double-checked my jserv.properties several times, and believes it to be correct.
    The xsql:include-xsql reparse="yes" technique works fine in our Solaris9/Oracle-8.1.7/iAS-1.0.2.2 environment.
    Any suggestions ?
    -- Peter ([email protected])

    If I put the following line in jserv.properties:
    wrapper.env=LANG=en_US.ISO8859-1
    the problem with xsql:include-xsql reparse="yes" seems to go away.
    Really strange, since Oracle products in my experience normally only uses NLS_LANG, not LANG.
    Also, we're accessing several databases with different charactersets from the same ApacheJserv installation, so I don't understand why LANG (or NLS_LANG) should be set to a particular value.
    Can anybody explain ?
    -- Peter

  • Passing parameters to an included xsql file (using xsql:include-xsql)

    Hi,
    because I want to use different stylesheets for my transformations I use the setup with including the actual query xsql file from a sort of wrapper xsql files around it with a different stylesheet instruction.
    All is fine but request parameters given to the wrapper xsql file are not visible in the actual query xsql file.
    I pass values to the included file as follows:
    <xsql:include href="url_off_file_to_include?p_par1={@p_par1}" reparse="yes" />
    The wrapper file has received the p_par1 parameter first.
    The value of the parameter does not end up in the included file.
    Any ideas ??
    Cumquat
    Dave Ruzius

    The include directive <%@ include %> adds the included file inline into including JSP.
    You probably would want to use the include action: <jsp:include page="includedPage.jsp" />. This will add the response of the included page at that location.
    However, keep in mind that the var in <c:forEach> would be scoped to within the tag, so it won't be accessible to the included page. What you can do, is use <c:set var="anotherVar" value="${vf}" scope="request" />. This will allow the contents of vf to be accessible in the included page via "anotherVar".
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Include xsql problem with mulitbyte characters

    I have an xml file containing chinese and korean UTF-8 that has a xsl applied to it then output NO PROBLEM.
    Now I want to apply another xsl before passing on to the final xsl so I used include-xsql in the main xsql file.
    Works fine as long as the source xml contains english.
    Problem is that if I do this all the non-ascii characters are turned into ??????
    So somewhere there must be a conversion being performed but the source is utf-8 and I though by default all xml stuff was utf-8 so where/why is the conversion happening and how can I avoid it.
    Rob

    This bug was fixed in XSQL 1.0.4.3, the latest production release that is part of the XDK for Java 8.1.7.1 download here on OTN.

  • XDK 9.0.2.0.C XSQL parameter visibility problem

    Dear Steven,
    I consider this as a serious bug:
    When one set XSQL page or XSQL session page parameter it
    become visible in page/request/session or otherwise only after
    the following round trip to the client.
    In other words, it is not present in the incoming XML to xslt to
    process.
    Thank you,
    David

    David,
    I just re-tested with 9.0.2C and things are working as they
    should. For example, the following XSQL page:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="test.xsl"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="demo">
      <xsql:set-page-param name="page-param" value="1"/>
      <xsql:set-session-param name="sess-param" value="2"/>
      <xsql:set-stylesheet-param name="sheet-param" value="3"/>
      <xsql:include-param name="page-param"/>
      <xsql:include-param name="sess-param"/>
    </page>referencing the following stylesheet:
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      <xsl:param name="sheet-param"/>
      <xsl:template match="/">
        <html><body>
        <b><xsl:value-of select="$sheet-param"/></b>
        <b><xsl:value-of select="/page/sess-param"/></b>
        <b><xsl:value-of select="/page/page-param"/></b>
        </body></html>
      </xsl:template>
    </xsl:stylesheet>shows an HTML page with the expected "321" the first request.
    If you are talking about cookies, then you are correct that the
    cookies you set this request are not visible until the next
    request (which is the standard way cookies work), however, you
    can use the new XSQL 9.0.2C feature to "see" the cookie value
    immediately by adding the immediate="yes"] attribute to
    your <xsql:set-cookie> action.
    If I've misunderstood your problem, please post a testcase that
    illustrates the issue. Thanks.

  • Bug in include-xsql

    If I use include-xsql to include an xml-fragment stored in a clob from the db and in the included xsql I use a stylesheet with disable-output-escaping so that I can treat the clob contents as real xml when included and the clob inlcudes non-8859 characters (in this specific case UTF8 chinese characters) the characters are all turned into "?".
    If you view the included xsql directly then there is no problem and the characters are correctly displayed.
    I think the problem occurs in the stylesheet processing.
    Basically take Steve's "DOCUMENT" example and input chinese characters into the clob and it will show the same problem.
    Anyone else seen the problem, have a work around or know when it will be fixed.
    Rob
    null

    Yes we are using 9.0.2, also had same problem with 1.0.4.3.
    To be honest we have never noticed that there has been any "fix" in the reparse=yes issue....
    Rob
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    Are you using either the XSQL 1.0.4.3 or XSQL 9.0.2 releases?
    Both of these latest releases have a fix for the [b]reparse='yes' case with foreign characters.
    If you're already using one of these latest releases, then you may have found a new issue.<HR></BLOCKQUOTE>
    null

  • Include XSQL page into UIX page

    Hello,
    I am trying to build a page in UIX and then include an XSQL page into the <contents> region of the <pagelayout>.
    Does anyone know if this is possible? And if yes, if this should work agains OC4J and/or Apache/Jserv?
    I tried including the page using <uix:include node="pagename" /> but
    the uix engine assumes that the node has an .uix extension so this does not work (or even compile). Using the xsql namespace, I also tried <uix:include xsql:node"pagename" /> which does compile, but does not generate any output.
    Any ideas?
    Jeroen van Veldhuizen

    Hello,
    I am trying to build a page in UIX and then include an XSQL page into the <contents> region of the <pagelayout>.
    Does anyone know if this is possible? And if yes, if this should work agains OC4J and/or Apache/Jserv?
    I tried including the page using <uix:include node="pagename" /> but
    the uix engine assumes that the node has an .uix extension so this does not work (or even compile). Using the xsql namespace, I also tried <uix:include xsql:node"pagename" /> which does compile, but does not generate any output.
    Any ideas?
    Jeroen van Veldhuizen Hello Jeroen,
    First of all, why are you trying to do this? Is it for data binding with BC4J view objects? ?If so, then you might want to know that UIX already has native data binding support for BC4J.
    Having said that, I am not sure if you can combine XSQL and UIX tags. I shall verify this and let you know.
    Thanks
    -Kishore
    JDev Team

  • xsql:include-xml

    if the href for the <xsql:include-xml> call doesn't return any results or returns null you get an xsql error. Is there a workaround?
    for example:
    <xsql:include-xml id="0">
    select xmltype.getclobval(doc) from tbl_test where id = {@id}
    </xsql:include-xml>
    if doc is null or the resultset is empty then you get <xsql-error action="xsql:include-xml" />.

    Include a <xsql:no-rows-query> element.
    <xsql:include-xml href="">
    Select xmltype.getClobVal
    <xsql:no-rows-query>
    Select Statement to use if include-xml returns null.
    </xsql:no-rows-query>
    </xsql:include-xml>

  • Xsql CURSOR XSQL-017

    Hi everybody.
    I have a problem when I try to run a xsql with my browser.
    I type: http://hostaix433/TremaDesa/XSQL/SEst1.xsql and I get the next message :
    Oracle XDK Java 9.2.0.6.0 Production
    XSQL-017: Unexpected Error Occurred
    java.lang.NoClassDefFoundError: java/util/Map
    at
    at oracle.jdbc.driver.OracleConnection.addClassMapEntry(OracleConnection.java:2849)
    at oracle.jdbc.driver.OracleConnection.addDefaultClassMapEntriesTo(OracleConnection.java:2843)
    at oracle.jdbc.driver.OracleConnection.initializeClassMap(OracleConnection.java:2529)
    at oracle.jdbc.driver.OracleConnection.ensureClassMapExists(OracleConnection.java:2523)
    at oracle.jdbc.driver.OracleConnection.getTypeMap(OracleConnection.java:2829)
    at oracle.jdbc.driver.OracleStatement.getObjectValue(OracleStatement.java:5849)
    at oracle.jdbc.driver.OracleResultSetImpl.getObject(OracleResultSetImpl.java:765)
    at oracle.xml.sql.dataset.OracleXMLDataSetExtJdbc.getColumnTypeObject(OracleXMLDataSetExtJdbc.java:494)
    at oracle.xml.sql.core.OracleXMLConvert.createColNames(OracleXMLConvert.java:1100)
    at oracle.xml.sql.core.OracleXMLConvert.getXML(OracleXMLConvert.java:848)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:361)
    at oracle.xml.sql.query.OracleXMLQuery.getXMLDOM(OracleXMLQuery.java:308)
    at oracle.xml.xsql.actions.XSQLQueryHandler.handleAction(XSQLQueryHandler.java:246)
    at oracle.xml.xsql.XSQLDocHandler.getDocument(XSQLDocHandler.java:149)
    at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:140)
    at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:499)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    at org.apache.jserv.JServConnection.run(JServConnection.java:294)
    at java.lang.Thread.run(Thread.java)
    My xsql file :
    <xsql:query connection="bddesa2_trema" xmlns:xsql="urn:oracle-xsql">
    SELECT idse, nombre, modoacceso, nombrepc,
    CURSOR ( SELECT idbus, nombre, puerto, dirdatos, idse
    FROM bus
    WHERE bus.idse = subestacion.idse ) as buses
    FROM subestacion WHERE subestacion.nombre = 'SubTrema'
    </xsql:query>
    I get the error message ONLY when I use de CURSOR statement.
    Somebody could help me?
    Thanks in advanced
    Diego Robatto

    Please refer to the section:Using the CURSOR Operator for Nested Rowsets
    https://myswat.swarthmore.edu/xsql/java/xsql/relnotes.html#ID2602

  • Can I use XSQL pages & XSQL Servlet for oracle 7.3 ?

    Can I use XSQL pages & XSQL Servlet
    for oracle 7.3 or not?,if it is possible
    please give me reply.
    Thanks.
    Ramesh Nallapu.

    Can I use XSQL pages & XSQL Servlet
    for oracle 7.3 or not?,if it is possible
    please give me reply.
    Thanks.
    Ramesh Nallapu.
    null

  • Error: XSQL-005: XSQL page is not well-formed

    I am tring to execute the following simple query:
    <?xml version="1.0"?>
    <xsql:query connection="rio" xmlns:xsql="urn:oracle-xsql">
    select user from dual
    </xsql:query>
    using XSQL with Sun's JavaWebServer2.0 and am getting the following error:
    Oracle XSQL Servlet Page Processor 1.0.4.1 (Production)
    XSQL-005: XSQL page is not well-formed.
    XML parse error at line 2, char 1
    Expected 'EOF'.
    Running the XML syntax check in JDeveloper shows no errors. Any ideas of where the configuration may have gone wrong?
    Thanks,
    Claire
    null

    Steve,
    Actually any file name (even if the file does not exist) is returning the same error.
    I tried using Web-to-Go and I am getting the following error:
    "WTG-10109: Web-to-go could not locate requested URL
    Web-to-go could not locate requested URL /xsql/index.html"
    I have my test .xsql files in a c:/xsql/xtest folder and am calling them through http://localhost:8080/xsql/xtest/message.xsql for the JWS and trying http://localhost:7070/xsql/index.html (WTG)to see the index.html, but no joy..
    Any other ideas?
    Thanks,
    Claire
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steve Muench ([email protected]):
    Do you maybe have two versions of this file? One that JDev is checking and the other that the web server is reading?
    Try renaming the file you think that the XSQL Servlet is serving, then re-request it through the browser with the OLD name. Do you now get an error like "unable to locate file?" or do you still see the parse error?<HR></BLOCKQUOTE>
    null

  • Problem testing XSQL Servlet, XSQL-0007

    Hi,
    I'm testing the XSQL Servlet, as a lot of people do. I installed
    it on Apache Web Server with JRUN servlet engine, following the
    Release Notes, but it does not work at all. I get the following
    message, when I try to run helloworld.xslq:
    Oracle XSQL Servlet Error
    XSQL-0007: XML Parsing error on requested page
    <2,1>: Expected EOF
    I checked it several times but it seems to be right, exactly as
    in the release notes.
    I read here that other people (SHankar) had the same problem, but
    your answer did not solve it:
    : : Oracle XML Team wrote:
    : : : I presume by XML source code, you are referring to
    the .xsql
    : : : source code. If that is the case then you have not
    : registered
    : : : the XSQL servlet to that extension in the web server you
    are
    : : : using. Check out that section of the installation
    : : instructions.
    Please, tell me what can I do to start testing it, since I can
    test nothing, it does not work.
    Regards,
    Esteban
    null

    Oracle XML Team wrote:
    : The only thing that can cause
    : this error is if the page you
    : are requesting is not a well-formed
    : XML document.
    : Oracle XML Team
    : http://technet.oracle.com
    : Oracle Technology Network
    I'm requesting the page that you provide as a demo:
    helloworld.xsql
    I checked it and it is a well-formed XML document.
    Anyway, other examples that you provide with the xsqlservlet zip
    file don't work either.
    null

  • 9.0.4: XSQL-003/XSQL-007

    My colleague is creating XSQL/XSL pages to return query results from an XML Schema in the DB. I have some JSPs that provide front-end UIs for these queries. We devoloped this in 9.0.3.3 and it worked fine. She sent the XSQL files and I included them into my project and called them from a JSP. Everything worked fine. I was forced to upgrade to 9.0.4 due to a bug and now when I call her XSQL files I get a connection not found error like follows:
    Oracle XSQL Servlet Page Processor 9.0.3.0.0 (Production)
    XSQL-004: Could not acquire a database connection named: iidev
    XSQL-007: Cannot acquire a database connection to process page.
    The connection iidev exists and I use it in the JSP that calls this xsql. I tried creating a new connection and a basic XSQL page like this:
    <?xml version="1.0" encoding='windows-1252'?>
    <page xmlns:xsql="urn:oracle-xsql" connection="TestConnection">
    </page>
    Which throws the same error.

    If you don't have an XSQLConfig.xml file, then XSQL won't work, so you must have one. :-)
    JDeveloper will include one in your classpath at runtime automatically. It also manages to keep your XSQLConfig.xml up to date with your IDE's connections. However, here's probably what's happening.
    You upgraded from 9.0.3 to 9.0.4
    In 9.0.3, each time you defined a new database connection in the JDeveloper IDE, JDeveloper fixed up your XSQLconfig.xml file to match, so that there was a corresponding entry in the XSQLConfig.xml file for each connection you defined in the IDE.
    When you migrate, even if you migrated all your settings, we don't migrate the XSQLConfig.xml file, so you're basically starting with a "fresh" one, which only has a "demo" connection defined for scott/tiger.
    What I'd recommend is to:
    1. Look at the top of your XSQL pages, and find the connection="XXXX" attribute in the file. It will be on the root element of the document.
    2. You probably have a connection named XXXX under your Jdeveloper connections node.
    3. Delete that "XXXX" connection in JDeveloper, and recreate a new "XXXX" connnection with the same information.
    Doing this, JDeveloper will add the newly created "XXXX" connection to your XSQLConfig.xml file.
    Then, it should work.

  • Generate XSQL from XSQL/XSL

    Hi all,
    is it possible to generate dynamically a temporary XSQL (many querys) with XSQL/XSL and ececute this immediately.
    Thanks for any help !!
    Achim

    No, but you can simplify your problem by doing the following:
    <!-- Base stylesheet base.xsl -->
    <xsl:stylesheet ...>
    <!-- All your templates go in here -->
    <xsl:template ...>
    </xsl:template>
    </xsl:stylesheet>
    <!-- Base with ISO-XXXX encoding -->
    <xsl:stylesheet ...>
    <!-- This imports the base -->
    <xsl:import href="base.xsl"/>
    <!-- And changes the output encoding to ISO-XXXX -->
    <xsl:output encoding="ISO-XXXX"/>
    </xsl:stylesheet>
    Repeat to handle other encodings.
    You still have multiple stylesheets,
    but only one place to worry about
    managing your templates.

  • XSQL Apache  XSQL Demo errors on helloworld

    Hello I am trying to get the XSQL demos to work on Apache 1.3.20 and Jserv 1.1.1. THe examples just display the SQL statement no results returned.
    Here is my Jserv properties file
    ApJservAction .xsql
    wrapper.classpath=C:\Program Files\Apache JServ 1.1.1\ApacheJServ.jar
    wrapper.classpath=c:\jsdk2.0\lib\jsdk.jar
    wrapper.classpath=C:\OraHome\jdbc\lib\classes111.zip
    wrapper.classpath=C:\OraHome\jdbc\lib\classes12.zip
    #wrapper.classpath=C:\xsql\lib\oraclexmlsql.jar
    wrapper.classpath=C:\xsql\lib\oraclexsql.jar
    wrapper.classpath=C:\xsql\lib\xmlparserv2.jar
    wrapper.classpath=C:\xsql\xdk\admin
    My Jser config
    #ApJServAction .jsp /servlets/org.gjt.jsp.JSPServlet
    #ApJServAction .gsp /servlets/com.bitmechanic.gsp.GspServlet
    #ApJServAction .jhtml /servlets/org.apache.servlet.ssi.SSI
    #ApJServAction .xml /servlets/org.apache.cocoon.Cocoon
    ApJServAction .xsql /servlets/oracle.xml.xsql.XSQLServlet
    My database iS Oracel 8.1.6. I have no problems performing XSQL taks from the command line XSQL ulity but over Apache only the SQL statment shows.
    My directory for XDK is C:\xsql. If I chnge the XMLConfig connection it will not connect so it can see the file.
    Any help would be great ?
    Thanks
    Aaron

    What DB version? What does your table look like (datatype-wise for the columns) ?

Maybe you are looking for