XSQL DTD, XSQL command line, XSL parameters

I have three quick XSQL questions:
1. Is there a DTD available for XSQL? I'd like to feed it to Emacs' PSGML mode (http://www.lysator.liu.se/projects/about_psgml.html). What do you other Emacsers use to edit XSQL and XSL files?
2. XSQL is working fine under Apache/jserv, but the command line isn't finding my DB connections as defined in XSQLConfig.xml:
XSQL-004: Could not acquire a database connection named: lcbean@isis
Does this mean XSQL couldn't find the connection description, or couldn't connect to it after finding it? It does use CLASSPATH to locate XSQLConfig.xml, right?
3. I'm trying to use parameters in an XSL stylesheet as follows:
<html xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xsl:version="1.0">
<xsl:param name="store_code" select="'999'"/>
<head><title>Test</title></head>
<body><p><xsl:value-of select="$store_code"/></p></body>
</html>
But I keep getting:
XSL-1031: Variable not defined: 'store_code'
What am I missing?
null

[list=1]
[*]No. Since XSQL action elements are allowed to appear anywhere in any well-formed XML document, you cannot really describe this in a DTD.
[*]This means you put a connection="lcbean@isis" attribute on the document element of your XSQL page, but that it could not find a <connectiondef> for that name in XSQLConfig.xml (which is found successfully if it got this far!).
[*] See Section 11.5 in the XSLT 1.0 specification. <xsl:param> must appear immediately at the top of a template before any literal result elements. This means that <xsl:param> cannot be used in a "simple-form" stylesheet. You can either use <xsl:variable> instead, or you'll have to change to the full-form of the <xsl:stylesheet> and place the <xsl:param> at the top-level of the stylesheet, outside of any <xsl:template>.
[list]

Similar Messages

  • Invoking Forms 6i application from command line with parameters

    Hi,
    I have a java application that requires to start up and execute an existing Forms 6i application.
    I am not a java person, and I could not find any help regarding this. If anyone knows how to execute an fmx(6i) from within a java application, then please let me know. The java application has to pass in parameters so that the the Forms application opens up with the correct data.
    One alternative suggested was that the java application execute a command line invocation of the Forms application. I am looking for the correct and complete syntax to do this. The fmx can be invoked from the command line with the following entered at the dos prompt -
    c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db>. This works fine and the Forms application is executed.
    The requirement is to pass a couple of user defined parameters to the Forms application which can be used by it to query the database and display the correct information when it opens.
    Any help on this would be greately appreciated.
    Thanks
    Shailesh

    Shailesh,
    Create a parameter in your form - eg. COUNTRY_CODE and add any startup code.
    Then add the parameter to your command line (or put it in a *.bat file)
    c:\>OraFrm6i\Bin\ifrun60.exe<module name> <userid/password@db> country_code=UK
    JR

  • Open application via. command line with parameters - Multiple times

    I'm using ANT to compile a program, then launch in FireFox ... I've looked all over for a solution to this, but have yet to find one.
    I need the command to open a specified URL in FireFox... easy enough, right?
    Solution #1 was to use the "open -a" command, with the URL- so "open -a FireFox.app/ http://someURL.com" ... the problem with this is that it opens a new window or tab every time- its a minor annoyance, but when you do 100 or more compiles during the day, its quite annoying.
    Solution #2 is to actually launch the program executable (FireFox.app/Content/MacOS/firefox) using the argument -url and that makes it so FireFox opens the URL in the current & front-most window. This worked great the first time, second time I get an error saying "A copy of Firefox is already open. Only one copy of Firefox can be open at a time."
    Anybody know how to make it so I don't have to close a window every time I compile? Your help would be greatly appreciated.
    Thanks!
    -Eric
    Message was edited by: eheaton

    If you don't get an answer here, you might try reposting in the UNIX forum. That's where the command line experts tend to hang out. Good luck.

  • XSQL Command-Line, parameters with blanks

    Is it possible to use XSQL Command-Line with parameters containing blanks (space characters).
    In an URL parameter spaces can be encoded with "+" or "%20", but this does'nt seem to work with XSQL Command-Line parameters.
    -- Peter

    I can't make this work on Unix (solaris), but I can see it is a shell script problem, not a XSQL problem.
    The normal syntax for Unix shell script would be
    $ script.sh foo="one two"
    but the standard Oracle-supplied xsql unix shell script sets environment and passes all command-line parameters to the java program with
    oracle.xml.xsql.XSQLCommandLine $*
    and thereby the quotes disappear.
    The problem is not really big, since I could just do
    oracle.xml.xsql.XSQLCommandLine test.xsql "foo=one two"
    after setting classpath. Anyway, if anybody knows how to make the xsql script work with quoted parameters, let me know.
    -- Peter

  • Running report from command line with multiple value for same parameter

    Hey,
    I know how to run a report from the command line specifying parameters values each time but I was wondering if someone could tell me how I would go about running the same report multiple times in a batch program but specifying a list of values to pass to a parameter each time.
    So for example if a parameter was 'School Number', how could I run a report in a batch program that would pass a school number to the report as a parameter using a list of school numbers generated for a sql statement or something. So if I had 300 school numbers in my list then I would get 300 different reports when the batch program finished.
    This leads me to another question. How can I dynamically change the name of the report generated by the batch to use the school number value passed in, so for example if the value 3 was passed in the name would be something like School 3.pdf, if 4 was passed in the name would be School 4.pdf....etc
    Any help on this?
    Thanks

    Hello,
    Bursting and Distribution may help you ....
    37 Bursting and Distributing a Report
    http://download-uk.oracle.com/docs/cd/B14099_17/bi.1012/b13895/orbr_dist.htm
    Regards

  • Windows command line to invoke jabber client

    Hi there,
      We have an application running when jabber starts. Currently users have to start Jabber manually first and then start working with the app.  Is there a way to invoke jabber from command-line with parameters such as credential?
      Thanks!
    Lin

    You are falling for one of the traps described here. The redirection operator '>' has to be interpreted by a shell or command processor. On windows this would be
    String command  = "cmd.exe /C mycommand hello > output.txt";and on Linux this would beString command  = "sh -c mycommand hello > output.txt";You should read all 4 sections of the traps article and implement ALL the recommendations or you will be back here again.

  • Adobe AIR Application Installer command-line

    Could someone provide the command-line reference (parameters
    and usage) for Adobe AIR Application Installer?
    Tks!

    Hey Oliver!
    I've applied for an AIR distribution license but I still have
    some doubts.
    My application is based in one .air component and another one
    service created using C++. So, in order to install my application,
    I need to install both applications. I've used the bundled
    installation mentioned in the distribution docs, but it is not the
    best solution for my problem. I would like to have just one entry
    point in the “Add/Remove Programs” applet.
    Is there another way to deliver the .air application (e.g.
    not using the Adobe AIR Application Installer)?
    For example, is it possible get all files needed to create my
    .air file and install them without creating the .air file properly?
    I mean, is there any license or technical restrictions that
    invalidate this approach?
    Thanks!

  • Install Adobe PostScript in command lines (by script)

    Hello,
    I would like to know if it's possible to install "Adobe PostScript" in command lines (with parameters, by example: shellExecute("c:\winstfre\setup.exe -hidden -port=FILE -DEFAULT=FALSE -PPD=c:\ppd\ADIST5.PPD"); )
    For make a script to install it without windows for the user (silent mode).
    Regards.

    Hello,
    I would like to know if it's possible to install "Adobe PostScript" in command lines (with parameters, by example: shellExecute("c:\winstfre\setup.exe -hidden -port=FILE -DEFAULT=FALSE -PPD=c:\ppd\ADIST5.PPD"); )
    For make a script to install it without windows for the user (silent mode).
    Regards.

  • XSQL command line parameters

    I have a situation where I am generating some XML from a query in an XSQL and I want to use some command line parameters. This ony seems to work inside queries, e.g. given the command line "xsql quote.xsql quotetype=carhire quotenum=123" this will substitute 123 for "{@quotenum}" given the command line and leave "{@quotetype}" untouched.
    <pre>
    <quote type="{@quotetype}">
    <xsql:query>
    select price from quotes where number={@quotenum}
    </xsql:query>
    </quote>
    </pre>
    Is there a way to substitute the {@quotetype} part in XSQL?

    I'm already using XSLT and I've put <xsl:param name="type"> in the stylesheet, but references to $type don't seem to get any result, e.g.
    <xsl:value-of select="$type"/> is blank
    and
    <xsl:if test="$type='carhire'">
    <xsl:text>car hire</xsl:text>
    </xsl:if>
    doesn't generate any output either, so either I've got my syntax for parameters wrong, or the parameters don't get passed from the XSQL front end to the XSLT back end.

  • XSQL Pages via Oracle XSQL Command Line in Batch program

    When I try to call the XSQL Command Line utility in a batch file
    it throws a java.lang.UnsatisfiedLinkError. Anyone have any
    ideas what is wrong?

    Nevermind I solved the problem.

  • Xsql command line and stored PL/SQL procedures

    I have an xsql servlet that calls a stored procedure in an Oracle 8.1.7 DB to generate XML. The servlet then uses a custom action handler to write the XML output to a file on the webserver.
    This system works just fine through a web page interface. I am interesting in using the xsql command line interface to run the servlet as a nightly cron to keep the xml file up to date.
    It seems that the xsql command line interface cannot execute stored procedures.
    The xsql file is:
    <?xml version="1.0"?>
    <page connection="studev" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa subj="AR" bind-params="subj">
    studev.CTLGDSET.P_ADD_DEPT_DRIVER(?);
    </xsql:include-owa>
    <xsql:write-to-file file="{@subj}.xml" dir="{@dir}" base-tag="/page/SUBJECT/"/>
    </page>and the output written to the file is
    <?xml version = '1.0'?>
    <page xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa subj="AR" bind-params="subj">
    studev.CTLGDSET.P_ADD_DEPT_DRIVER(?);
    </xsql:include-owa>
    <xsql:write-to-file file="{@subj}.xml" dir="{@dir}" base-tag="/page/SUBJECT/"/>
    </page>Any comments or suggestions would be much appreciated.
    -Eric Dalquist

    Ok. I looked into the problem. The issue is that the Action Handler for <xsql:include-owa> conditionally passes on information about cookies and such to the OWA package context if you happen to be using XSQL through the Servlet interface.
    If you are not using XSQL through the servlet interface, things still work, but the class that implements the include-owa action handler still has a load-time dependency on the "servlet.jar" (even if you don't end up using it).
    So, the workaround is to add a copy of the Servlet SDK jar file "servlet.jar" to your CLASSPATH of the XSQL Command Line utility, and it works fine.
    XSQL 9.0.2 Beta (due out this week I believe on OTN) has been tested with FOP 0.18.1, but XSQL 1.0.4.3 Production and XSQL 9.0.1 production should both work with 0.18.1 as well.

  • XSQL Command Line Utility

    How do I access XSQL Command Line Utility as mentioned in the document like
    xsql <inputfile.xsql> <outputfile.xml>
    Thanx in advance...

    Look in ./xsql/bin with the 0.9.9.1 distribution. There is an xsql.bat and an xsql shell script to make this easier.
    In general, you need to:
    Make sure the following five entries
    are in your CLASSPATH
    ./xsql/lib/oraclexsql.jar
    ./xsql/lib/oraclexmlsql.jar
    ./xsql/lib/classes111.zip
    ./xsql/lib/xmlparserv2.jar
    ./xsql/lib
    Then run:
    java oracle.xml.xsql.XSQLCommandLine
    null

  • Is there a for-each statement in XSQL like the one in XSL?

    I'm trying to do the following:
    <?xml version="1.0" ?>
    - <!-- <?xml-stylesheet type="text/xsl" href="/dvd/xsl/admin/listuser.xsl"?>
    -->
    - <database>
    - <request>
    - <parameters>
    - <row>
    <checkboxuser>jonathan</checkboxuser>
    </row>
    - <row>
    <checkboxuser>james</checkboxuser>
    </row>
    - <row>
    <checkboxuser>steve</checkboxuser>
    </row>
    - <row>
    <checkboxuser>richard</checkboxuser>
    </row>
    </parameters>
    - <session>
    <access>0</access>
    <user>malik</user>
    <adminfirstname>Malik</adminfirstname>
    <adminlastname>Graves-Pryor</adminlastname>
    </session>
    - <cookies>
    <JServSessionIdroot>v647ogyd8n</JServSessionIdroot>
    </cookies>
    </request>
    - <allusers>
    - <userinfo>
    <first-name>Jonathan</first-name>
    <last-name>Terry</last-name>
    <email>[email protected]</email>
    <user-name>jonathan</user-name>
    <password>terry</password>
    <access-level>1</access-level>
    </userinfo>
    </allusers>
    </database>Now as you can see, I have 4 instances of <checkboxuser> in my XSQL page. These values are being passed in from checkboxes on the previous page. Is there an XSQL command that will say something like <xsql:for-each select="/database/request/parameters/checkboxuser"> ?
    So that it'd look something like this in the original code:
    <?xml version="1.0"?>
    <!--<?xml-stylesheet type="text/xsl" href="/dvd/xsl/admin/listuser.xsl"?>-->
    <database connection="dvddb" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-request-params/>
    <xsql:query id-attribute="" tag-case="lower" rowset-element="allusers" row-element="userinfo">
    SELECT FIRSTNAME AS "FIRST-NAME",
    LASTNAME AS "LAST-NAME",
    EMAIL AS "EMAIL",
    USERNAME AS "USER-NAME",
    PASSWORD AS "PASSWORD",
    ACCESSLEVEL AS "ACCESS-LEVEL"
    FROM LKUP_USER
    WHERE USERNAME = '<xsql:for-each select="/database/request/parameters/checkboxuser">'
    ORDER BY ACCESSLEVEL
    </xsql:query>
    </database>Or something like that... The XSL works fine, but not when I want to pull info from the DB.. :)
    Malik Graves-Pryor

    Ok I got a friend of mine to load everything up for me using 'javac' on he command line with -verbose and he got this back:
    C:\oracle\ora81>javac -verbose MultiValuedParam.java
    [parsed MultiValuedParam.java in 453 ms]
    [loaded C:\Oracle\ora81\lib\oraclexsql.jar(oracle/xml/xsql/XSQLActionHandlerImpl
    .class) in 62 ms]
    [loaded C:\jdk1.2.2\jre\lib\rt.jar(java/lang/Object.class) in 0 ms]
    [loaded C:\Oracle\ora81\lib\oraclexsql.jar(oracle/xml/xsql/XSQLActionHandler.cla
    ss) in 0 ms]
    [loaded C:\jdk1.2.2\jre\lib\rt.jar(java/sql/SQLException.class) in 15 ms]
    [loaded C:\jdk1.2.2\jre\lib\rt.jar(java/lang/Exception.class) in 0 ms]
    [loaded C:\jdk1.2.2\jre\lib\rt.jar(java/lang/Throwable.class) in 0 ms]
    [loaded C:\jdk1.2.2\jre\lib\rt.jar(java/io/Serializable.class) in 0 ms]
    MultiValuedParam.java:10: Package javax.servlet.http not found in import.
    import javax.servlet.http.*;
    ^
    MultiValuedParam.java:11: Package org.w3c.dom not found in import.
    import org.w3c.dom.*;
    ^
    [checking class MultiValuedParam]
    2 errors
    [done in 1266 ms]Any clues on what needs to be done to get those last two working? He has the oraclexsql.jar file listed in the system environment variable section of win2k.
    Thanks!
    Malik Graves-Pryor

  • Command Line Parameters - opening a pdf in "Files" view ?

    I am trying to open a PDF from a command line parameter which will force it to open in "Files" wiew,  which in my case is a column on the left hand side with a series of page icons with a title:
    01 Introductions
    02 Installation
    03 Instructions
    04 Troubleshooting
    So, I have tried a lot of parameters to open it in this way and none seem to work.
    I have tried:
    acrord32.exe /A "pagemode=thumbs=OpenActions" "a.pdf"
    and many more
    I have the PDF on acrobat reader opening parameters but none seem to do it for me.
    Any ideas?

    Nowhere in that file does it say that it works for Reader.

  • How to set plug-in Java Runtime parameters on JRE setup command line

    Hi all:
    I need to install JRE and set the Java Runtime Parameters -Xmx
    by command line ..
    I mean I don't want enter Control panel and set this parameter manually in Java Runtime Parameters textBox..
    thanx.
    Best regards
    w.shiha

    Documentation for controlling the installation is sadly lacking in detail. This is the best I have seen for the Windows environment:
    http://java.com/en/download/help/silent_install.xml
    But, there are numerous other PROPERTY variables that are not discussed. Particularly annoying is the addition of yet another JavaUpdate item with the release of 1.5.0_05. If you can get more information, please post a link to it here.

Maybe you are looking for

  • Sql function or sql procedure

    I want to know if is better to use function or procedure for my problem. First i need to read sql -> SELECT name, surname, date FROM ZKET_ZAPOSLENCI to get all data When i get all data i need to use name and surname and change it with $name and $surn

  • Installation of test version of indesign cc failed, says it can't extract

    Hi, I've tried to install the test version of Indesign CC. It downloads but when it's done and starts to "extract" (it says extrahera in Swedish) it fails and says I should contact support. Does it sound familiar to anyone and does anyone know what t

  • After Effects Rendering problem

    Hi, I am having a problem with After effects CS6, I know the newest version of Afer Effects is CC but I don't like CC and I have never had a problem like this before, I'm sure the fact that I don't have CC doesn't make much of a difference, I am maki

  • Want to learn oracle hrms/payroll

    hi there, i want to learn oracle apps hrms modules. please give me some tips guide lines etc i have strong background of oracle 8i and 10g. now i want to switch to oracle apps

  • DbGetQuery = How to get the results to display?

    I am using the following sqldata <- dbGetQuery(con," select sysdate from dual") How do I get the result to display? summary(sqldata) displays the values if I do dbSendQuery then fetch show the results help(dbSendQuery) and help(dbGetQuery) go to the