Re: posting Umlaut to XSQL

Until now I can find no solution to my posting problem (posting an umlaut from a HTML form generated by XSLT). In links I can escape characters, but in text fields I have no control over what happens.
What encodings have influence on the posted text ? Only the encoding in the receiving XSQL-file ? Or the XSLT encoding, too ?
Any help would by appreciated. Umlauts are in Germany our daily bread.
Andreas
P.S: Here is a text copied from my browser as I enter it:gerdte.
And this is what I get back: gerC$te
null

The input is expected to be in the same format as the encoding of the XSQL page template. The output format can be anything that you indicate in <xsl:output>

Similar Messages

  • Urgent :post xml for xsql difference with html form post

    Hi,
    We are developing an application to process xml request
    posted by external party. The requests arrive by
    http-post operation
    We developed and tested with an html-form.
    Now we encounter problems in testing with http-post
    The xsql page is processed correctly but
    insert only fixed text when formatting xml-data as input for
    the insert-request, string inserted is empty.
    Everything is by the book and html-forms works great.
    Is anybody else using xsql to insert xml data in the database on this version? Maybe can you help by looking into a testcase ? Issued a tar but am on terrible deadline
    so need help very soon.
    Details: HP-UX 11.11 Oracle 9.2.0.4 java1.4 ojdbc 1.4
    Tnx in advance,
    Jeroen

    Mark,
    Have an external partner which sends xml-requests.
    Have to read those, store them and process them.
    Idea is let them
    1)post the xml at a url where an xsql page is reading the xml
    2) transforming this for an insert into
    the database. The column is defined to store the complete xml-message.
    3) A trigger takes care of processing the stuff and preparing the output
    4) and a query in the xsql-page reads the output from an output table
    When developing and testing this with an html-form that posts the xml is works great.
    $ cat newclobins.xsql
    <?xml version="1.0"?>
    <page connection="demo" xmlns:xsql="urn:oracle-xsql" >
    <xsql:set-session-param name="id">
    select msgid.nextval from dual
    </xsql:set-session-param>
    <xsql:dml>
    delete cbs_msg_in where id={@id}
    </xsql:dml>
    <xsql:insert-request table="cbs_msg_in" column="id,msg" transform="cbsform_1.xsl"/>
    <data>
    <xsql:query null-indicator="yes">
    select msgid,msg from cbs_xml_out where msgid={@id}
    </xsql:query>
    </data>
    </page>
    $ cat cbsform_1.xsl
    <?xml version="1.0"?>
    <ROWSET xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
    <xsl:for-each select="request">
    <ROW>
    <MSG><xsl:value-of select="parameters/doc" /></MSG>
    <ID><xsl:value-of select="session/id" /></ID>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    1) When using a tool like
    http://www.programmersheaven.com/articles/adrian/getpost/article.html it fails with
    No rows to modify -- the row enclosing tag missing. Specify the correct row enclosing tag.
    2) When using the commandline utility like
    xsql jeroen5.xsql posted-xml=test3.xml
    this works great when inserting plain text but not
    when inserting xml-format data into a column
    So problem 1 is why external tools like above or my partner that uses .net to do something similar gives this strange error?
    Problem nr 2 is should I stick to just the data in xml and forget about storing the xml-formatted data?
    Hope you can help because I am getting quite desparate here.
    Regards,
    Jeroen

  • Posting XML to XSQL servlet

    Hi
    I use Java to post an XMLDocument to the XSQL servlet
    my java program :
    public void envoie() throws java.lang.Exception {
    try{
    Hashtable params = new Hashtable(1);
    URL pageUrl = new URL("http://k2sun2/xsql/insert_crpersonnes_cr.xsql");
    // Construct a new XSQL Page request
    XSQLRequest req = new XSQLRequest(pageUrl);
    org.w3c.dom.Document converted= (org.w3c.dom.Document)xmldoc;
    req.setPostedDocument(converted);
    req.process(params, new PrintWriter(System.out), new PrintWriter(System.err));
    }catch(Exception e){
    System.out.println(e);
    the program returns this error :
    <?xml version = '1.0'?><xsql-status action="xsql:insert-request" result="No posted document to process"/>
    null

    The http get is a "red herring". I wanted to see what was being fired at the xsql page and I thing the "get" referred to the retrieval of the xsql page. Anyway, here's exactly what I've got:
    Receiving Table:
    create table newsstory
    (id number
    ,title varchar2(2000)
    ,url varchar2(2000)
    ,source varchar2(2000)
    XSQL Page:
    <?xml version="1.0"?>
    <testpage connection="demo" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-param name="param1"/>
    <xsql:include-param name="param2"/>
    <xsql:insert-request table="newsstory"/>
    </testpage>
    Java Program:
    import oracle.xml.xsql.XSQLRequest;
    import java.util.Hashtable;
    import java.io.*;
    import org.w3c.dom.*;
    import oracle.xml.parser.v2.*;
    import java.net.URL;
    import com.db.atg.util.XMLUtil;
    import org.apache.xerces.parsers.DOMParser;
    public class XSQLRequestSample {
    public static void main( String[] args) throws Exception {
    // Construct the URL of the XSQL Page
    URL pageUrl = new URL("http://cbitwebd1.dev.lon.deuba.com:9091/tramp_dev/jmw1.xsql");
    // Construct a new XSQL Page request
    XSQLRequest req = new XSQLRequest(pageUrl);
    // Setup a Hashtable of named parameters to pass to the request
    Hashtable params = new Hashtable(3);
    params.put("param1","value1");
    params.put("param2","value2");
    // Prepare an XML Document to post
    String xmldocstring = "<ROWSET><ROW><ID>55</ID><TITLE>Test Title</TITLE><URL>Test URL</URL><SOURCE>Test Source</SOURCE></ROW></ROWSET>";
    oracle.xml.parser.v2.DOMParser d = new oracle.xml.parser.v2.DOMParser();
    d.parse(new StringReader(xmldocstring));
    Document doc2Post = d.getDocument();
    // Print out the contents of do2Post to check there is something to post.
    System.out.println("value is " + XMLUtil.dom2XmlString(doc2Post));
    req.setPostedDocument(doc2Post);
    // Process the page, passing the parameters and writing the output
    // to standard out.
    req.process(params,new PrintWriter(System.out)
    ,new PrintWriter(System.err));
    Output:
    value is <ROWSET><ROW><ID>55</ID><TITLE>Test Title</TITLE><URL>Test
    URL</URL><SOURCE>Test Source</SOURCE></ROW></ROWSET>
    <?xml version = '1.0'?>
    <testpage>
    <param1/>
    <param2/>
    <xsql-status action="xsql:insert-request" result="No posted document to process"/>
    </testpage>
    null

  • Can XSQL write to a file?

    Can XSQL write an XML fragment to a file?
    I've got this notion of writing an HTML form that posts to an XSQL Page, but in the event the database is down, I'd like to be able to save the state, to the user doesn't have to enter all the information again.
    null

    Custom action handler can certainly write to a file. You can use the getPostedDocument() method on the XSQLRequest that you have access to from within your action handler to get the posted XML document.

  • XSQL-007 and list of XSQL error codes.

    I have a situation where I need to replay a request if I cannot acquire a database connection, and to not replay a request otherwise. Is the XSQL-007 code the only code that deals with database connections?
    XSQL-007: Cannot acquire a database connection to process page.
    Do you have a published list of XSQL codes? Is there a method in java code to generate the full list of XSQL codes? For example to get a list of database error codes, one can in PL/SQL use:
    set serveroutput on size 2000
    begin
    for i in 1..9999 loop
    dbms_output.put_line ( sqlerrm(-i) ) ;
    end loop ;
    end ;
    Steve.

    There's not a way to loop through the errors in Java. Here's the list.
    XSQL-001: Cannot locate requested XSQL file. Check the name.
    XSQL-002: Cannot acquire database connection from pool: {0}
    XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.
    XSQL-004: Could not acquire a database connection named: {0}
    XSQL-005: XSQL page is not well-formed.
    XSQL-006: XSLT stylesheet is not well-formed: {0}
    XSQL-007: Cannot acquire a database connection to process page.
    XSQL-008: Cannot find XSLT Stylesheet: {0}
    XSQL-009: Missing arguments on command line
    XSQL-010: Error creating: {0}\nUsing standard output.
    XSQL-011: Error processing XSLT stylesheet: {0}
    XSQL-012: Cannot Read XSQL Page
    XSQL-013: XSQL Page URI is null or has an invalid format.
    XSQL-014: Resulting page is an empty document or had multiple document elements.
    XSQL-015: Error inserting XML Document
    XSQL-016: Error parsing posted XML Document
    XSQL-017: Unexpected Error Occurred
    XSQL-018: Unexpected Error Occurred processing stylesheet {0}
    XSQL-019: Unexpected Error Occurred reading stylesheet {0}
    XSQL-020: XSQLConfig.xml file is not well-formed.
    XSQL-021: Serializer {0} is not defined in XSQLConfig.xml
    XSQL-022: Cannot load serializer class {0}
    XSQL-023: Class {0} is not an XSQL Serializer
    XSQL-024: Attempted to get response Writer after getting OutputStream
    XSQL-025: Attempted to get response OutputStream after getting Writer

  • XSQL set-cookie

    When I write an XSQL cookie, it won't actually do it until i refresh the login screen, i.e.:
    1) Enter username and password into XHTML page
    2) Post to auth.xsql
    3) auth.xsql reads the username and password and authenticates
    4) all user information for that username and password is pulled out of the database
    5) attempt at writing cookie fails.
    6) when i refresh the page, the cookie then has a value and shows up.
    Why is this? And also, is there any way of deleting the cookie, like with a logout button, using XSQL? Maybe like XSQL:delete-cookie ?
    Thanks!
    Here's the code:
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="/dvd/dvd.xsl"?>
    <database connection="dvd" xmlns:xsql="urn:oracle-xsql">
    <xsql:query id-attribute="" tag-case="lower" rowset-element="allusers" row-element="userinfo" bind-params="username password">
    SELECT *
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? /* AND ACCESSLEVEL = 1 */
    ORDER BY USER_ID
    </xsql:query>
    <xsql:set-cookie name="authuser" only-if-unset="no" ignore-empty-value="yes" bind-params="username password">
    SELECT USERNAME
    FROM LKUP_USER
    WHERE USERNAME = ? AND PASSWORD = ? /* AND ACCESSLEVEL = 1 */
    </xsql:set-cookie>
    <xsql:include-request-params/>
    </database>--
    Malik Graves-Pryor

    This the flat XML result when the page is first loaded:
    <?xml version="1.0" ?>
    - <!-- <?xml-stylesheet type="text/xsl" href="/dvd/dvd.xsl"?>
    -->
    - <database>
    - <allusers>
    - <userinfo>
    <user_id>1</user_id>
    <firstname>Malik</firstname>
    <lastname>Graves-Pryor</lastname>
    <username>malik</username>
    <password>malik</password>
    <email>[email protected]</email>
    <accesslevel>0</accesslevel>
    </userinfo>
    </allusers>
    - <request>
    - <parameters>
    <password>malik</password>
    <username>malik</username>
    </parameters>
    <session />
    <cookies />
    </request>
    </database>and here is what it looks like when I refresh the page, doing nothing else:
    <?xml version="1.0" ?>
    - <!-- <?xml-stylesheet type="text/xsl" href="/dvd/dvd.xsl"?>
    -->
    - <database>
    - <allusers>
    - <userinfo>
    <user_id>1</user_id>
    <firstname>Malik</firstname>
    <lastname>Graves-Pryor</lastname>
    <username>malik</username>
    <password>malik</password>
    <email>[email protected]</email>
    <accesslevel>0</accesslevel>
    </userinfo>
    </allusers>
    - <request>
    - <parameters>
    <password>malik</password>
    <username>malik</username>
    </parameters>
    <session />
    - <cookies>
    <authuser>malik</authuser>
    </cookies>
    </request>
    </database>As you can see, the cookie "authuser" is written, but only after I refresh the page. Any clues to that, and also how to delete the "authuser" cookie later on using XSQL so that one can log out of the app?
    p.s.: Steven, are you going to release an updated "Building Oracle XML Applications" book anytime within the near future, i.e., next 1-3 months?
    Malik Graves-Pryor

  • [XSQL 1000]Debugging for xsql:insert

    Dear Colleagues,
    Looks to me as the awareness upon the usefulness of XSQL servlet for posting FORM submissions has raised recently, and thus the need for even more documentation and examples as currently provided for the specific task.
    I have successfully used the OracleXMLSave class for posting in the database of XML data, however I had difficulties in achieving the same for an FORM post.
    I have consulted the following sources:
    - release notes for version 1.0.0.0(S.Muench)
    - example code (xsql/demo/document)(S.Muench)
    - Oracle XML handbook (ISBN: 007212489X)
    - XML forum in technet discussion groups.
    Nevertheless, I could not find explicitly reported on how to simply see what the internal format of the XML was for a specific form submission that I was developing.
    The workaround I made for the topic is to include in the xsql file which does the posting, an href which references an xsl which then should extract the content as the spec says it is formatted and then returns it ot the browser for visual inspection.
    Nevertheless, would there be a better solution (to see what the Servlet has generated before submitting for insertion) it would be great to know.
    Looking forward your comments
    and very many compliments to Oracle and to Steve Muench (and colleagues) for the really useful and powerful system they have developed.
    Regards
    Sincerely
    Luca

    Dear Colleagues,
    following the instructions from Steve as in his posting of January 10th in support to the topic "Generating XML from HTML form", I have just written an action handler that "does the job" of showing the XML that the servlet has internally generated (or at least I believe so) before doing the internal OracleXMLSave call.
    I attach hereafter the code as well as what I have done to get it to work and will appreciate feedback .
    OS Linux (Suse 6.3)
    HTTPD Apache 1.3.9 (off-the shelf from Suse 6.3) made on Nov 13,1999
    SERVLET Tomcat 3.1
    JAVA jdk1.2.2
    ORACLE 8.1.6 (also called 8iR2)
    1) save the appended document in "GetPostedDocument.java"
    2) compile the java code
    I have done this with the jdk1.2.2 on Linux, installed under /usr/lib/jdk1.2.2, and after coyping all the jar distributed in the xsql servlet 1.0.0.0 to the local compiling directory
    /usr/lib/jdk1.2.2/bin/javac -classpath "/usr/lib/jdk1.2.2/lib/classes.zip:xmlparserv2.jar:.:oraclexsql.jar:oraclexmlsql.jar:servlet.jar" GetPostedDocument.java
    3) copied GetPostedDocument.class to the tomcat lib location, and made sure it had the right permissions, namely to /usr/local/httpd/jakarta-tomcat/lib as a+rx
    4) stopped and started the httpd + servlet
    In my setting (that is the default I believe for tomcat 3.1), any file placed in the tomcat's lib directory is automatically loaded on startup in the CLASSPATH
    rcapache stop
    rcapache start
    5) added to the xsql page handling the post,
    the following xsql action handler
    <xsql:action handler="GetPostedDocument"/>
    6) reloaded the calling xsql page
    What happens now is that upon submission I get back XML code which has been submitted ... exactely what I wanted. Perhaps is not what everybody needs, but it is already for me a starting step to proceed with debugging of my XSL to understand why the feeding into Oracle did not work (clearly the fault of the reformatting XSL which did not generate OracleXMLSave "canonical format").
    Thankyou and Compliments, Steve, for such a beatiful package ! It is REALLY USEFUL.
    Luca
    -------------------GetPostedDocument.java----
    import oracle.xml.xsql.*;
    import org.w3c.dom.*;
    import javax.servlet.http.*;
    import javax.servlet.*;
    import java.sql.*;
    import java.util.*;
    import java.net.URL;
    import java.io.PrintWriter;
    public class GetPostedDocument extends XSQLActionHandlerImpl {
    public void handleAction (Node rootNode) throws SQLException {
    try {
    org.w3c.dom.Document converted= ((XSQLServletPageRequest)getPageRequest()).ge
    tPostedDocument();
    URL pageURL = new URL("file:///root/bingo.xsql");
    XSQLRequest req= new XSQLRequest(pageURL);
    req.setPostedDocument(converted);
    req.process(new PrintWriter(System.out),new PrintWriter(System.err));
    catch (Exception exs) {
    this.reportError(rootNode,exs.getMessage());
    exs.printStackTrace();
    public void init(XSQLPageRequest xsqlreq, Element element) {
    super.init(xsqlreq,element);
    }

  • Xsl variable error not explained in earlier thread

    Steve,
    Thank you so much for your response to my earlier thread, it is difficult to focus on what I am supposed to be doing today, with all the sad news from the east coast.
    Re-visiting this variable issue one more time to try understand what is going wrong with this file.
    Below is a shortened version of the file plus the output from parsing it with xalan, saxon and oracle's two latest versions. As you see it parses fine with xalan and saxon but errors out with oracle's latest version. Should this be looked at again perhaps?
    xml file
    <?xml version="1.0"?>
    <?xml-stylesheet type="text/xsl" href="UtilDataForm.xsl"?>
    <page>
    <dataform target="News.xsql" submit="SubmitButtonTitle">
    <item type="checkboxlist" name="nameOfCheckBoxList" label="CheckBoxList">
    <ROWSET>
    <ROW><VALUE>4</VALUE><DISPLAY>This</DISPLAY></ROW>
    <ROW><VALUE>5</VALUE><DISPLAY>That</DISPLAY></ROW>
    <ROW><VALUE>6</VALUE><DISPLAY>The Other</DISPLAY></ROW>
    </ROWSET>
    </item>
    </dataform>
    </page>
    xsl file
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!--
    | UtilDataForm.xsl: Transform <dataform> structural info
    | into a data-bound HTML Form
    +-->
    <xsl:template match="dataform">
    <xsl:variable name="form-target">
    <xsl:choose>
    <xsl:when test="@target">
    <xsl:value-of select="@target"/>
    </xsl:when>
    <xsl:when test="./target">
    <xsl:value-of select="./target"/>
    <xsl:if test="*">?</xsl:if>
    <xsl:for-each select="*">
    <xsl:value-of select="name(.)"/>
    <xsl:text>=</xsl:text>
    <xsl:value-of select="."/>
    <xsl:if test="position() != last()">
    <xsl:text>&;</xsl:text>
    </xsl:if>
    </xsl:for-each>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text> </xsl:text>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:variable>
    <center>
    <form method="POST" action="{$form-target}">
    <xsl:for-each select="item[@type='hidden']">
    <input type="hidden" name="{@name}" value="{normalize-space(.)}"/>
    </xsl:for-each>
    <table>
    <xsl:for-each select="item[@type != 'hidden']">
    <tr>
    <th align="right"><xsl:value-of select="@label"/></th>
    <td>
    <xsl:choose>
    <xsl:when test="@type='text'">
    <input type="text" name="{@name}"
    value="{normalize-space(.)}">
    <xsl:if test="@size">
    <xsl:attribute name="size">
    <xsl:value-of select="@size"/>
    </xsl:attribute>
    </xsl:if>
    </input>
    </xsl:when>
    <xsl:when test="@type='password'">
    <input type="password" name="{@name}"
    value="{normalize-space(.)}">
    <xsl:if test="@size">
    <xsl:attribute name="size">
    <xsl:value-of select="@size"/>
    </xsl:attribute>
    </xsl:if>
    </input>
    </xsl:when>
    <xsl:when test="@type='textarea'">
    <textarea class="code" rows="5" name="{@name}">
    <xsl:if test="@size">
    <xsl:attribute name="cols">
    <xsl:value-of select="@size"/>
    </xsl:attribute>
    </xsl:if>
    <xsl:value-of select="normalize-space(.)"/>
    </textarea>
    </xsl:when>
    <xsl:when test="@type='list'">
    <xsl:variable name="default" select="default"/>
    <select name="{@name}">
    <xsl:for-each select="ROWSET/ROW">
    <option value="{VALUE}">
    <xsl:if test="VALUE=$default">
    <xsl:attribute name="selected"/>
    </xsl:if>
    <xsl:value-of select="DISPLAY"/>
    </option>
    </xsl:for-each>
    </select>
    </xsl:when>
    <xsl:when test="@ty pe='checkboxlist'">
    <xsl:variable name="name" select="@name"/>
    <xsl:for-each select="ROWSET/ROW">
    <input type="checkbox" name="{$name}" value="{VALUE}">
    <xsl:if test="SELECTED='Y'">
    <xsl:attribute name="checked"/>
    </xsl:if>
    </input>
    <xsl:value-of select="DISPLAY"/>
    </xsl:for-each>
    </xsl:when>
    </xsl:choose>
    </td>
    </tr>
    </xsl:for-each>
    </table>
    <input type="submit" value="{@submit}"/>
    </form>
    </center>
    </xsl:template>
    </xsl:stylesheet>
    xalan output
    <?xml version="1.0" encoding="UTF-8"?>
    <center><form action="News.xsql" method="POST"><table><tr><th align="right">CheckBoxList</th><td><input value="4"
    name="nameOfCheckBoxList" type="checkbox"/>This
    <input value="5" name="nameOfCheckBoxList"
    type="checkbox"/>That
    <input value="6" name="nameOfCheckBoxList" type="checkbox"/>The Other
    </td></tr></table><input
    value="SubmitButtonTitle" type="submit"/></form></center>
    saxon output
    <?xml version="1.0" encoding="utf-8"?>
    <center><form method="POST" action="News.xsql"><table><tr><th align="right">CheckBoxList</th><td><input type="checkbox"
    name="nameOfCheckBoxList" value="4"/>This
    <input type="checkbox" name="nameOfCheckBoxList" value="5"/>That
    <input
    type="checkbox" name="nameOfCheckBoxList" value="6"/>The Other
    </td></tr></table><input type="submit"
    value="SubmitButtonTitle"/></form></center>
    oraxsl with xmlparserv2.jar dated 06/19/01 10:09
    <?xml version = '1.0'?>
    <center><form method="POST" action="News.xsql"><table><tr><th align="right">CheckBoxList</th><td><input type="checkbox"
    name="nameOfCheckBoxList" value="4"/>This
    <input type="checkbox" name="nameOfCheckBoxList" value="5"/>That
    <input
    type="checkbox" name="nameOfCheckBoxList" value="6"/>The Other
    </td></tr></table><input type="submit"
    value="SubmitButtonTitle"/></form></center>
    oraxsl with xmlparserv2.jar dated 08/04/01 20:24
    file:/W:/workorders/util/UtilDataForm.xsl: XSL-1031: (Error) Variable not defined: 'name'.
    oracle.xml.parser.v2.XPathException: Variable not defined: 'name'.
    Error occurred while processing W:\workorders\util\FormTest.xsql: file:/W:/workorders/util/UtilDataForm.xsl: XSL-1031:
    (Error) Variable not defined: 'name'.
    Thank you again for your help!
    Ola Kvalvaag
    IS Administrator
    CT&E Environmental Services Inc.

    Yeah!!! It works. Turned out to be a combination of DrKlap's and Martisan's suggestions -- had to change var frame's declaration from JFrame to MyFrame:
        MyFrame frame;Next, created the external class -- but again changed JFrame references to MyFrame:
    public class ShowOnExit extends WindowAdapter {
    //   JFrame aFrame;
       MyFrame aFrame;
       public ShowOnExit(MyFrame f) {
          aFrame = f;
       public void windowClosing(WindowEvent e)
          System.out.println("Why me???" + aFrame.textArea.getText()); // aFrame here not frame !!!
    }This worked. So looks like even though the original code added a WindowListener to 'frame', the listener didn't couldn't access frame's methods unless it was explicitly passed in as a parameter. Let me know if that's wrong.
    Thanks again, all.

  • Problem including Javascript in XSL

    I have the following code working in Oracle 9IAS 1.0.2.2 and i can't put it at work in 9IAS Release 2.
    Any one can help my?
    Thanks for your time.
    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:import href="rowcol.xsl"/>
    <xsl:template match="/">
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html" />
    <link rel="stylesheet" type="text/css" href="rowcol.css" />
    <link rel="stylesheet" type="text/css" href="coolcolors.css" />
    <link rel="stylesheet" type="text/css" href="Forum.css" />
    <title>Home</title>
    <script language="JavaScript1.2">
    var JDWMinNS4 = (navigator.appName.indexOf("Netscape") &gt;= 0 &amp;&amp; parseFloat(navigator.appVersion) &gt;= 4) ? 1 : 0;
    var JDWMinNS6 = (navigator.appName.indexOf("Netscape") &gt;= 0 &amp;&amp; parseFloat(navigator.appVersion) == 6) ? 1 : 0;
    var JDWMinIE4 = (document.all) ? 1 : 0;
    var JDWMinIE5 = (JDWMinIE4 &amp;&amp; navigator.appVersion.indexOf("5.") &gt;= 0) ? 1 : 0;
    var JDWMinIE55 = (JDWMinIE5 &amp;&amp; navigator.appVersion.indexOf("5.5") &gt;= 0) ? 1 : 0;
    </script>
    </head>
    <body class="page" >
    <form id="theform" method="POST" action="home.xsql" >
    <br></br>
    </form>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

    "Not working" is not much information to go on. So I will just throw out some ideas. First make sure you are actually passing the parameters to your transform. Second, use XPath expressions that actually select something from your XML. The ones you are using are looking for a TYPE element that's the child of a PARAM element (that has a NAME child with a particular value), and there are no such elements in your example.
    PC&#178;

  • Inserting data from comobo box

    Hi all.
    I have a problem and I hope someone can help.
    I have two tables
    CREATE TABLE manager(
    managerID INTEGER NOT NULL, (PK)
    groupID INTEGER NOT NULL,
    mname VARCHAR2(20),
    msurname VARCHAR2(20)NOT NULL,
    memail VARCHAR2(50)NOT NULL,
    mpassword VARCHAR2(50)NOT NULL);
    CREATE TABLE groups(
    groupID INTEGER NOT NULL,(PK)
    gtype CHAR(15) NOT NULL);
    (xstl File linking to xsql file)
    <?xml version="1.0" ?>
    <xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version="1.0" >
         <xsl:include href="../-xslt/top_links.xsl" />
         <xsl:include href="../-xslt/error.xsl" />     
         <xsl:template match="add_user">
              <html>
                   <head>
                        <link rel="stylesheet" type="text/css" href="../-css/logo.css" />
                        <title>Add User</title>
                        </head>
                   <body>
                        <xsl:call-template name="top_links" />
                        <form method="POST" actions="add_user.xsql">
                             <table>
                                  <th>First Name</th><th>Surname</th><th>Email</th><th>Group</th><th>Password</th>
                                  <tr>
                                       <th><input type="text" name="name"
                                            value="" /></th>
                                       <th><input type="text" name="surname"
                                            value="" /></th>
                                       <th><input type="text" name="email"
                                            value="" /></th>
                                       <th><select name="group">
                                                 <xsl:apply-templates select="ROWSET/ROW" />
                                                 </select></th>
                                       <th><input type="text" name="password"
                                            value="" /></th>
                                       </tr>
                                  </table>
                             <table cellspacing="20">
                                  <tr>
                                       <input type="submit" value="Add" />
                                       </tr>
                                  </table>
                             </form>
                        <tr>     
                             <td><xsl:apply-templates select="//xsql-error" /></td>
                             </tr>
                        </body>
                   </html>
              </xsl:template>
         <xsl:template match="ROW">
              <option>
                   <xsl:value-of select="." />
                   </option>
              </xsl:template>
         </xsl:stylesheet>
    (XSQL FILE)
    <?xml version="1.0" encoding="UTF-8" ?>
    <?xml-stylesheet type="text/xsl" href="../-xslt/add_user.xsl" ?>
    <add_user connection="*********" xmlns:xsql="urn:*********">
    <xsql:query>
    select gtype from GROUPS
    </xsql:query>
    <xsql:include-request-params />
    <xsql:dml bind-params="name surname email group password">
    INSERT INTO MANAGER
    (mname, msurname, memail, groupID, mpassword)
    VALUES
    </xsql:dml>
    </add_user>
    I have an xslt script which is linked to a xsql query which displays gtype in a drop down box. I have a bunch of text boxes to input details to the database. How ever, I need to find a way to look up what has been selected in the drop down box which dislays gtype to put into the insert statement which only accepts the groupID. Would I have to use some kind of trigger of perhaps make another view and insert from there??
    Any help would be great..
    Regards
    Bergs

    Instead of using:
    value="<% request.getParameter("MyTextarea") %>"
    use:
    value="*"
    This will cause the container to find all the variable
    in your jsp page and link them with the variables
    of the same name in your bean.
    Then in your bean use MyTextarea as a variable
    in a method called processRequest(HttpServeletRequest
    httpservletrequest).
    You can then call processRequest in your
    jsp page by:
    name.processRequest(MyTextarea);
    Remember that if you are trying to import
    text area input from a form, you need to
    enclose the text area <input> tags with
    <form> tags

  • Multiple selections in an HTML form

    The option selector (<select>...</select>) in an HTML form allows the
    user to make multiple selections. However, when the form parameters
    are posted to an XSQL page, only the first value selected will be
    assigned to the corresponding XSQL parameter.
    This is very unfortunate, because I would like the selected values to
    be used in a query like this:
    <xsql:query>
    select ...
    from ...
    where ...
    and elem in ({@list})
    and ...
    </xsql:query>
    where 'list' is the name of the option selector. However, since only
    the first value selected is substituted, the query does not work.
    The <xsql:include-request-params/> will "rowify" the values selected,
    but this can only be utilized by a style sheet associated with the
    XSQL page.
    Does anyone know how to get access to all the selected values in the
    XSQL page?
    HELP!

    Hi,
    Here is an approach that may work for you.
    In the registration process, assign each individual a userid...  e.g. bob123.
    When they log into your site, create a SESSION variable, SESSION.userid = bob123.
    In your db, for every player have two fields, one is the userid of the person that is attached to that player, and another field for the jersey number.  You could also have a field for assigned/unassigned.
    Populate the grid with the unassigned players.  Have the empty jersey number field on the grid and make it editable.  When an individual assigns a jersey number to the person, (you can have them update after each person selected or at the end), you can let a cfc update the db and using their SESSION.userid, they become the "owner" of that player.  The update also will update the db with their jersey number.  The update can also turn them from unassigned to assigned so noone else can "claim" them.
    Now anytime the user logs in, they'll have their players, easy to get to using a WHERE sql statement = WHERE SESSION.userid = bob123.
    cfwild

  • Transaction support

    Hi,
    I'm inserting multiple rows into a table from a large XML document posted to a XSQL page. I would like the update to be handled like "all or nothing". Is it possible to handle the inserts as one transaction ?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    The next release of XSQL Pages will support setting the batch size. This 1.0.2 release is due out after Oracle Openworld, in the second half of October.<HR></BLOCKQUOTE>
    1.0.2 is here. I cannot see batch size settings anywhere. Not documented or left out, or am I blind?
    null

  • Oracle xsl processor

    How can I configure jdeveloper to use another xsl processor rather than the oracle processor?

    Remove xmlparserv2.jar, which has the XSLT clases from Classpath & add another XSLT processor to Classpath.
    Also please refer to a previous post.
    Run XSQL servlet with an alternate XSLT Processor

  • Building Oracle XML Application Book....

    Has anyone purchased the 'Building Oracle XML Applications' book and do they have any opinions on it? Useful?

    It it currently orderable, and is planned to ship by September 31st/October 1st, just in time for the Oracle OpenWorld conference.
    The full table of contents (which eventually should be put also up on the O'Reilly Site) is:
    Preface
    Audience for This Book
    Which Platform and Version?
    Structure of This Book
    Chapter Summaries
    About the Examples
    About the CD-ROM
    Conventions Used in this Book
    Comments and Questions
    Acknowledgements
    Part 1: XML Basics
    Chapter 1: Introduction to XML
    What Is XML?
    What Can I Do With XML?
    Why Should I Use It?
    What XML Technology Does Oracle Provide?
    Chapter 2: Working with XML
    Creating and Validating XML
    Modularizing XML
    Searching XML with XPath
    Part 2: Oracle XML Fundamentals
    Chapter 3: Combining XML and Oracle
    Hosting the XML FAQ System on Oracle
    Serving XML in Any Format
    Acquiring Web-Based XML Content
    Chapter 4: Using JDeveloper for XML Development
    Working with XML, XSQL, and JSP Files
    Working with Database Objects
    Using JDeveloper with Oracle XDK Components
    Chapter 5: Processing XML with PL/SQL
    Loading External XML Files
    Parsing XML
    Searching XML Documents with XPath
    Working with XML Messages
    Producing and Transforming XML Query Results
    Chapter 6: Processing XML with Java
    Introduction to Oracle8i JServer
    Parsing and Programmatically Constructing XML
    Searching XML Documents in Memory Using XPath
    Working with XML Messages
    Producing and Transforming XML Query Results
    Chapter 7: Transforming XML with XSLT
    XSLT Processing Mechanics
    Single-Template Stylesheets
    Understanding Input and Output Options
    Improving Flexibility with Multiple Templates
    Chapter 8: Publishing Data with XSQL Pages
    Introduction to XSQL Pages
    Transforming XSQL Page Results with XSLT
    Troubleshooting Your XSQL Pages
    Chapter 9: XSLT Beyond the Basics
    Using XSLT Variables
    The Talented Identity Transformation
    Grouping Repeating Data Using SQL
    Sorting and Grouping Repeating Data with XSLT
    Chapter 10: Generating Datagrams with PL/SQL
    Programmatically Generating XML Using PL/SQL
    Automatic XML Generation with DBXML
    Chapter 11: Generating Datagrams With Java
    Generating XML Using Java
    Serving XML Datagrams Over the Web
    Automatic XML from SQL Queries
    Chapter 12: Storing XML Datagrams
    Overview of XML Storage Approaches
    Loading Datagrams with the XML SQL Utility
    Storing Posted XML Using XSQL Servlet
    Inserting Datagrams Using Java
    Chapter 13: Searching XML with interMedia
    Why Use interMedia Text?
    What is interMedia Text?
    The interMedia Text Query Language
    Handling Heterogeneous Doctypes
    Handling Doctype Evolution
    Advanced interMedia Text
    Chapter 14: Advanced XML Loading Techniques
    Storing Datagrams in Multiple Tables
    Building an XMLLoader Utility
    Creating Insert Transformations Automatically
    Part 3: Oracle XML Applications
    Chapter 15: Using XSQL as a Publishing Framework
    Overview of All XSQL Pages Facilities
    Additional XML Delivery Options
    Chapter 16: Extending XSQL and XSLT with Java
    Developing Custom XSQL Actions
    Integrating Custom XML Sources
    XSLT Extension Functions
    Chapter 17: XSLT-Powered Portals and Applications
    XSLT-Powered Web Store
    Personalized News Portal
    Online Discussion Forum
    Part 4: Appendices
    Appendix 1: XML Helper Packages
    Installing the XML Helper Packages
    Source Code for the XML Helper Packages
    Appendix 2: Installing Oracle XSQL Servlet
    Installing
    Appendix 3: Conceptual Map to XML Family
    Appendix 4: Quick References

  • XML tag with attributes and one value via XSU

    I need to generate a XML structure with attributes in the opening tag, and just one value in the body, like this:
    <PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">9.99</PRODUCT-LIST-PRICE>
    Without an object type, I can just create tags like this
    XML3
    <PRODUCT-LIST-PRICE>9.99</PRODUCT-LIST-PRICE>
    (with no attributes, but a single value) via the followig statement
    SELECT sys_xmlgen ('9.99',
    sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
    ).getClobVal() "XML3"
    FROM DUAL;
    Having an object "productlisteprice_type", defined by
    CREATE OR REPLACE TYPE productlisteprice_type AS OBJECT
    "@NET-PRICE" VARCHAR2(10),
    "@CURRENCY" VARCHAR2(10),
    "PRICE" VARCHAR2(20)
    I just get XML like this
    XML2
    <PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">
    <PRICE>9.99</PRICE>
    </PRODUCT-LIST-PRICE>
    (with attributes, but no direct value beneath the "PRODUCT-LIST-PRICE" tag) via the following statement
    SELECT sys_xmlgen ( productlisteprice_type(0,'USD','9.99'),
    sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
    ).getClobVal() "XML2"
    FROM DUAL;
    Not what I need :-(
    Are there any possibilities in XSU to get the needed XML code? Or do I have to do some post-production via XSQL???
    Another question: Is it possible to use specific keywords like "online" as XML tagnames, via objects? The objects don't allow "online" as a field name...
    Thanks in advance,
    Holger

    I need to generate a XML structure with attributes in the opening tag, and just one value in the body, like this:
    <PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">9.99</PRODUCT-LIST-PRICE>
    Without an object type, I can just create tags like this
    XML3
    <PRODUCT-LIST-PRICE>9.99</PRODUCT-LIST-PRICE>
    (with no attributes, but a single value) via the followig statement
    SELECT sys_xmlgen ('9.99',
    sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
    ).getClobVal() "XML3"
    FROM DUAL;
    Having an object "productlisteprice_type", defined by
    CREATE OR REPLACE TYPE productlisteprice_type AS OBJECT
    "@NET-PRICE" VARCHAR2(10),
    "@CURRENCY" VARCHAR2(10),
    "PRICE" VARCHAR2(20)
    I just get XML like this
    XML2
    <PRODUCT-LIST-PRICE NET-PRICE="0" CURRENCY="USD">
    <PRICE>9.99</PRICE>
    </PRODUCT-LIST-PRICE>
    (with attributes, but no direct value beneath the "PRODUCT-LIST-PRICE" tag) via the following statement
    SELECT sys_xmlgen ( productlisteprice_type(0,'USD','9.99'),
    sys.xmlgenformattype.createFormat('PRODUCT-LIST-PRICE')
    ).getClobVal() "XML2"
    FROM DUAL;
    Not what I need :-(
    Are there any possibilities in XSU to get the needed XML code? Or do I have to do some post-production via XSQL???
    Another question: Is it possible to use specific keywords like "online" as XML tagnames, via objects? The objects don't allow "online" as a field name...
    Thanks in advance,
    Holger

Maybe you are looking for

  • External hard drive error / disk utility not repairing

    I am having problems with a particular external hard drive. Device is a Transcend StoreJet 25M (640GB) currently formatted in Mac OS Extended (Journaled). It was previously formatted in FAT32, exFat, and also Mac OS Extended (Journaled). It started g

  • How do I use my own customer Paypal buttons

    Hi everyone, I've set up Paypal and have managed to get Paypal's own button working. However, I'd like to use my own buttons but don't understand how to do this based on the info you've kindly given. It's the uploading my button to my hosting provide

  • SQL developer not showing compiler warnings

    I'm just testing out the new compiler warning contained in 11g related to the "when others" exception handler when it does not have a subsequent raise or raise_application_error. in SQL plus, this works fine: SQL> alter session set plsql_warnings='en

  • Business Partner Code when using *

    Hi all, In Business Partner code when the user want's to see all Business Partner and makes "*" appears the BP code, BP Name and Foreign Name. All user see this information except one that doesn't see the Foreign Name. Why?

  • Video started using high CPU %

    I've watched hd video on my macbook since I got it in 09. Currently running Lion. I've been using MPlayerX since it was released and it has been working perfectly. However, since Tuesday watching video on my mac has suddenly started using 50-60% of c