Oraxsl

I'm new to xml and am trying to figure out how this whole thing works. I'm on a windows xp client v10.2.0.4 connecting to a windows 64bit database. According to the universal installer i have the sdk installed. However, when i try and invoke oraxsl i get the following.
java oracle.xml.parser.v2.oraxsl policy.xml policy.xlst newpolicy.xml
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/xml/parser/v2/
oraxsl
Any help would be greatly appreciated!

How can I pass a list of parameters to command "oraxsl"?
I4ve a file xslt as you can see below:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output method="html" indent="no"/>
     <xsl:param name="year"/>
     <xsl:param name="month"/>
     <xsl:param name="day"/>
I have tried to pass these three parameters like this way;
oraxsl -p '2002' 'July' day='22' x.xml y.xsl out.xml
oraxsl -p year='2002' month='July' day='22' x.xml y.xsl out.xml
oraxsl -p {year='2002' month='July' day='22'} x.xml y.xsl out.xml
can anyone help me?
Thanks for all, Luis
I have tried to execute "oraxsl" with parameters. I have tried different solutions as:
- oraxsl -p '10' '2002' x.xml y.xsl out.xml where 10 is the first parameter and 2002 is the second parameter.
-oraxsl -p number='10 year='2002' x.xml y.xsl out.xml
Can anybody help me? Using this bat-file , oraxsl.bat
@echo off
set CLASSPATH=d:\oracle\xdk\xdk\lib\xmlparserv2.jar;d:\oracle\xdk\xdk\lib\xschema.jar;d:\oracle\xdk\xdk\lib\xsu12.jar
set xdkparm=
:loop
if "%1"=="" goto end
set xdkparm=%xdkparm% %1
shift
goto loop
:end
java oracle.xml.parser.v2.oraxsl %xdkparm%
and replacing the CLASSPATH with your preferences you can run it like this
oraxsl -v -l source.xml -s stylesheet.xsl -r txt -e err.txt
and you'll get a file called source source.xml.txt

