XSL-1009 error

Ok, I'm driving myself nuts with this and hoping someone can help! I've reviewed the other posts and re-checked things but it still doesn't work. Here's a simple test case:
I have two tables. One of them is the SCOTT.EMP table. The other table is one I created; very simple two column table as follows (also in the scott schema):
CREATE TABLE sjh_test
sales_brand_bsnss_id VARCHAR2(10),
xml_doc XMLTYPE
In the xml_doc column I've stored an XSL style sheet. Here's the insert statement used, with the actual style sheet:
insert into scott.sjh_test
VALUES(100, sys.XMLType.createXML
('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
Hello there.
<xsl:for-each select="ROWSET">
<table border="1" cellspacing="0">
<xsl:for-each select="ROW">
<tr>
<td><xsl:value-of select="EMPNO"/></td>
<td><xsl:value-of select="ENAME"/></td>
</tr>
</xsl:for-each>
</table>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>'))
All I want to do I create a simple proof of concept which grabs some data from the EMP table as an XML document, then apply the XSL style sheet and get a result--the HTML output. Here is my code. The line of code "dbms_xmlquery.setXSLT(queryCtx, theStyleSheet);" throws the XSL-1009 error. The actual error text is "ORA-29532: Java call terminated by uncaught Java exception: oracle.xml.sql.OracleXMLSQLException: XSL-1009: Attribute 'xsl:version' not found in 'ROWSET'."
declare
queryCtx dbms_xmlquery.ctxType;
queryCtx2 dbms_xmlquery.ctxType;
result clob;
theStyleSheet clob;
errorNum NUMBER;
errorMsg VARCHAR2(200);
v_more BOOLEAN := TRUE;
begin
queryCtx := dbms_xmlquery.newContext('SELECT empno, ename, deptno FROM emp WHERE deptno = 7369');
queryCtx2 := dbms_xmlquery.newContext('select s.xml_doc.getClobVal() as stylesheet from scott.sjh_test s');
theStyleSheet := dbms_xmlquery.getXML(queryCtx2);
dbms_xmlquery.closeContext(queryCtx2);
dbms_xmlquery.setXSLT(queryCtx, theStyleSheet); -- ERROR HAPPENS HERE!
result := dbms_xmlquery.getXML(queryCtx);
dbms_xmlquery.closeContext(queryCtx);
WHILE v_more LOOP
DBMS_OUTPUT.PUT_LINE(Substr(theStyleSheet, 1, 255));
IF Length(theStyleSheet) > 32767 THEN
theStyleSheet := Substr(theStyleSheet, 32768);
ELSE
v_more := FALSE;
END IF;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(Substr(SQLERRM,1,255));
end;
Any ideas??
Thanks very much, in advance.
Scott

Thanks for the suggestion. That gets me past that problem. It is now throwing a NullPointerException on this line:
result := dbms_xmlquery.getXML(queryCtx);
Here's the full code:
begin
queryCtx := dbms_xmlquery.newContext('SELECT empno, ename, deptno FROM emp WHERE deptno = 7369');
select s.xml_doc.getClobVal() into theStylesheet from scott.sjh_test s;
dbms_xmlquery.setXSLT(queryCtx, theStyleSheet);
result := dbms_xmlquery.getXML(queryCtx); -- *** NullPointerException occurs here ***
dbms_xmlquery.closeContext(queryCtx);
WHILE v_more LOOP
DBMS_OUTPUT.PUT_LINE(Substr(theStyleSheet, 1, 255));
IF Length(theStyleSheet) > 32767 THEN
theStyleSheet := Substr(theStyleSheet, 32768);
ELSE
v_more := FALSE;
END IF;
END LOOP;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(Substr(SQLERRM,1,255));
end;
Thanks again for the suggestion. It looks like I'm close now.
Scott

Similar Messages

  • XSL-1009: (Error) Attribute 'version' not found in 'HTML'

    Hi,
    I've got the following problem: oracle.xml.parserv2.XSLException
    <Line 1, Column 7>: XSL-1009: (Error) Attribute '{http://www.w3.org/1999/XSL/Transform}:version' not found in 'HTML'.
    and I wanted to know what are its origins and what to do to go around, knowing that:
    - we run a java application on an oracle 9iAS and it works fine !
    - we run the same application on an oracle web-to-go server and it gives this message on the client when trying to put
    - the mobile server 'java environment' is a little bit never (version) than the online environment, both servers (9ias an mobile) run on the same machine (mobile is never -> impact on client environment? Installs run under jre 1.3.01)
    - we have an xml document (DOM) and an .fo stylesheet (file/url), so no html for output! Where comes it from? The <xsl:output method="html"> has even been removed and tried with method="application/pdf", no change.
    - the function XSLProcessor.newXSLStylesheet raises this exception; to make it at least run on online environment, we used the .jar file from JDevelopper 9.0.2.822 (this .jar is used in JDev, on 9ias and mobile client)
    - the output file (via apache's fop) shows correctly in the online version, but fails the create/use of the stylesheet (tried stylesheet with xml data for output and a generique 'Hello World' .fo for pdf output, both fail)
    - the .fo starts with <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
    - we even tried xsl:version="1.0" and no version at all
    - the same XML parsed with an .xsl for html output works fine, in mobile, the attribute "http://www.w3.org/1999/XSL/Transform" does not show up as an error
    I guess we have a version or configuration conflict, but what exactly could it be? If you need some more version numbers, just let me know.
    Thanx very much for any help!

    Hi,
    as I wrote in the inital message, we even left out the output method or used "application/pdf". The result is unfortunately always the same. And I still claim this is not a problem with the stylesheet itself, it has to do something with the mobile's environment.
    Something I didn't tell: we have 2 servlets in our application, 1 responsible for output in html and 1 in pdf. The .fo stylesheet passed to the 'html servlet' is parsed correctly (and shows the source code, because it does not know about fo and conversion to pdf), the .xsl stylesheet passed to the 'pdf servlet' raises same exception/same line. You might tell us that there is a problem with the 'pdf servlet', but once again: why in online it is working?
    Greetings and thanx very much for your precious time!

  • XSL-1009 error in XML to XML using XSL

    I'm using XSL to transform one XML format to another using and XSL transform file. I'm initiating this with ORAXSL in.xml transform.xsl out.xml. The XSL file has in it:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.oracle.com/XSL/Transform/Java" version="1.0">
    <xsl:import href="../generic/parsePOHeader.xsl"/>
    <xsl:import href="../generic/parsePOLine.xsl"/>
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    ORAXSL gives an error of XSL-1009: Attribute xsl:version not found in XSL:Stylesheet.
    Putting an XSL: prefix on the version doesn't help. A search for help on this site had a solution for XSL that create HTML.
    Has anyone else solved this problem?

    Thanks everyone for th ereply. Yes, I tested the mapping in integration bulider and it works fine. Even the file conversion works fine intermittantly! Sometimes it converts successfully and wrties file to target location and sometimes I get this error. I checkd in sxi_cache and I see the mapping xsl files there. I jus had basis reboot PI server and run some cache commands but still same problem! Also, when I have to files in source directory sometimes it converts both, sometimes one and sometimes both fails! I haveno clue what els to try.
    What are adapter nodes and wher can I check for that?
    Thanks.
    Mithun

  • 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

  • XSL-1009 XSL:Version

    The following xsl sample will translate with ORAXSL without errors in one of my docs:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:import href="../generic/parsePOHeader.xsl"/>
    <xsl:import href="../generic/parsePOLine.xsl"/>
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    <xsl:value-of disable-output-escaping="yes" select="'&lt;?soxtype urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.sox$1.0?&gt;'"/>
    <xsl:element name="Order">
    <xsl:element name="OrderHeader">
    <xsl:call-template name="parsePOHeader">
    <xsl:with-param name="HEADER" select="//POHEADER"/>
    <xsl:with-param name="ProcessPO" select="'Y'"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:if test="count(//POLINE) &gt; 0">
    <xsl:element name="OrderDetail">
    <xsl:element name="ListOfItemDetail">
    <xsl:for-each select="//POLINE">
    <xsl:call-template name="parseLINE">
    <xsl:with-param name="LineItem" select="."/>
    </xsl:call-template>
    </xsl:for-each>
    </xsl:element>
    </xsl:element>
    </xsl:if>
    <xsl:call-template name="createOrderSummary">
    <xsl:with-param name="NumLines" select="count(//POLINE) + count(//POSUBLINE)"/>
    <xsl:with-param name="Amount" select="//POHEADER/OPERAMT[@qualifier='EXTENDED' and @type='T']"/>
    </xsl:call-template>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>
    The following xsl with the same stylesheet statement errors out.
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:import href="../generic/parsePOHeader.xsl"/>
    <xsl:import href="../generic/parsePOLine.xsl"/>
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    <xsl:value-of disable-output-escaping="yes"
    select="'&lt;?soxtype
    urn:x-commerceone:document:com:commerceone:XCBL30:XCBL30.so
    x$1.0?&gt;'"/>
    <xsl:element name="Order">
    <xsl:element name="OrderHeader">
    <xsl:call-template name="parsePOHeader">
    <xsl:with-param name="HEADER"
    select="//POHEADER"/>
    </xsl:call-template>
    </xsl:element>
    <xsl:if test="count(//POLINE) &gt; 0">
    <xsl:element name="OrderDetail">
    <xsl:element name="ListOfItemDetail">
    <xsl:for-each select="//POLINE">
    <xsl:call-template name="parseLINE">
    <xsl:with-param name="LineItem"
    select="."/>
    </xsl:call-template>
    </xsl:for-each>
    </xsl:element>
    </xsl:element>
    </xsl:if>
    <xsl:call-template name="createOrderSummary">
    <xsl:with-param name="NumLines"
    select="count(//POLINE) + count(//POSUBLINE)"/>
    <xsl:with-param name="Amount"
    select="//POHEADER/OPERAMT[@qualifier='EXTENDED' and
    @type='T']"/>
    </xsl:call-template>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>
    ERROR:
    A nonfatal internal JIT (3.10.107(x)) error 'GetRegisterA' has occurred in :
    'oracle/xml/parser/v2/XSLNodeList.indexOf (Lorg/w3c/dom/Node;)I': Interpreting method.
    Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi
    oracle.xml.parser.v2.XSLException: XSL-1016: Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.
    Error occurred while processing OAGIShowPONeal.xml: XSL-1016: Extension function namespace should start with 'http://www.oracle.com/XSL/Transform/java/'.
    I made the suggested change to the XSL
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="'http://www.oracle.com/XSL/Transform/java/" version="1.0">
    <xsl:import href="../generic/parsePOHeader.xsl"/>
    <xsl:import href="../generic/parsePOLine.xsl"/>
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">.
    And I get the following error:
    Error occurred while processing ORATransformShowPO.xsl: XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'.
    I searched Technet.oracle.com for an explanation. According to Steve Muench, 7/24/2000, I need to use the following : <xsl:stylesheet version="1.0" xmlns:xsl=" " target="_new">http://www.w3.org/1999/XSL/Transform">
    This makes no sense because it has an odd number of quotes and > symbols but I tried it. I have the same error, again.
    Can anyone make sense of this?
    Big Hurrah for the solution!

    I typed the words "turn off jit" into Google and came up with a link like:
    http://java.apache.org/faq/fom-serve/cache/152.html
    that might help.

  • Oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'RO

    I'm using the oracle.xml.parser.v2. The files (xml, xsl) are:
    <?xml version="1.0" ?>
    <?xml-stylesheet type="text/xsl" href="king.xsl" ?>
    <ROWSET>
    <ROW>
    <EMPNO>7839</EMPNO>
    <ENAME>KING</ENAME>
    </ROW>
    </ROWSET>
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
    <INVITATION>
    <TO>
    <xsl:value-of select="ROWSET/ROW/ENAME"/>
    <xsl:text> &; FAMILY </xsl:text>
    </TO>
    </INVITATION>
    </xsl:template>
    </xsl:stylesheet>
    The error is: oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'ROWSET'.
    The files are well formed (tested with XML Spy 3.5). Can you see what's the problem? or is it a bug with the parser?
    help,
    Alberto
    null

    I encountered the same problem. When I change the order of the XML and XSL files, i am the same problem.
    Perhaps it's the environment AIX 4.3.3, JDK IBM 1.2.2 with JIT disable (because when JIT is enable some other problems become)??
    How can i resolve this bug ?
    Thanks.
    null

  • XSL-1009: Attribute 'xsl:version'  not found in 'BatchDelivery'.

    I have seen this error in many postings and have never understood just what was being transgressed. I am trying to prepare an xml file for inserting into a table using OracleXML putXML but I never get that far. I have exhausted all my guesses and interpretations of others' postings.
    C:\oracle\Samples\BatchDelivery>oraxsl -debug batchdelivery.xsl batchdelivery.txt out.xml
    Error occurred while processing batchdelivery.txt: file:/C:/oracle/Samples/Batch
    Delivery/batchdelivery.txt<Line 2, Column 83>: XSL-1009: Attribute 'xsl:version' not found in 'BatchDelivery'.
    C:\oracle\Samples\BatchDelivery>
    batchdelivery.xsl:
    <ROWSET xsl.version="1.0" xmlns:xsl="http://www.w3.org/1999/xsl/Transform" >
    <xsl:for-each select="BatchDelivery/BatchConfiguration">
    <ROW >
    <KEYCONFIGID><xsl:value-of select="KeyConfigID"/></KEYCONFIGID>
    <CARDREQUIREMENTSID><xsl:value-of select="CARDREQUIREMENTSID"/></CARDREQUIREMENTSID>
    <CARDPRODUCTID><xsl:value-of select="CardProductID"/></CARDPRODUCTID>
    <PHYSICALDESCRIPTIONID><xsl:value-of select="PhysicalDescriptionID"/></PHYSICALDESCRIPTIONID>
    <LOGICALDESCRIPTIONID><xsl:value-of select="LogicalDescriptionID"/></LOGICALDESCRIPTIONID>
    <PACKAGECONFIGID><xsl:value-of select="PackageConfigID"/></PACKAGECONFIGID>
    </ROW>
    </xsl:for-each>
    </ROWSET>
    batchdelivery.xml
    <BatchDelivery xmlns="http://www.activcard.com/xml/ns/acms/batch/1.0" xmlns:xsl="http://www.w3.org/2001/XMLSchema-instance"
    xsl:schemaLocation="http://www.activcard.com/xml/ns/acms/batch/1.0/batch_1.0.xsd">
         <Header>
              <DocID>BD-CAC-0000000001</DocID>
              <Date>2001-06-15T00:00:00</Date>
              <Author>Oberthur</Author>
              <Comment>Batch Delivery sample</Comment>
         </Header>
         <DeliveryPlaceInfo>
              <DeliveryPlaceID>OCS-01</DeliveryPlaceID >
              <OrganizationName>Oberthur</OrganizationName>
              <Address>1600 Vault St</Address>
              <City>Storage City</City>
              <ZipCode>33333</ZipCode>
              <State>CA</State>
              <Country>USA</Country>
              <MainContactPerson>
                   <PersonName>joeDoe</PersonName>
                   <Tel1>1-608-578-5000</Tel1>
                   <Tel2/>
                   <Fax/>
                   <Email>[email protected]</Email>
              </MainContactPerson>
         </DeliveryPlaceInfo>
         <CardManufacturerInfo>
              <CardManufacturerID>Oberthur-01</CardManufacturerID>
              <OrganizationName>Oberthur Card Systems</OrganizationName>
              <Address/>
              <City/>
              <ZipCode/>
              <State/>
              <Country/>
              <MainContactPerson>
                   <PersonName/>
                   <Tel1/>
                   <Tel2/>
                   <Fax/>
                   <Email/>
              </MainContactPerson>
         </CardManufacturerInfo>
         <BatchConfiguration>
         <KeyConfigID>0000000002</KeyConfigID>     <CardRequirementsID>0000000001</CardRequirementsID>
         <CardProductID>0000000002</CardProductID>     <PhysicalDescriptionID>0000000001</PhysicalDescriptionID>
              <LogicalDescriptionID>0000000001</LogicalDescriptionID>
              <PackageConfigID>0000000001</PackageConfigID>
         </BatchConfiguration>
    </BatchDelivery>

    I am cursed by the tendency to mistype whenever I repeatedly cut/paste/test/post! Changing the "." to ":" has no affect whatsoever. I wish it did!
    Mike

  • XSL-1009: Attribute 'xsl:version' not found in 'xsl:stylesheet'

    I'm just starting to test XML in Oracle 8.1.7 for NT, and received the following error while testing the Oracle provided "xslsample" procedure. I modified the "iden.xls" stylesheet and added version="1.0", but still receive the same error.
    execute xslsample('C:\XML\Sample','family.xml','iden.xsl','family.out','errors.txt');
    Parsing XML document C:\XML\Sample/family.xml
    Parsing XSL document C:\XML\Sample/iden.xsl
    The id is16777216
    The id is16777217
    XSL Root element information
    Qualified Name: xsl:stylesheet
    Local Name: stylesheet
    Namespace: http://www.w3.org/XSL/Transform/1.0
    Expanded Name: http://www.w3.org/XSL/Transform/1.0:stylesheet
    A total of 1 XSL instructions were found in the stylesheet
    BEGIN xslsample('C:\XML\Sample','family.xml','iden.xsl','family.out','errors.txt'); END;
    ERROR at line 1:
    ORA-20100: Error occurred while processing: XSL-1009: Attribute 'xsl:version'
    not found in 'xsl:stylesheet'.
    ORA-06512: at "SCOTT.XSLPROCESSOR", line 22
    ORA-06512: at "SCOTT.XSLPROCESSOR", line 346
    ORA-06512: at "SCOTT.XSLSAMPLE", line 59
    ORA-06512: at line 1
    null

    There is a bug in the demo stylesheet. In iden.xsl the line:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">should instead be:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

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

  • XSL-1047: (Error) Invalid instantiation of 'xsl:output' in 'INSERT' context

    Following is my development environment:
    JDeveloper 9i Release Candidate
    JDeveloper JVM 1.3.1
    Oracle XML Parser v2 9.2.0.0.0
    I'm using the Oracle XML Parser V2 9.2.0.0.0 library to apply a stylesheet to an XML document. However when I invoke the call to processor.processXSL() an XSLException is thrown with the following details:
    oracle.xml.parser.v2.XSLException: <Line 1, Column 116>: XSL-1047: (Error) Invalid instantiation of 'xsl:output' in 'INSERT' context.
    exception
    Below is the sequence of events:
    // Create an instance of XSLProcessor to perform the transformation
    XSLProcessor processor = new XSLProcessor();
    // create a Reader from a String object that contains the stylesheet text
    StringReader r = new StringReader( stylesheet );
    // create a new XSL stylesheet, passing it the Reader object reference
    XSLStylesheet sheet = processor.newXSLStylesheet(r);
    // apply the stylesheet
    // the variable sheet represents the XSLStylesheet object
    // the variable source represents the XMLDocument object
    // this call throws the exception
    DocumentFragment df =
    processor.processXSL(sheet,source);
    I've included the Stylesheet and source XML file I'm processing below.
    Note: My application works fine when I use the Oracle XML Parser v2 9.0.1 library. (although I have to use new XSLStylesheet() in place of XSLProcessor.newXSLStylesheet())
    Any ideas on what has changed between the two releases? I do have a reproducible test case that I can send on if required?
    thanks in advance
    private String stylesheet =
    "<INSERT xsl:version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\"> "+
    "<xsl:output method=\"xml\" indent=\"yes\"/> "+
    "<ROWSET table_name=\"acc_database\"> "+
    " <xsl:for-each select=\"DATABASES/DATABASE\"> "+
    " <ROW> "+
    " <DBID><xsl:value-of select=\"DBID\"/></DBID> "+
    " <DBNAME><xsl:value-of select=\"DBNAME\"/></DBNAME> "+
    " <DBSIZE><xsl:value-of select=\"DBSIZE\"/></DBSIZE> "+
    " <DBPATHNAME><xsl:value-of select=\"DBPATHNAME\"/></DBPATHNAME> "+
    " <DBUSER><xsl:value-of select=\"DBUSER\"/></DBUSER> "+
    " <DBPASSWORD><xsl:value-of select=\"DBPASSWORD\"/></DBPASSWORD> "+
    " <ISAPPDB><xsl:value-of select=\"ISAPPDB\"/></ISAPPDB> "+
    " <ISATTACHEDDB><xsl:value-of select=\"ISATTACHEDDB\"/></ISATTACHEDDB> "+
    " <CONVERTDB><xsl:value-of select=\"CONVERTDB\"/></CONVERTDB> "+
    " <VERSION><xsl:value-of select=\"VERSION\"/></VERSION> "+
    " </ROW> "+
    " </xsl:for-each> "+
    "</ROWSET> "+
    "</INSERT>";
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- this file was generated by the Oracle Migration Workbench Exporter for MS Access 9.2.0.1.0 on 13/02/02 15:16:52 -->
    <!-- Do not modify this file as any modification will invalidate the export and subsequent migration of your MS Access database -->
    <DATABASES>
    <DATABASE>
    <DBID>1</DBID>
    <DBNAME>xmltest</DBNAME>
    <DBSIZE>1</DBSIZE>
    <DBPATHNAME>E:\xmltest.mdb</DBPATHNAME>
    <DBUSER>xmltest</DBUSER>
    <DBPASSWORD>oracle</DBPASSWORD>
    <ISAPPDB>1</ISAPPDB>
    <ISATTACHEDDB>0</ISATTACHEDDB>
    <CONVERTDB>1</CONVERTDB>
    <VERSION>4.0</VERSION>
    <TABLES>
    <TABLE PRIMARY_KEY="1">
    <TBLID>1</TBLID>
    <DBID>1</DBID>
    <TBLNAME>xsu_test</TBLNAME>
    <CNVTABLESTRUCT>1</CNVTABLESTRUCT>
    <CNVMOVEDATA>1</CNVMOVEDATA>
    <CNVRI>1</CNVRI>
    <CNVVALIDATION>1</CNVVALIDATION>
    <CNVDEFAULT>1</CNVDEFAULT>
    <CNVADDTIMESTAMP>1</CNVADDTIMESTAMP>
    <ATTACHTABLEBACKTOACCESS>1</ATTACHTABLEBACKTOACCESS>
    <SAVEPASSWORD>0</SAVEPASSWORD>
    <CNVMAKEUPDATEABLE>1</CNVMAKEUPDATEABLE>
    <RETAINLOCALCOPY>0</RETAINLOCALCOPY>
    <SYNCWITHSERVER>1</SYNCWITHSERVER>
    <OWNERID>1</OWNERID>
    <VALIDATIONTEXT></VALIDATIONTEXT>
    <VALIDATIONRULE></VALIDATIONRULE>
    <NUMBEROFROWS>1</NUMBEROFROWS>
    <CACHINGTABLE>0</CACHINGTABLE>
    <DESCRIPTION></DESCRIPTION>
    <COLUMNS>
    <COLUMN>
    <COLID>1</COLID>
    <TBLID>1</TBLID>
    <COLNAME>id</COLNAME>
    <COLTYPE>4</COLTYPE>
    <COLTYPEDESC>Long</COLTYPEDESC>
    <COLAUTOINCR>1</COLAUTOINCR>
    <NEXTCOUNTERVALUE>0</NEXTCOUNTERVALUE>
    <MAXLENGTHSOURCE>0</MAXLENGTHSOURCE>
    <AVGLENGTHSOURCE>0</AVGLENGTHSOURCE>
    <COLTEXTSIZE>4</COLTEXTSIZE>
    <ALLOWZEROLENGTH>0</ALLOWZEROLENGTH>
    <DEFAULTVALUE></DEFAULTVALUE>
    <COLREQUIRED>1</COLREQUIRED>
    <COLCOLLATINGORDER>1033</COLCOLLATINGORDER>
    <COLORDPOSITION>1</COLORDPOSITION>
    <VALIDATIONRULE></VALIDATIONRULE>
    <VALIDATIONTEXT></VALIDATIONTEXT>
    <COLUMNDESCRIPTION></COLUMNDESCRIPTION>
    </COLUMN>
    <COLUMN>
    <COLID>2</COLID>
    <TBLID>1</TBLID>
    <COLNAME>name</COLNAME>
    <COLTYPE>10</COLTYPE>
    <COLTYPEDESC>Text</COLTYPEDESC>
    <COLAUTOINCR>0</COLAUTOINCR>
    <NEXTCOUNTERVALUE>0</NEXTCOUNTERVALUE>
    <MAXLENGTHSOURCE>0</MAXLENGTHSOURCE>
    <AVGLENGTHSOURCE>0</AVGLENGTHSOURCE>
    <COLTEXTSIZE>50</COLTEXTSIZE>
    <ALLOWZEROLENGTH>0</ALLOWZEROLENGTH>
    <DEFAULTVALUE></DEFAULTVALUE>
    <COLREQUIRED>1</COLREQUIRED>
    <COLCOLLATINGORDER>1033</COLCOLLATINGORDER>
    <COLORDPOSITION>2</COLORDPOSITION>
    <VALIDATIONRULE></VALIDATIONRULE>
    <VALIDATIONTEXT></VALIDATIONTEXT>
    <COLUMNDESCRIPTION></COLUMNDESCRIPTION>
    </COLUMN>
    </COLUMNS>
    <INDEXES>
    <INDEX>
    <INDID>1</INDID>
    <TBLID>1</TBLID>
    <DBID>1</DBID>
    <INDNAME>id</INDNAME>
    <CNVINDEX>1</CNVINDEX>
    <ISPRIMARY>0</ISPRIMARY>
    <ISUNIQUE>0</ISUNIQUE>
    <ISFOREIGN>0</ISFOREIGN>
    <IGNORENULLS>0</IGNORENULLS>
    <ISREQUIRED>0</ISREQUIRED>
    <INDEX_COLUMNS>
    <INDEX_COLUMN>
    <INDCOLID>1</INDCOLID>
    <INDID>1</INDID>
    <COLID>1</COLID>
    <COLORDER>1</COLORDER>
    </INDEX_COLUMN>
    </INDEX_COLUMNS>
    </INDEX>
    <INDEX>
    <INDID>2</INDID>
    <TBLID>1</TBLID>
    <DBID>1</DBID>
    <INDNAME>PK_xsu_test</INDNAME>
    <CNVINDEX>1</CNVINDEX>
    <ISPRIMARY>1</ISPRIMARY>
    <ISUNIQUE>1</ISUNIQUE>
    <ISFOREIGN>0</ISFOREIGN>
    <IGNORENULLS>0</IGNORENULLS>
    <ISREQUIRED>1</ISREQUIRED>
    <INDEX_COLUMNS>
    <INDEX_COLUMN>
    <INDCOLID>2</INDCOLID>
    <INDID>2</INDID>
    <COLID>1</COLID>
    <COLORDER>1</COLORDER>
    </INDEX_COLUMN>
    </INDEX_COLUMNS>
    </INDEX>
    </INDEXES>
    </TABLE>
    </TABLES>
    <RELATIONS>
    </RELATIONS>
    </DATABASE>
    <ATTACHED_TABLES>
    </ATTACHED_TABLES>
    </DATABASES>

    Your problem is that your stylesheet is illegal.
    You're using the "simple form" of the stylesheet which
    is equivalent to having a single root template.
    If you use the simple form, you cannot use: <xsl:include>,
    <xsl:import>, <xsl:output>, <xsl:param>
    or any other <xsl:XXX> element which must be at the "top-level"
    of the stylesheet.
    The solution is to change from:
    <INPUT xsl:version="1.0" xmlns:xsl="...">
       <xsl:output>
    </INPUT>.
    which is illegal to:
      <xsl:stylesheet version="1.0" xmlns:xsl="...">
        <xsl:output>
        <xsl:template match="/">
          <INPUT>
          </INPUT>
        </xsl:template>
      </xsl:stylesheet>

  • Preloader  #1009 error

    Halo. I've been trying to load external swf  ("index.swf") with the following code in AS3:
    //it's a simple preloader with one dynamic text field: "percent"
    //the "index.swf" is suppose to stop at 689 frame after being loaded (this part works fine)
    stop();
    import flash.display.*;
    import flash.net.URLRequest;
    import flash.events.Event;
    var l:Loader = new Loader();
    l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
    l.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
    l.load(new URLRequest("index.swf"));
    function onProgress(event:ProgressEvent):void{
       var perc:Number = event.bytesLoaded / event.bytesTotal;
       percent.text = Math.ceil(perc*100).toString();
    function onComplete(event:Event):void{
       var container:MovieClip = MovieClip(l.content);
       removeChild(percent);
       percent = null;
       addChild(container);
       container.gotoAndStop(689);
    Of course I receive the #1009 error : Cannot access a property or method of a null object reference. I guess it is some "stage issue" but I'm not familiar enought with AS3 to avoid the problem by my own.
    Could you please help me with the code.

    You were right. My idea about "stage issue" also was confirmed.
    The problem was in part of the code on the first frame of the "index.swf" (file that I was trying to load):
    stage.align="T";
    I think that this part of the code is being executed before the "index.swf" is loaded.
    Thanks for replies "kglad" and "Ned Murphy"
    Regards

  • 1009 Error Video in Firefox, but not IE

    Ok, I am trying to load a video and I get the 1009 error in Firefox, but not in Internet Explorer. I am wondering what is wrong with my code. Please see below. I even tried code from books and get the same error. I have to admit that I am disappointed with the latest version of Flash video.
    var myVideo:NetConnection = new NetConnection();
    myVideo.connect(null);
    var newStream:NetStream = new NetStream(myVideo);
    var videoHolder:Video = new Video(720, 480);
    stage.addChild(videoHolder);
    videoHolder.attachNetStream(newStream);
    videoHolder.x = 32;
    videoHolder.y = 60;
    videoHolder.alpha = 0;
    newStream.play("intro.flv");
    function fclickV(myevent:MouseEvent):void{
        gotoAndStop(forwardFrame);   
        stage.removeChild(videoHolder);
        my_ns.close()
    function bclickV(myevent:MouseEvent):void{
        gotoAndStop(backFrame);   
        stage.removeChild(videoHolder);
        my_ns.close()
    forwardV_btn.addEventListener(MouseEvent.CLICK,fclickV);
    forwardV_btn.addEventListener(MouseEvent.CLICK,stopSS);
    backV_btn.addEventListener(MouseEvent.CLICK,stopSS);
    backV_btn.addEventListener(MouseEvent.CLICK,bclickV);

    OK, here is the error and here is the correct code. The Error only occurs in Firefox for me, not IE.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at tutorial_fla::MainTimeline/frame4()
    Updated code
    var myVideo:NetConnection = new NetConnection();
    myVideo.connect(null);
    var newStream:NetStream = new NetStream(myVideo);
    var videoHolder:Video = new Video(720, 480);
    stage.addChild(videoHolder);
    videoHolder.attachNetStream(newStream);
    videoHolder.x = 32;
    videoHolder.y = 60;
    newStream.play("intro.flv");
    function fclickV(myevent:MouseEvent):void{
        gotoAndStop(forwardFrame);   
        stage.removeChild(videoHolder);
        newStream.close()
    function bclickV(myevent:MouseEvent):void{
        gotoAndStop(backFrame);   
        stage.removeChild(videoHolder);
        newStream.close()
    forwardV_btn.addEventListener(MouseEvent.CLICK,fclickV);
    backV_btn.addEventListener(MouseEvent.CLICK,stopSS);

  • D4o-1009 error

    I have a user who has created a workbook using Discoverer Plus, saved it and then when he tries to open the saved item gets the D4O-1009 error. He and I have created other workbooks that open fine.
    I'm would appreciate any suggestions on how to help him. We are running OracleBI Discoverer Plus Version 10.1.2.48.18.
    There is mention in the error message of editing the workbook manually. I'm a newbe to Discoverer and he is the expert and he had no idea to what they were referring. Again suggestions or pointers would be appreciated.
    Thanks, Jim Steelman

    Hello
    I've done some research on MetaLink and no references to D40-1009 show up.
    You might have encountered a known issue with regards to using an older catalog with a newer Discoverer for OLAP.
    This thread therefore might help: Re: Discoverer Catalog Error in D4OLAP
    Other than this, I suggest contacting Oracle support.
    Best wishes
    Michael

  • 1009 error, Mac Safari, CS4

    Just installed CD4 Design Premium on my Mac a couple of days
    ago. And since then every time I try to load a web page in Safari
    that has Flash content I get an pop-up Flash Player 10 #1009 error
    (see example below) and then I dismiss or cancel and the page loads
    as it should. I never had this problem with the previous version of
    the Flash Player. I also never had the Flash software installed on
    this machine before. I can't figure out how to fix this. I'm
    guessing that the Flash software has installed some debugging mode,
    but I'm only guessing and I can't figure out how to turn it off. It
    is really annoying and I want it to stop. Any help would be
    gratefully appreciated.
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at
    cityblock.flash.flash9::GooglePanorama_F9/getTranslatedMessages()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at flash.external::ExternalInterface$/_callIn()
    at <anonymous>()
    at flash.external::ExternalInterface$/_evalJS()
    at flash.external::ExternalInterface$/call()
    at cityblock.flash.flash9::GooglePanorama_F9()

    I am not sure why you have these two lines...
    var FishingSub_mc:MovieClip = FishingSub_mc;
    var Fishing_btn:SimpleButton = Fishing_btn;
    If those two objects are items on your stage, then you should not need those lines of code at all. The important thing is to be sure that you have the instance names assigned to the objects.  Whichever object is being targeted on line 12 is out of scope when that code executes.
    Some of the possible reasons...
    - the object doesn't have the instance name assigned to it
    - the object animates into the movie and does not have that instance name assigned at each keyframe
    - the object is somewhere down a timeline when that code executes

  • #1009 Error

    All buttons are defined and it's giving me this error:
    All my other buttons are coded exactly the same and they work but for some reason it's giving me the error below, and it's doing it for all the buttons in frame 90.
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at UnofficialKCChiefTrivav1000_fla::MainTimeline/frame92()[UnofficialKCChiefTrivav1000_fla.M ainTimeline::frame92:3]
      at flash.display::MovieClip/gotoAndStop()
      at UnofficialKCChiefTrivav1000_fla::MainTimeline/CBulls()[UnofficialKCChiefTrivav1000_fla.Ma inTimeline::frame90:26]

    The error is being encountered at frame 92 line 3.  Whichever object you are trying to target in that line of code does not exist as far as the processor sees it.
    The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is declared but not instantiated
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).

Maybe you are looking for

  • Images too bright in PSE, good in Windows Picture Viewer.

    Hi: My question is this, I shot some pictures of my son last weekend, in studio, with a Nikon D2X camera, and a softbox lightbank mounted on a Balcar flash head. I set the camera to RAW-JPEG Fine, ISO 100, and used a Minolta flashmeter to measure the

  • Aging Buckets (More than 7)

    I am going to create a custom report for Aging in Oracle Receivables. I need a report with more than 7 buckets. Has anyone implemented this feature? Any tips on how to proceed? Thanks in advance

  • ORA-22275: invalid LOB locator specified in a function

    Hello all!!! I am having a little problem with a function that returns a blob... When I call the function, I get that error... Here is the function (I took all the exception management code to clear it up a little...) <CODE> FUNCTION f_getfileblob (p

  • HP Support (or lack of)

    I have an OfficeJet 4500 with the normal problem, won't wake from sleep mode.  A well known issue for HP, has been from the bith of this printer.  They still have not bothered to issue a firmware update to fix it.  I finally got through to someone th

  • Final Cut Project file has become bloated

    My Final Cut Project file seems to be growing at an exponential level.  It jumped from 160mb to 367mb after I DELETED a bunch of files to try & reduce the size.  The problem is getting serious.  I try & "save as" or create a new project and drag my e