Oracle.xdo11g.xpath.XPathException: Variable not defined

Hello,
I got two pivot tables in the RTF Word PlugIn, when I take the second one out, the HTLM output shows fine, when I out the second one in, I get the error "oracle.xdo11g.xpath.XPathException: Variable not defined". I used the wizard to create the tables.
If I upload the layout and try to execute the report online, I get this error" oracle.xdo.XDOException: java.lang.reflect.InvocationTargetException"
anyone an Idea how I can add two pivot tables to my template without causing xml errors?

I got those two in a WORD table and as soon as I put the second one in the table (a word layout table by putting my pivot table in it) the error comes.

Similar Messages

  • Variable not defined: '_MR'.

    Dear all,
    I developped an RTF-template that runs fine locally.
    If I upload it to the eBusinessSuite and try to run it there, I receive the following error in the OPP log:
    [UNEXPECTED] [24862:RT391458] java.lang.reflect.InvocationTargetException at ....
    Caused by: oracle.xdo.parser.v2.XPathException: Variable not defined: '_MR'.
    I did not define any variable _MR in my template.
    However if I export my template to an XSL-FO Style Sheet, I can find this variable.
    It is defined twice as: <xsl:variable name="_MR" select="number(89.85)" xdofo:alt="internal"/>
    If I use an image in the heading, variable $_MR is used once in a statement that I don't understand.
    If I remove the image, the variable is only declared, but never used.
    In the eBS he is always wrong: with or without image.
    Any help in this would be very appreciated.
    Little update:
    In the XSL-FO are several variables defined for each section in the template:
    _PW = page with
    _PH = page height
    _ML = margin left
    _MR = margin right
    _MT = margin top
    _MB = margin bottom
    _HY ? something to do with header ?
    _FY ? something to do with footer ?
    May be this does ring a bell.

    Hi
    I have a RTF template wherein I am calling a sub-template.
    Whether I invoke the sub-template RTF directly (import:file) or convert it to XSL and import that (import:xsl), I always get this error
    Caused by: oracle.xdo.parser.v2.XPathException: Variable not defined: '_MR'.
    This happens in my local desktop, I have not even copied the files to server.
    My Template Builder version is '5.6 Build 45'
    Please help.
    Ritu
    Edited by: Rits on Oct 15, 2008 12:42 AM

  • XSLProcessor.Process throws  oracle.xml.xpath.XPathException:

    I have a java application which is parsing an XMLDocument using XMLProcessor.process(xsl,doc);
    It works for many XML messages, and their related XSL transformers, but throws this error regarding a dayTimeDuration() function.
    I'm using XDK version 10g, Java release:xdk_linux_10.2.0.2.0_production
    Other transformations without this function work fine. What am I doing wrong?
    Any help is appreciated.
    The Error is:
    oracle.xml.xpath.XPathException: Parse Error in dayTimeDuration function.
    The XML is:
    <SPLIMCreatedUpdatedOrder Destination="RTS">
         <HeaderData>
              <TransactionCode>3001</TransactionCode>
         </HeaderData>
         <TaskData>
              <FieldOrderNumber>TEST00001</FieldOrderNumber>
              <OrderStatus>Unassigned</OrderStatus>
              <DivisionName>Oregon</DivisionName>
              <DistrictName>Albany District</DistrictName>
              <CustomerName>Kathy Foote</CustomerName>
              <CustomerAddress1>105 CORCORAN LN</CustomerAddress1>
              <CustomerAddress2>Apt 101</CustomerAddress2>
              <CustomerCityState>CENTRAL POINT, OR</CustomerCityState>
              <CustomerZipCode>97502</CustomerZipCode>
              <OrderType>CON</OrderType>
              <TaskNumber>0</TaskNumber>
              <TaskDuration>10</TaskDuration>
              <TaskPriority>3</TaskPriority>
              <TaskExternalPriority></TaskExternalPriority>
              <Longitude>-122.923269</Longitude>
              <Latitude>42.370841</Latitude>
              <EnrouteDateTime></EnrouteDateTime>
              <OnsiteDateTime></OnsiteDateTime>
              <CompletionDateTime></CompletionDateTime>
              <PrimaryOrderNumber></PrimaryOrderNumber>
              <DatabaseAction>U</DatabaseAction>
              <ServiceAreaName>Serviceman - OR - 11256</ServiceAreaName>
              <DivisionCode>OR</DivisionCode>
              <DistrictCode>11256</DistrictCode>
              <ServiceAreaCode>SVC01</ServiceAreaCode>
              <CompletionStatusCode>O</CompletionStatusCode>
              <TrackingStatusCode>U</TrackingStatusCode>
         </TaskData>
         <SchedulingData>
              <EarlyStartDateTime>2007-01-17T08:00:00</EarlyStartDateTime>
              <DueOnDateTime>2007-01-31T17:00:00</DueOnDateTime>
              <ApptStartDateTime></ApptStartDateTime>
              <ApptFinishDateTime></ApptFinishDateTime>
              <TimeZone></TimeZone>
         </SchedulingData>
         <AssignmentData>
              <PreferredCrewName></PreferredCrewName>
              <RequiredCrewName></RequiredCrewName>
              <PrimaryFunction>Service</PrimaryFunction>
              <SkillData></SkillData>
              <CapabilityData></CapabilityData>
         </AssignmentData>
    </SPLIMCreatedUpdatedOrder>
    The XSL is:
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xdt="http://www.w3.org/2003/05/xpath-datatypes" xmlns:eg="local" xmlns:xs="http://www.w3.org/2001/XMLSchema">
         <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
         <xsl:template match="SPLIMCreatedUpdatedOrder">
              <SOAP-ENV:Envelope
                   xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
                   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   xmlns:ns2="http://mwm.splwg.com/webservices/packets/"
                   xmlns:ns1="http://mwm.splwg.com/webservices/"
                   xmlns:ns3="http://mwm.splwg.com/webservices/methods/">
              <xsl:variable name="databaseAction">
                   <xsl:value-of select="TaskData/DatabaseAction"/>
              </xsl:variable>
              <xsl:choose>
                   <xsl:when test="$databaseAction='A'">
                        <NEW_STOP>
                             <NEW_STOP_DATA>
                                  <PLAN_STOP>
                                       <IDENT>
                                            <xsl:value-of select="TaskData/FieldOrderNumber"/>
                                       </IDENT>
                                       <STATUS>
                                            <xsl:value-of select="TaskData/OrderStatus"/>
                                       </STATUS>
                                       <STARTED_DATE>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,1,4)"/>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,6,2)"/>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,9,2)"/>
                                       </STARTED_DATE>
                                       <STARTED_TIME>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,12,2)"/>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,15,2)"/>
                                       </STARTED_TIME>
                                       <COMPLETION_DATE>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,1,4)"/>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,6,2)"/>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,9,2)"/>
                                       </COMPLETION_DATE>
                                       <COMPLETION_TIME>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,12,2)"/>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,15,2)"/>
                                       </COMPLETION_TIME>
                                  </PLAN_STOP>
                                  <STOP>
                                       <IDENT>
                                            <xsl:value-of select="TaskData/FieldOrderNumber"/>
                                       </IDENT>
                                       <INITIAL_STATUS>FREE</INITIAL_STATUS>
                                       <JOB_DELAY>
                                            <xsl:value-of select="xs:int(TaskData/TaskDuration) * 60"/>
                                       </JOB_DELAY>
                                       <R_MUSTHAVE>
                                            <xsl:for-each select="AssignmentData">
                                                 <xsl:for-each select="SkillData">
                                                      <xsl:value-of select="."/>,</xsl:for-each>
                                            </xsl:for-each>
                                       </R_MUSTHAVE>
                                       <LATITUDE>
                                            <xsl:value-of select="TaskData/Latitude"/>
                                       </LATITUDE>
                                       <LONGTITUDE>
                                            <xsl:value-of select="TaskData/Latitude"/>
                                       </LONGTITUDE>
                                       <PRIMARY_STOP_ID>
                                            <xsl:value-of select="TaskData/PrimaryOrderNumber"/>
                                       </PRIMARY_STOP_ID>
                                       <STREET_NO>
                                            <xsl:value-of select="substring-before(TaskData/CustomerAddress1,' ')"/>
                                       </STREET_NO>
                                       <STREET>
                                            <xsl:value-of select="substring-after(TaskData/CustomerAddress1,' ')"/>
                                       </STREET>
                                       <CITY>
                                            <xsl:value-of select="substring-before(TaskData/CustomerCityState,',')"/>
                                       </CITY>
                                       <STATE>
                                            <xsl:value-of select="substring-after(TaskData/CustomerCityState,',')"/>
                                       </STATE>
                                       <POSTCODE>
                                            <xsl:value-of select="TaskData/CustomerZipCode"/>
                                       </POSTCODE>
                                  </STOP>
                                  <STOP_TW>
                                       <IDENT>
                                            <xsl:value-of select="TaskData/FieldOrderNumber"/>
                                       </IDENT>
                                       <STOP>
                                            <xsl:value-of select="TaskData/FieldOrderNumber"/>
                                       </STOP>
                                       <xsl:if test="string-length(SchedulingData/ApptStartDateTime) > 0">
                                            <xsl:variable name="apptDuration">
                                                 <xsl:value-of select="xs:dayTimeDuration(xs:dateTime(SchedulingData/ApptFinishDateTime)-xs:dateTime(SchedulingData/ApptStartDateTime))"/>
                                            </xsl:variable>
                                            <START_DATE>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,1,4)"/>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,6,2)"/>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,9,2)"/>
                                            </START_DATE>
                                            <START_TIME>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,12,2)"/>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,15,2)"/>
                                            </START_TIME>
                                            <xsl:variable name="iTotalHours">
                                                 <xsl:value-of select="xs:int(days-from-duration($apptDuration) * 24 + hours-from-duration($apptDuration))"/>
                                            </xsl:variable>
                                            <xsl:variable name="iMinutes">
                                                 <xsl:value-of select="xs:int(minutes-from-duration($apptDuration))"/>
                                            </xsl:variable>
                                            <DURATION>
                                                 <xsl:if test="not ($iTotalHours > 99)">0</xsl:if>
                                                 <xsl:if test="not ($iTotalHours > 9)">0</xsl:if>
                                                 <xsl:value-of select="xs:string($iTotalHours)"/>
                                                 <xsl:if test="not ($iMinutes > 60)">0</xsl:if>
                                                 <xsl:value-of select="xs:string($iMinutes) "/>
                                            </DURATION>
                                       </xsl:if>
                                       <!---->
                                       <xsl:if test="string-length(SchedulingData/ApptStartDateTime) = 0">
                                            <xsl:variable name="apptDuration">
                                                 <xsl:value-of select="xs:dayTimeDuration(xs:dateTime(SchedulingData/DueOnDateTime) - xs:dateTime(SchedulingData/EarlyStartDateTime))"/>
                                            </xsl:variable>
                                            <START_DATE>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,1,4)"/>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,6,2)"/>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,9,2)"/>
                                            </START_DATE>
                                            <START_TIME>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,12,2)"/>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,15,2)"/>
                                            </START_TIME>
                                            <xsl:variable name="iTotalHours">
                                                 <xsl:value-of select="xs:int(days-from-duration($apptDuration) * 24 + hours-from-duration($apptDuration))"/>
                                            </xsl:variable>
                                            <xsl:variable name="iMinutes">
                                                 <xsl:value-of select="xs:int(minutes-from-duration($apptDuration))"/>
                                            </xsl:variable>
                                            <DURATION>
                                                 <xsl:if test="not ($iTotalHours > 99)">0</xsl:if>
                                                 <xsl:if test="not ($iTotalHours > 9)">0</xsl:if>
                                                 <xsl:value-of select="xs:string($iTotalHours)"/>
                                                 <xsl:if test="not ($iMinutes > 60)">0</xsl:if>
                                                 <xsl:value-of select="xs:string($iMinutes) "/>
                                            </DURATION>
                                       </xsl:if>
                                  </STOP_TW>
                             </NEW_STOP_DATA>
                        </NEW_STOP>
                   </xsl:when>
                   <xsl:when test="$databaseAction='U'">
                        <UPDATE_STOP>
                             <UPDATE_STOP_DATA>
                                  <PLAN_STOP>
                                       <IDENT>
                                            <xsl:value-of select="TaskData/FieldOrderNumber"/>
                                       </IDENT>
                                       <STOP>
                                            <xsl:value-of select="TaskData/FieldOrderNumber"/>
                                       </STOP>
                                       <STATUS>
                                            <xsl:value-of select="TaskData/OrderStatus"/>
                                       </STATUS>
                                       <STARTED_DATE>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,1,4)"/>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,6,2)"/>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,9,2)"/>
                                       </STARTED_DATE>
                                       <STARTED_TIME>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,12,2)"/>
                                            <xsl:value-of select="substring(TaskData/OnsiteDateTime,15,2)"/>
                                       </STARTED_TIME>
                                       <COMPLETION_DATE>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,1,4)"/>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,6,2)"/>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,9,2)"/>
                                       </COMPLETION_DATE>
                                       <COMPLETION_TIME>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,12,2)"/>
                                            <xsl:value-of select="substring(TaskData/CompletionDateTime,15,2)"/>
                                       </COMPLETION_TIME>
                                  </PLAN_STOP>
                                  <STOP>
                                       <IDENT>
                                            <xsl:value-of select="TaskData/FieldOrderNumber"/>
                                       </IDENT>
                                       <INITIAL_STATUS>FREE</INITIAL_STATUS>
                                       <JOB_DELAY>
                                            <xsl:value-of select="xs:int(TaskData/TaskDuration) * 60"/>
                                       </JOB_DELAY>
                                       <R_MUSTHAVE>
                                            <xsl:for-each select="AssignmentData">
                                                 <xsl:for-each select="SkillData">
                                                      <xsl:value-of select="."/>,</xsl:for-each>
                                            </xsl:for-each>
                                       </R_MUSTHAVE>
                                       <LATITUDE>
                                            <xsl:value-of select="TaskData/Latitude"/>
                                       </LATITUDE>
                                       <LONGTITUDE>
                                            <xsl:value-of select="TaskData/Latitude"/>
                                       </LONGTITUDE>
                                       <PRIMARY_STOP_ID>
                                            <xsl:value-of select="TaskData/PrimaryOrderNumber"/>
                                       </PRIMARY_STOP_ID>
                                       <STREET_NO>
                                            <xsl:value-of select="substring-before(TaskData/CustomerAddress1,' ')"/>
                                       </STREET_NO>
                                       <STREET>
                                            <xsl:value-of select="substring-after(TaskData/CustomerAddress1,' ')"/>
                                       </STREET>
                                       <CITY>
                                            <xsl:value-of select="substring-before(TaskData/CustomerCityState,',')"/>
                                       </CITY>
                                       <STATE>
                                            <xsl:value-of select="substring-after(TaskData/CustomerCityState,',')"/>
                                       </STATE>
                                       <POSTCODE>
                                            <xsl:value-of select="TaskData/CustomerZipCode"/>
                                       </POSTCODE>
                                  </STOP>
                                  <STOP_TW>
                                       <IDENT>
                                            <xsl:value-of select="TaskData/FieldOrderNumber"/>
                                       </IDENT>
                                       <xsl:if test="string-length(SchedulingData/ApptStartDateTime) > 0">
                                            <xsl:variable name="apptDuration">
                                                 <xsl:value-of select="xs:dayTimeDuration(xs:dateTime(SchedulingData/ApptFinishDateTime)-xs:dateTime(SchedulingData/ApptStartDateTime))"/>
                                            </xsl:variable>
                                            <START_DATE>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,1,4)"/>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,6,2)"/>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,9,2)"/>
                                            </START_DATE>
                                            <START_TIME>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,12,2)"/>
                                                 <xsl:value-of select="substring(SchedulingData/ApptStartDateTime,15,2)"/>
                                            </START_TIME>
                                            <DURATION>
                                                 <xsl:if test="not (xs:hours-from-duration($apptDuration) > 99)">0</xsl:if>
                                                 <xsl:if test="not (xs:hours-from-duration($apptDuration) > 9)">0</xsl:if>
                                                 <xsl:value-of select="xs:hours-from-duration($apptDuration)"/>
                                                 <xsl:if test="not (xs:minutes-from-duration($apptDuration) > 9)">0</xsl:if>
                                                 <xsl:value-of select="xs:minutes-from-duration($apptDuration)"/>
                                            </DURATION>
                                       </xsl:if>
                                       <!---->
                                       <xsl:if test="string-length(SchedulingData/ApptStartDateTime) = 0">
                                            <xsl:variable name="apptDuration">
                                                 <xsl:value-of select="xs:dayTimeDuration(xs:dateTime(SchedulingData/DueOnDateTime) - xs:dateTime(SchedulingData/EarlyStartDateTime))"/>
                                            </xsl:variable>
                                            <START_DATE>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,1,4)"/>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,6,2)"/>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,9,2)"/>
                                            </START_DATE>
                                            <START_TIME>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,12,2)"/>
                                                 <xsl:value-of select="substring(SchedulingData/EarlyStartDateTime,15,2)"/>
                                            </START_TIME>
                                            <xsl:variable name="iTotalHours">
                                                 <xsl:value-of select="xs:int(days-from-duration($apptDuration) * 24 + hours-from-duration($apptDuration))"/>
                                            </xsl:variable>
                                            <xsl:variable name="iMinutes">
                                                 <xsl:value-of select="xs:int(minutes-from-duration($apptDuration))"/>
                                            </xsl:variable>
                                            <DURATION>
                                                 <!-- Add leading zeros -->
                                                 <xsl:if test="not ($iTotalHours > 99)">0</xsl:if>
                                                 <xsl:if test="not ($iTotalHours > 9)">0</xsl:if>
                                                 <xsl:value-of select="xs:string($iTotalHours)"/>
                                                 <xsl:if test="not ($iMinutes > 60)">0</xsl:if>
                                                 <xsl:value-of select="xs:string($iMinutes) "/>
                                            </DURATION>
                                       </xsl:if>
                                  </STOP_TW>
                             </UPDATE_STOP_DATA>
                        </UPDATE_STOP>
                   </xsl:when>
              </xsl:choose>
              </SOAP-ENV:Envelope>
         </xsl:template>
    </xsl:stylesheet>

    The code is appended:
    public XMLElement TransformDoc(XMLDocument doc, String xslFile){
         DOMParser           parser;
         XMLDocument      xsldoc;
         URL                xslURL;
         try {
         // Parse xsl and xml documents
         xsldoc = new XMLDocument();
         parser = new DOMParser();
         // Parse the XSL file
         xslURL = createURL(xslFile);
         parser.parse(xslURL);
         xsldoc = parser.getDocument();
         // Instantiate a stylesheet
         XSLProcessor processor = new XSLProcessor();
         processor.setBaseURL(xslURL);
         XSLStylesheet xsl = processor.newXSLStylesheet(xsldoc);
         // Display any warnings that may occur
         processor.showWarnings(true);
         processor.setErrorStream(System.err);
         XMLDocumentFragment result = processor.processXSL(xsl, doc);

  • Variable not defined: '_XDOXSLTCTX'

    Hi,
    This is Rama krishna. I have implemented a prototype for barcode generation service using BI Publisher API. I am using Jdeveloper 11g. I have created a small ADF Fusion application to consume the webservice.
    My application is working fine when I run it in Jdeveloper 11g.
    When I run it after deploying to standalone Weblogic server 10.3, I am getting the following error while generating the XSL. I found that RTFProcessor did not generate xsl:params and xsl:variables.
    020609_111410132http://oracle.apps.xdo.common.xml.XSLTWrapperEXCEPTION XSL error:
    <Line 11, Column 170>: XML-22031: (Error) Variable not defined: '_XDOXSLTCTX'.
    Any idea why RTFProcessor is not generating XSL properly when deployed to Oracle WLS 10.3?
    Thanks in advance.
    Thanks & Regards,
    Rama Krishna. P

    Are you trying to use _XDOCTX?
    Use the following syntax to declare/set a variable value:
    <?xdoxslt:set_variable($_XDOCTX, 'variable name', value)?>
    Use the following syntax to retrieve a variable value:
    <?xdoxslt:get_variable($_XDOCTX, 'variable name')?>

  • Variable not defined: '_MR' error when using sub template

    Hi,
    I am creating a check print report. When I had the check layout and the invoice layout on the same template it worked fine. But when I moved the check layout to a sub template then I started getting the error Variable not defined: '_MR' but I dont have any variable '_MR' can some please help me on this.
    Thanks a ton in advance
    Lakshmanan a.

    Hi Lakshmanan
    Its probably worth running the XML Publisher template regenerator program. somehow, I think your templates are out of sync
    Regards
    Tim
    http://blogs.oracle.com/xmlpublisher

  • Variable not defined

    Hi All,
    we are currently upgrading the addon that created using VB6 from B1 2004A to 2007A. When compiling or make project dll file, there is an error message : "Compile Error : variable not defined"
    then the system shows or highlight
    Private Sub Form_Load()
    CRViewer.Top = 0
    CRViewer.Left = 0
    etc
    How to resolve this problem ? Pls give advice.
    Rgd,
    Steve

    Hi,
    Thx for your answer. yes, you are correct. It is CRViewer91in the properties of the CRViewer form meanwhile in the source code CRViewer.
    Rgd,
    Steve

  • XSQL variable not defined

    Hallo,
    with the new XSQL-Version 9.2.0.4.0 I get this error:
    XSL-1031: (Error) Variable not defined: 'colspan'.
    transforming a XML File like:
    <ingroup >
    <INPUT />
    </ingroup>
    with an XSL-File like:
    <xsl:template match="ingroup">
    <xsl:variable name="colspan">something</xsl:variable>
    <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="INPUT" >
    <xsl:value-of select="$colspan"/>
    </xsl:template>
    In the former versions it happens correct:
    A variable defined in one scope is usable in all templates called in this scope.
    What do You do? And what shall I do?
    Greetings from Roland Minde

    You can't share XSL variable across templates. It likes a local variable.

  • Variable "not defined"?  It's being set and incremented..

    Hello, everyone.
    I've got a real confusing issue.  I have one page that grabs some data from the database, then loops through seven included files in the CFOUTPUT.  One of the seven includes is setting a variable at the top of the page called "confirmed" to zero (0), has its own loop where it increments the value by one under certain conditions, then displays the value after its own loop is done.
    The problem is that I am occasionally getting an error message that says "confirmed" is undefined (it happens 3 out of 5 times.)  How can this be?  Is there any way that anyone can think of that would cause this variable to disappear during processing?
    Thanks,
    ^_^

    I know variables don't disappear on their own.  Something is affecting it, I just don't know what; that's why I'm asking if anyone else knows of something that might cause this.
    It's a short file, I'll include it, here.  I cannot see where "confirmed" is being removed.  It is used only in this page, nowhere else.
    ^_^
    <cfsetting enablecfoutputonly="yes" showdebugoutput="yes" requesttimeout="86400">
    <cfparam name="marketplace_module" default="AMAZON">
    <cfparam name="marketplace_pk" default="">
    <cfquery name="marketplaceParams" datasource="#data_source#">
    <!--- GET DATA ON MARKET --->
    </cfquery>
    <cfwddx action="WDDX2CFML" input="#marketplaceParams.marketplaceData_wddx#" output="marketplaceData">
    <cfset amazon_sellername = marketplaceData.account_sellername>
    <cfset This_Host = Root_Host & "\" & marketplaceParams.clientid>
    <cfset amazon_dir_local = This_Host & "\AMAZON\ref">
    <cfset amazon_file = "ref_#DateFormat(Now(),'mmddyyyy')##TimeFormat(Now(),'HHmm')#.txt">
    <cftry>
    <cfquery name="order" datasource="#data_source#">
    <!--- QUERY TO GET ORDERS --->
    </cfquery>
    <cfset confirmed = 0><!--- IT'S BEING INITIALIZED HERE --->
    <cfif order.RecordCount>
    <cfset content = "order-id order-item-id refund-amount reason message">
    <cffile action="WRITE" file="#amazon_dir_local#\#amazon_file#" output="#content#" addnewline="Yes">
    <cfoutput query="order">
    <cfset refund_amount = DecimalFormat(unit_price+unit_shipping)>
    <cfif unit_status EQ 9>
    <cfset reason = "Inventory No Longer Available">
    <cfelse>
    <cfset reason = "Customer Return">
    </cfif>
    <cfset message = "">
    <cfset content = order_id & CHR(9) & order_item_id & CHR(9) & refund_amount & CHR(9) & reason & CHR(9) & message>
    <cffile action="APPEND" file="#amazon_dir_local#\#amazon_file#" output="#content#" addnewline="Yes">
    <cfquery name="update" datasource="#data_source#">
    <!--- QUERY TO UPDATE DATABASE --->
    </cfquery>
    <cfset notes = "Refund for Line #lineno# submitted to AMAZON.">
    <cf_noteit clientid="1111" action="add" keytype="orderno" key="#orderno#" username="#userData.username#" notes="#notes#" show="0">
    <cfset confirmed = val(confirmed) + 1><!--- BEING INCREMENTED HERE --->
    <cfdump var="#confirmed#" expand="yes" label="confirmed value"><!--- JUST ADDED THIS PART --->
    </cfoutput>
    </cfif>
    <cfcatch>
    <cfoutput>#cfcatch.Message# - #cfcatch.Detail#</cfoutput>
    <cfmail to="[my email address]" from="[server email address]" subject="An error">amazon.ref.exp.cfm has erred#chr(13)##chr(10)##cfcatch.Message# - #cfcatch.Detail#</cfmail>
    </cfcatch>
    </cftry>
    <cfoutput>#val(confirmed)# orderitems refunded.<br/></cfoutput><!--- THIS IS WHERE CF TELLS ME IT'S NOT DEFINED --->
    <cfif val(confirmed) gt 0>
    <cf_logit siteid="123" username="#userData.username#" action="#val(confirmed)# AMAZON Orders refunded.">
    <cffile action="WRITE" file="#amazon_dir_local#\#amazon_file#.flag" output="#amazon_file#" addnewline="No">
    <cfoutput>File #amazon_file# written to #amazon_dir_local#.<br/></cfoutput>
    </cfif>

  • Oracle text & xpath / binding variables in php

    Hello,
    I am using Oracle 10g XE.
    Here is the php code for which I have a problem :
    $stmt=oci_parse($con, "SELECT NRSS FROM XNRSS WHERE CONTAINS(NRSS, '(HASPATH(/nrss/channel/item/identifier[@assetId=:ASSETID]))')>0");
    oci_bind_by_name($stmt, ":ASSETID", $i)) echo "erreur";
    This code does not work and I think the reason is that I don't use correctly the variable :ASSETID inside the xpath '(HASPATH(/nrss/channel/item/identifier[@assetId=:ASSETID]))'
    How should I use the variable ?
    Thanks for your help
    Eve

    HASPATH and INPATH are not part of XML DB. They offer XPATH like search capabilities based on text indexes.
    The XDB way would be
    existsNode(NRSS, '/nrss/channel/item/identifier[@assetId=' || :ASSETID || '])')>0";

  • Variable not defined after running for() loop.

    Hi,
    I have a little problem, I have created a for loop, which seems to work, except that a variable within the for() loop gets lost, because if I try to call the variable after the loop, it says it's not there. anyway, here is my code, followed by the error. Thanks!
    <%
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:testdb");
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    String sql_count = "SELECT COUNT(*) FROM users";
    ResultSet cn = stmt.executeQuery(sql_count);
    cn.first();
    int row_count = cn.getInt(1);
    int num = (int)(Math.random() * (row_count));
    int inum;
    for (inum=0; inum<row_count; inum++)
    int jnum = inum + num;
    if (jnum >= row_count) { jnum = 1; }
    String sql = "SELECT * FROM users WHERE ID = "+jnum+"";
    ResultSet rs = stmt.executeQuery(sql);
    int ce = rs.getInt("cr_earned");
    int cu = rs.getInt("cr_used");
    if ((ce-cu) > 0) { inum = row_count + 1; }
    String sql = "SELECT * FROM users WHERE ID = "+jnum+"";
    ResultSet rs = stmt.executeQuery(sql);
    rs.first();
    String url = rs.getString("url");
    con.close();
    %>
    ***********************ERROR***********************
    Generated servlet error:
    C:\tomcat\jakarta-tomcat-4.0\work\localhost\examples\gtt\surf$jsp.java:93: Undefined variable or class name: rs
    rs.first();
    ^
    An error occurred between lines: 17 and 43 in the jsp file: /gtt/surf.jsp
    Generated servlet error:
    C:\tomcat\jakarta-tomcat-4.0\work\localhost\examples\gtt\surf$jsp.java:94: Undefined variable or class name: rs
    String url = rs.getString("url");
    ^

    now i've defined them all before the loop and I get this error. Error is following modified code below.
    <%
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:testdb");
    Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
    String sql_count = "SELECT COUNT(*) FROM users";
    ResultSet cn = stmt.executeQuery(sql_count);
    cn.first();
    int row_count = cn.getInt(1);
    int num = (int)(Math.random() * (row_count));
    int inum;
    int jnum;
    ResultSet rs;
    for (inum=0; inum<row_count; inum++)
    jnum = inum + num;
    if (jnum >= row_count) { jnum = 1; }
    String sql = "SELECT * FROM users WHERE ID = "+jnum+"";
    rs = stmt.executeQuery(sql);
    int ce = rs.getInt("cr_earned");
    int cu = rs.getInt("cr_used");
    if ((ce-cu) > 0) { inum = row_count + 1; }
    rs.first();
    String url = rs.getString("url");
    con.close();
    %>
    ***********ERROR***************
    An error occurred between lines: 17 and 45 in the jsp file: /gtt/surf.jsp
    Generated servlet error:
    C:\tomcat\jakarta-tomcat-4.0\work\localhost\examples\gtt\surf$jsp.java:95: Variable rs may not have been initialized.
    rs.first();
    ^
    Thanks anyone.... ;-)

  • Entering a matrix in a fomula knot results in "variable not defined" error

    if i enter a matrix in a formula code, the program keeps telling me i have a undefined variable.
    usually, matlab does work with code like "M=[123 456];" just fine.
    the manual states, that in a formula knot code just works like it works in matlab.
    what's my mistake?

    to use a matrix inside a formula node, you must declare a 2-dimensional array of the type you want to use. for example:
    int32 y[2][2];
    to assign values to the fields you can index them:
    y[0][1] = 1;
    you also could use a loop to put the values or pass a allready initialised array into the formula node.
    Maybe these links also give you some hints:
    problem regarding the formula node
    array formula node
    regards,
    Robert H.
    National Instruments

  • Bind variable is not defined

    Hi, it is my first attempt to modify a rdf file.
    I run into a problem while trying to add an additional user parameter in an existing rdf file. While I am successful in adding a new FREQUENCY user parameter and I am able to update the form to show this new parameter, I am not able to run the report.
    I have updated the SQL query in the report editor, under data view to use this new parameter :FREQUENCY. (select ... from table where frequency= :FREQUENCY) There was no error here.
    Whenever I run the report, I will always get an error saying:
              "REP-0730: The following bind variable is not defined: "(nothing behind this                                                             error message)
    The program will have a memory error and it exits itself.
    I had tried many methods trying to solve this problem to no avail.
    I am using Oracle 9i Reports Builder 9.0.2.0.3.
    I would appreciate any help given on this matter.
    Thank you :)
    Message was edited by:
    Leion

    In Object Navigator Under Layout ->User parameters are you able to see your bind variable FREQUENCY?

  • XML element "userComments" of variable "UserComments" is not defined error while deploying AccountDistribution composite to soa server

    Hi,
    We did deploying AccountDistribution composite to soa server hosted in our test environment but We could not succeed as the following error was thrown on compilation itself in Jdeveloper.
    <snip>
         Error(124): XML element "{http://xmlns.oracle.com/InvoiceSynchronization/AccountDistribution/AccountDistribution}userComments" of variable "UserComments" is not defined
    <snip>
    We have had 4 variables defined with element attribute in our AccountDistribution bpel
    <variable name="UserComments" element="client:userComments"/>
    and for every variable we are coming up with this error on composite deployment.
    We have tried multiple workarounds like deleting SCA-INF of AccountDistribution that is auto generated by Jdeveloper etc but but no luck, we are still coming up with same error.
    We back traced for the element's definition i.e userComments definition and we could find the definition in xsd stored in MDS as per configuration.
    Please provide your advise on how to proceed further on this issue.
    Thanks,
    Satheesh

    Hi Nicolas,
    adf-config.xml is for all the composites present in the project, but we are getting this error in only 1 composite, our other composites are working fine without any error.
    We tried creating a new variable with type element and getting same error.
    Thanks
    Satheesh

  • Environment variable ORACLE_SID not defined.

    I tried the command below
    emctl -config dbcontrol db -repos drop
    but I see this error message
    Environmet variable ORACLE_SID not defined. Please define it.
    Notice that Oracle is installed on Windows , just for studying.
    Can anyone help me here please?

    user11083827 wrote:
    I tried the command below
    emctl -config dbcontrol db -repos drop
    but I see this error message
    Environmet variable ORACLE_SID not defined. Please define it.
    Notice that Oracle is installed on Windows , just for studying.
    Can anyone help me here please?And what do you not understand about "+Environment variable ORACLE_SID not defined. Please define it.+"?
    Why don't (or can't) you define this variable?
    :p

  • Flash CS3: AS3 - ReferenceError #1065 Variable is not defined

    I have developed several actionscript classes. Two of these
    classes are associated with MovieClip objects in the library. The
    MovieClips have their Linkage Base Classes set to their respective
    package and class locations and when I check the Linkage settings
    (using the check mark icon) Flash CS3 reports that it can find the
    associated classes for both MovieClips.
    When I check the syntax of my code there are no problems, and
    when I test the Flash movie no Compile Errors are shown. Yet, in
    the output window I get the following error:
    ReferenceError: Error #1065: Variable class1 is not defined.
    ReferenceError: Error #1065: Variable class2 is not defined.
    I have placed class1 and class2 in the above error messages
    to represent the classes that are associated with the MovieClip.
    Am I missing an import command somewhere? I have the base
    class path properly set in the preferences of Flash CS3.
    Thanks,

    It appears that this issue was due to some of my classes not
    being marked as public. I had been following examples from AS2 that
    had the classes marked as dynamic without a private or public
    identifier. Apparently, AS3 assumes all unmarked classes are
    private.

Maybe you are looking for

  • 3 front panels on 3 different monitors

    Hey all I was browsing the web and the developers forum but nothing seemed to help me with this problem. I have three front panels I need to run. I have a control room .vi (which is still in the works) a fire tech subVI and a viewing room subVI. I ne

  • Getting Error 'Invalid export DLL or export format'

    Hi, we are getting the above error when exporting to Excel from Crystal Reports. Although the export is via one of our products, the process of exporting the report is controlled by the Crystal Report viewer which we have no control over. Basic syste

  • Email deletions from iphone

    Any word on the update for iphone that will enable me to delete mail in mass or by selecting multiple emails to delete. One at a time is very time consuming.

  • There is a blank line below URL tool bar and the bookmark tool bar

    Under View->Toolbars, Navigation & Bookmarks are checked. On my screen I have Navigation (aka URL) toolbar, a blank line, and then the bookmarks toolbar. How do I get rid of the blank line? It is still there is I uncheck Nav & Bookmark toolbars.

  • WRT54G V7 Hangs on Adminstration Save Settings

    Configured WRT54G connecting to ADSL modem. 1. All works fine, except, wanted to change password for admin and each time I tried and pressed save settings the device "hangs" (cannot get back to any config page) and has to be reset via the rest button