Similar Messages

  • How do you override global variable values when calling oraxsl or xsl.exe?

    I am a newbie to oracle xslt.
    I have down loaded the latest version of xdk (10.1.0.2...). (Jan 2, 2009).
    In the past I haveI used micorsoft's "msxsl.exe" to perform my transformations.
    I am looking for a more up-to-date transformation tool.
    I found Oracle's version, and thought I would try it out.
    I have run the "bin/xsl.exe -hh" command.
    I read its help data. It states that variables are
    passed by coding a pramater "-V <var> <value>".
    I have also examined the oraxls.bat file.
    I found the documentation on "oracle.xml.parser.v2.oraxsl" class.
    It states that parameters are passed after the "-p" switch.
    It says the value of the -p parameter is "a list of paramemters".
    I don't find this sufficient information to be useful.
    I can spend days guessing, and I might get lucky.
    I thought it my be better to ask for help.
    I need to pass in (override) values for 3 global variables.
    I saw the method
    "setParam(namespace, variable, value)",
    near the documentation for the "oraxsl" class.
    How do you format the options string to communicate more than one param statement?
    (in either xsl.exe and/or oraxsl class).
    Suppose I have an xslt stylesheet as follows:
    ==================================================
    <?xml version="1.0" ?>
    <xsl:stylesheet version="1.1" xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
    <xsl:param name='a' select='"default_a"' />
    <xsl:param name='b' select='"default_b"' />
    <xsl:param name='c' select="'default_c"' />
    <xsl:template match='/'>
    this is value for a: <xsl:value-of select='$a' />
    this is value for b: <xsl:value-of select='$b' />
    this is value for c: <xsl:value-of select=$c' />
    <xsl:apply-templates />
    </xsl:template>
    </xsl:stylesheet>
    ========================================================
    Now as part of the calling of the XSL processor I want to change the value of these
    three global parameters.
    I want:
    a="current_a",
    b="current_b",
    and c="current_c"
    How do I express this using xsl.exe and its paramter string (-V ????).
    and/or how do I express it to the oraxsl class ( -p (xsl, a,"current_a"), (....) )???
    The syntax for specifying this information is not very clear in either situation.
    Of course I am making the "assumption" that by "param" they are
    refering to "global parameters" (as in my stylesheet), rather than some other global parameters of XLST.
    As an aside inquiry:
    I had hopped that the Oracle's xsl Verion 2 routine could handle xslt 2.0 commands
    such as "xsl:for-each-group", since it handled multiple xsl:outputs.
    From reading some of the documentation it seems it only handles xslt 1.0 syntax/commands.
    Is this true? (or is the documentation not up-to-date?).
    Any help on passing param values to xsl.exe and/or "oraxsl" class is appreciated.
    Thanks.

    Here is the line from one of my testing .bat files that passed in one parameter. I can't recall if I've passed in two, but this will give you a starting point for passing in multiple
    java -cp %CPath% oracle.xml.parser.v2.oraxsl -p show_image='yes' %ValXML% %ValXSLT% As for XSLT 2.0 support, it appears it does per {thread:id=503445}

  • Differences between oraxsl output and XMLLoder transformation

    Following the ch14 deptempdepend example in Steves book, the data loads ok. However if I use oraxsl to transform the data into the canoconial rowset format using
    java oracle.xml.parser.v2.oraxsl deptempdepend.xml deptempdepend.xsl out.xml
    I get the result
    <?xml version="1.0" encoding="UTF-8" ?>
    - <INSERT>
    <ROWSET table="dept" />
    <ROWSET table="budget_plan_assignment" />
    <ROWSET table="emp" />
    <ROWSET table="dependent" />
    </INSERT>
    This seems to contain the correct tags, but not the data to be inserted, can anyone explain this?

    Following the ch14 deptempdepend example in Steves book, the data loads ok. However if I use oraxsl to transform the data into the canoconial rowset format using
    java oracle.xml.parser.v2.oraxsl deptempdepend.xml deptempdepend.xsl out.xml
    I get the result
    <?xml version="1.0" encoding="UTF-8" ?>
    - <INSERT>
    <ROWSET table="dept" />
    <ROWSET table="budget_plan_assignment" />
    <ROWSET table="emp" />
    <ROWSET table="dependent" />
    </INSERT>
    This seems to contain the correct tags, but not the data to be inserted, can anyone explain this?

  • Oraxsl and XML Schema

    I am having difficulty getting oraxsl to work if the root element of my XML document has the schema attributes (as below). If I remove the attributes for the root element (MemberCouponInput), oraxsl works fine. What am I missing?
    Thanks In Advance.
    <?xml version="1.0"?>
    <MemberCouponInput
    xmlns='http://www.ordertrust.com/MemberCoupon'
    xmlns:xsi = 'http://www.w3.org/2000/10/XMLSchema-instance'
    xsi:schemaLocation='http://www.ordertrust.com/MemberCoupon MemberCoupon.xsd'
    >
    .

    Between the time that it works and the time that is doesn't, are you adding:
    xmlns='http://www.ordertrust.com/MemberCoupon'
    xmlns:xsi = 'http://www.w3.org/2000/10/XMLSchema-instance'
    xsi:schemaLocation='http://www.ordertrust.com/MemberCoupon MemberCoupon.xsd'
    or are you just adding:
    xmlns:xsi = 'http://www.w3.org/2000/10/XMLSchema-instance'
    xsi:schemaLocation='http://www.ordertrust.com/MemberCoupon MemberCoupon.xsd'
    If you are also adding the xmlns="..." default namespace declaration, then this may explain the problem because it might change the way your XPath expressions need to look to match elements in your source document.
    A reproducible testcase (as small as possible) would be useful to help you.
    null

  • Oraxsl error  XSL-1009

    while using the command line utility oraxsl,
    I recieved the following error:
    C:\MSDS>java oracle.xml.parser.v2.oraxsl msds_water.xml msdsxsl.xsl out.xml
    Error occurred while processing msdsxsl.xsl: file:/C:/MSDS/msdsxsl.xsl: XSL-1009
    : (Error) Attribute 'select' not found in 'xsl:value-of'.
    the file are well formed xml documents they are located at
    http://209.210.189.94/msds/MSDS_water.xml
    http://209.210.189.94/msds/MsdsXsl.xsl
    C:\MSDS>oraxml msdsxsl.xsl
    C:\MSDS>java oracle.xml.parser.v2.oraxml msdsxsl.xsl
    The input XML file is parsed without errors using partial validation mode
    C:\MSDS>oraxml msds_water.xml
    C:\MSDS>java oracle.xml.parser.v2.oraxml msds_water.xml
    The input XML file is parsed without errors using partial validation mode

    DISREGARD... I FIXED PROBLEM
    while using the command line utility oraxsl,
    I recieved the following error:
    C:\MSDS>java oracle.xml.parser.v2.oraxsl msds_water.xml msdsxsl.xsl out.xml
    Error occurred while processing msdsxsl.xsl: file:/C:/MSDS/msdsxsl.xsl: XSL-1009
    : (Error) Attribute 'select' not found in 'xsl:value-of'.
    the file are well formed xml documents they are located at
    http://209.210.189.94/msds/MSDS_water.xml
    http://209.210.189.94/msds/MsdsXsl.xsl
    C:\MSDS>oraxml msdsxsl.xsl
    C:\MSDS>java oracle.xml.parser.v2.oraxml msdsxsl.xsl
    The input XML file is parsed without errors using partial validation mode
    C:\MSDS>oraxml msds_water.xml
    C:\MSDS>java oracle.xml.parser.v2.oraxml msds_water.xml
    The input XML file is parsed without errors using partial validation mode

  • Installing ORAXSL Utility

    How do i install Oraxml utilty, i already installed Parser and XML SQL utility in the Database.
    I have Jdeveloper 3.2.2 and Oracle 8.1.6
    running on Windows NT V4.0
    null

    The Oraxsl utility is part of the XML Parser for Java (I'm not sure about the PL/SQL package though).
    Use
    java oracle.xml.parser.v2.oraxsl
    to show the list of parameters. Just make sure the jar files are in your CLASSPATH.
    null

  • Executing oraxsl utility through forms 10g

    Hi,
    I tried to execute oraxsl utility in forms 10g using a button but failed. This utility is working fine when i run it through command line interface, but its not working on forms.
    Code on when-button-pressed trriger is :
    Declare
    cmd varchar2(1000);
    Begin
    cmd := 'oraxsl d:\cdcataloginfo.xml d:\cdcataloginfo.xsl d:\cdcataloginfo.htm';
    message(cmd);
    host(cmd, NO_SCREEN );
    IF NOT Form_Success THEN
    Message('Error - Not Succeeded');
    ELSE
    Message('Succeeded.');
    END IF;
    End;
    It shows the 'succeeded' message when i run this form, but it doesn't create the HTML file.
    Any help will be appreciated.
    Thanks.

    Using IE 8 and tried on IE 7 as well.
    Oracle JInitiator: Version 1.3.1.22Oracle Jinitiator is not compatible with IE 7/8, you have to use the Sun JRE 1.6.0._16 or higher instead. Take a look at section *2.2 Oracle Forms Applications on Client Platforms* in the Oracle Application Server 10g (10.1.2) Certification Matrix.
    After installing the Sun JRE 1.6.0, you will need to modify the %DEVSUITE_HOME%\forms\server\formsweb.cfg to set the correct JRE version information. Make the following changes:
    # System parameter: base HTML file for use with JInitiator client
    #-- Original
    #baseHTMLjinitiator=basejini.htm 
    #-- New
    baseHTMLjinitiator=basejpi.htm  
    #-- Original
    #jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_06/index.html 
    #-- New
    jpi_download_page=http://www.oracle.com/technetwork/java/javase/downloads/index.html 
    # Parameter related to the version of the Java Plugin
    # -- Original
    #jpi_classid=clsid:CAFEEFAC-0014-0002-0006-ABCDEFFEDCBA
    # -- New (this entry specifies update 16)
    jpi_classid=clsid:CAFEEFAC-0016-0000-0016-ABCDEFFEDCBA
    # OR, you can instruct OAS to use any version of Sun JRE 1.6.0
    jpi_classid=clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA
    # Parameter related to the version of the Java Plugin
    # -- Original
    #jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4_2-windows-i586.cab#Version=1,4,2,06
    # -- New
    jpi_codebase=http://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=1,6,0,22
    # Parameter related to the version of the Java Plugin
    # -- Original
    #jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_06
    # -- New (Specifies update 16)
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0_16
    # -- OR use any version of 1.6.0
    jpi_mimetype=application/x-java-applet;jpi-version=1.6.0Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Problem with Oraxsl

    Hi,
    Am getting exception while trying to run the oraxsl,following is the setting i have done in jdeveloper
    "c:\oaf\jdevbin\jdk\bin\java.exe C:\oaf\jdevbin\xdk_nt_10_1_0_2_0_production\lib\xmlparserv2.jar!\oracle\xml\parser\v2\oraxsl.class" excel.xml excel.xsl result.html
    what may be the possible cause of the error.Please help.
    Thanks

    For java package you need to set xmlparserv2.jar to be in your
    classpath before usinng the oraxml or oraxsl:
    java oracle.xml.parser.v2.oraxsl ...
    java oracle.xml.parser.v2.oraxml ...
    or
    oraxsl
    oraxml
    To setup CLASSPATH, please run env.csh(UNIX) or env.bat(NT) under
    $XDK_HOME/bin

  • Oraxsl command line utility - xslt transform difficulty

    I am having trouble understanding the documentation for the ORAXSL command line utility interface, as follows:
    I have two sheets [XSLT transformation sheets], token.xsl and loop.xsl, which I am trying to transform into a single xsl sheet using ORAXSL command line.
    token.xsl transforms a string of comma-separated values into single tokens (<value> elements, each of them contains one value).
    loop.xsl expands special iteration elements (<loop:for> and <loop:while>) into recursive template calls.
    Used together, I can parse a node containing comma separated values into an xml document with each value in its own node.

    Hi
    This is very simple (to the best of my knowledge)
    sqlplus userid/password@hoststring @pl_sql_file_name.ext [arg1] [arg2] [arg3]
    sqlplus - to invoke oracle
    userid - is the login id into oracle db
    password - is the password
    hoststring - is the ORACLE_SID
    pl_sql_file_name.ext - is the pl_sql file you wish to run
    arg1, arg2, arg3 - the arguments that you may be refering in the pl_sql script. arg1 refers to &1 in your script and arg2 refers to &2 in your script and arg3 refers to &3 in your script.
    Have fun!
    Good Luck
    null

  • Difference between XLSTProcessor and oraxsl

    Hi,
    I am getting what appears to be a bug in XSLTProcessor. Running oraxsl with a particular XSL and XML produces the anticipated output.
    However using XSLTProcessor inside a servlet (with both XML and XSL correctly parsed) produces an incomplete output. Processing stops at the first <xsl:for-each> call and the incomplete document is returned.
    I have checked everything I can think of to make sure that the right files are going in and the wrong one one is coming out.
    Since the files are quite large then I would have to do a bit of work on them to make a small repeatable version. So I would appreciate it if anyone could point me to a possible solution, having experienced the same problem. If, as is quite likely, this is not an obvious problem, then I will work on a smaller example.
    Thanks,
    Ralph.

    A scalable cluster is usually associated with HPC clusters but some might argue that Oracle RAC is this type of cluster. Where the workload can be divided up and sent to many compute nodes. Usually used for a vectored workload.
    A failover cluster is where a standby system or systems are available to take the workload when needed. Usually used for scalar workloads.

  • ORAXSL .....validation

    Hi,
    i am writting a batch job which will call oraxsl to convert from one xml format to other xml format before loading into database.
    How do I verify that ORAXSL has succesfully transformed the file. I mean does ORAXSL return some value which i can check to ensure that the process was succesful.
    Regards,
    Prashant

    Hi,
    i am writting a batch job which will call oraxsl to convert from one xml format to other xml format before loading into database.
    How do I verify that ORAXSL has succesfully transformed the file. I mean does ORAXSL return some value which i can check to ensure that the process was succesful.
    Regards,
    Prashant

  • Xsl:attribute error in oraxsl command line

    Hi Forum,
    I'm getting error XML-22047 when trying to use xsl:attribute.
    Here's the test XML I'm using:
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
       <level1>Test-Content</level1>
    </root>
    now, this is the stylesheet I'm using:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:mdm="schema.condes.org/mds/meta" version="2.0" xml:space="preserve">
       <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
       <xsl:template match="/">
          <xsl:apply-templates/>
       </xsl:template>
       <xsl:template match="root">
          <Foo>
             <xsl:attribute name="test">testing attribute</xsl:attribute>
             <xsl:apply-templates/>
          </Foo>
       </xsl:template>
    </xsl:stylesheet>
    If I run this, it throws error XML-22047, invalid instantiation of 'attribute' in 'element' context (translated from the German error message...)
    Has anybody seen this and could advice me some help?
    Thanks, Jürgen

    Use xsl:element instead of explicit element.
    <xsl:template match="root">
    <xsl:element name="Foo">
    <xsl:attribute name="test">testing attribute</xsl:attribute>
    <xsl:apply-templates/>
    </xsl:element>
    </xsl:template>

  • Get Current Datetime in an XSL

    How do I add a current Datetime to an XSL document? The following sample works in XALAN but not ORAXSL. date:new() returns nothing!?
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date" exclude-result-prefixes="date">
    <xsl:template name="createCurrentDATETIME">
    <xsl:variable name="today" select="date:new()"/>
    <xsl:variable name="len" select="string-length(normalize-space($today))"/>
    <xsl:choose>
    <xsl:when test="$len &gt; 0">
    <xsl:element name="DATETIME">
    <xsl:element name="YEAR">
    <xsl:value-of select="substring($today,$len - 4,$len)"/>
    </xsl:element>
    </xsl:element>
    </xsl:when>
    <xsl:otherwise>
    <xsl:element name="DATETIME">
    <xsl:element name="YEAR">2002</xsl:element>
    </xsl:element>
    </xsl:otherwise>
    </xsl:choose>
    ...

    The following example will work. Please use the "toString()" functions.
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:date="http://www.oracle.com/XSL/Transform/java/java.util.Date" exclude-result-prefixes="date">
    <xsl:template match="/">
    <xsl:variable name="today" select="date:new()"/>
    <xsl:variable name="len" select="string-length(normalize-space(date:toString($today)))"/>
    <!-- <xsl:value-of select="date:toString($today)"/>-->
    <xsl:value-of select="substring(date:toString($today),$len - 4,$len)"/>
    </xsl:template>
    </xsl:stylesheet>

  • 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.

  • How to create xml file from original

    I have this complicated xml and I want to search through it and make a new xml with only element I find that match. what is the best way to do this? the file
    is about 6mb and I want to read the whole file easily..should i load to database table and create a file from table? I have found issues reading the file..
    - <ArrayOfJobClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <JobClass>
    - <Triggers>
    - <TriggerClass>
    <ExpireActionType>Delete</ExpireActionType>
    <ExpireType>DateTime</ExpireType>
    <TriggerType>TimeType</TriggerType>
    - <TTime>
    <TimeTriggerType>Custom</TimeTriggerType>
    <IntervalType>Daily</IntervalType>
    <SpecificType>Days</SpecificType>
    <FirstLastType>First</FirstLastType>
    <IntervalValue>1</IntervalValue>
    <FirstLastWeekDay>Monday</FirstLastWeekDay>
    <InitDate>2009-05-04T14:17:05.40625-07:00</InitDate>
    - <IntervalDays>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>
    <boolean>false</boolean>

    You can load it in the database in an XMLType table (Object-Relational or Binary XML storage), use XQuery on the XML content and then write back the result to a file.
    Or, you might just use an external processor (XSLT or XQuery).
    If you want to stay in the Oracle world, you can use :
    - For XSLT : $ORACLE_HOME/bin/oraxsl (it's a wrapper for the java XSLT engine)
    - For XQuery : the java XQuery API
    Personally, I sometimes use the Saxon XSLT and XQuery processor, quite efficient.
    Here's a simplistic example with oraxsl utility :
    emp.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <emps>
      <emp id="7369">
        <name>SMITH</name>
        <job>CLERK</job>
        <salary>800</salary>
      </emp>
      <emp id="7499">
        <name>ALLEN</name>
        <job>SALESMAN</job>
        <salary>1600</salary>
      </emp>
      <emp id="7521">
        <name>WARD</name>
        <job>SALESMAN</job>
        <salary>1250</salary>
      </emp>
      <emp id="7566">
        <name>JONES</name>
        <job>MANAGER</job>
        <salary>2975</salary>
      </emp>
      <emp id="7654">
        <name>MARTIN</name>
        <job>SALESMAN</job>
        <salary>1250</salary>
      </emp>
    </emps>
    emp.xsl
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml"/>
    <xsl:template match="text()"/>
    <xsl:template match="emps/emp[job='SALESMAN']">
      <xsl:copy-of select="."/>
    </xsl:template>
    </xsl:stylesheet>Applying the transformation to search and extract all "salesmen" :
    D:\ORACLE\test>%ORACLE_HOME%\bin\oraxsl emp.xml emp.xsl result.xml
    D:\ORACLE\test>type result.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <emp id="7499">
        <name>ALLEN</name>
        <job>SALESMAN</job>
        <salary>1600</salary>
      </emp><emp id="7521">
        <name>WARD</name>
        <job>SALESMAN</job>
        <salary>1250</salary>
      </emp><emp id="7654">
        <name>MARTIN</name>
        <job>SALESMAN</job>
        <salary>1250</salary>
      </emp>

Maybe you are looking for

  • ODBC and XA

    Hi all. We are thinking about using ODBC in our tuxedo services to make easy the migration between one database and other of a different vendor. We also need to use XA. Have some of you information about using ODBC and XA, (conception, problems, ...)

  • HT5637 2 apple ID's on one computer

    Hi, I want to be able to set up iMatch for two apple ID's using the same computer, (Mac OSX 10.6.8) so both my husband and I can have our itunes library on our phones using imatch, but we keep our other icloud data separate (contacts etc). I've set i

  • SBO Mobile - Running both IOS & Android

    SBO Version 9.0 PL08 Forum, Has anyone been able to use the SAP Business One mobile solution on both android & IOS for the same user. i.e. like you can specify more than one device for a user by placing a '/' inbetween MAC addesses - this was only ev

  • Swatch from square-pattern backrgound

    Hi Am hoping someone can help me. I have an image (JPG) that I want to create a pattern fill / swatch from. Here is the pattern: Now, I started creating little squares using the rectangle tool and tried to line them up next to each other and fill the

  • FR-MPLS load balancing

    Hi All, i hv 3 Fr circuits and 1 mpls circuits from india to Usa. is it possible that i will go fro load balancing? pls give me the solution Thanks