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.
Similar Messages
-
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. PAre 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'.
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 -
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 -
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,
SteveHi,
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 -
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.
-
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> -
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 -
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:
LeionIn Object Navigator Under Layout ->User parameters are you able to see your bind variable FREQUENCY?
-
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. -
Hi
I seem to get thisexception fired when launching my flex project from debug optoon.
ReferenceError: Error #1065: Variable flash.media::VideoCodec is not defined.
I have created a version of flex 4.5.1 with folder 11.0 in player folder. This has the latest flash player global swc renamed as playerglobal.swc. All is well when compiling, but when running i seem to that exception.
Also my compiler settinsg are set to 11.0.1
What is going wrong ??Hi,
SoundCodec class is defined in Player 10. Are you using the
player 10 afcs swc ? If so, you need to change Require Flash Player
Version unser Project->Properties->Flex Compiler in Flex
Builder and put that to 10.0.0 and also make sure that your browser
has player 10 and you Flex SDK also supports player 10.
And if you are using afcs 9 swc , then put 9.0.124 or
something in the Require Flash Player Version and that should fix
the problem
Thanks
Hironmay Basu -
ReferenceError: Error #1065: Variable is not defined.
Hi people.
Whatever I do (seems like) I end up with the following
message in Flash CS3:
"ReferenceError: Error #1065: Variable is not defined."
I have no clue to what causes it, and therefor I cannot seem
to fix it. I've been trying to look for answers online, but all I
got out of that was to declare my classes as public, which I
already had done.
Even a very simple class that runs a trace command from its'
constructor method won't work. It even gives me this message even
though I don't have any variables or trace commands or anything.
This is really annoying, so please help me out :)
ASome code sample would help - and remember classes must be
contained within
packages in CS3.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Profiling Error (Variable ContextMenuClipboardItems is not defined) on Flash Player 10
Hi Team
When i start the profiler i get the below error
1.I am using FB 3.
and flash player 10.
Any pointers are highly appreciated.
ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not
defined.
at flash.ui::ContextMenu/initLinkAndClipboardProperties()
at flash.ui::ContextMenu()
at
mx.core::Application/initContextMenu()[C:\autobuild\3.2.0\frameworks\pro\
jects\framework\src\mx\core\Application.as:1154]
at
mx.core::Application/initialize()[C:\autobuild\3.2.0\frameworks\projects\
\framework\src\mx\core\Application.as:844]
at
grip/initialize()[D:\eclipse\grip-app-client\grip\src\grip.mxml:0]
at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::c\
hildAdded()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\mana\
gers\SystemManager.as:2009]
at
mx.managers::SystemManager/initializeTopLevelWindow()[C:\autobuild\3.2.0\
\frameworks\projects\framework\src\mx\managers\SystemManager.as:3234]
at
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::d\
ocFrameHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\
\managers\SystemManager.as:3064]
at
mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.2.0\framewo\
rks\projects\framework\src\mx\managers\SystemManager.as:2916]
Thanks
ilikeflexYou have to use FB4 to profile on FP10
Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui -
Variable png is not defined.
Hi,
I am migrating project from AS2. I have removed most of the
compiler and run time errors, but I have no clue about this error.
I can't track it.
ReferenceError: Error #1065: Variable png is not defined.
Any ideas what might be causing it?
Any replies would be greatly apriciated. ThanxI'm with kglad, there must be something somewhere. Are you
loading any images dynamically that would need a .png file
extension? How many different scripts do you have? Is it one long
one or is it spread out over a few classes? Did you create the
original code or are you modifying someone elses?
- B
Maybe you are looking for
-
Apple store returns my MBP17 with a new logicboard but broken dvd & battery
i posted here before http://discussions.apple.com/thread.jspa?threadID=2383997&tstart=0 this is regards to MBP17 2006 NVDIA defected card return policy as prior thread title states, the computer fell under the coverage once the video card died, apple
-
Purchase order "Invoice Receiptu201D and u201CGR based IVu201D
Hi, Please let me know how to diable the "Invoice Receiptu201D and u201CGR based IVu201D checkbox editablity in Purchase orders
-
When in design view and choose media--flash button or flash text, i fill out the dialog box and save file but all I see when I hit apply and OK is a gray box with handles and a f in it. Then in browser check it does not show at all? My computer does
-
Updated to IOS 5 and my apps are gone and I cant manually put them back on
i updated my 4th gen iPod touch to IOS 5 and it wiped most of the apps from my ipod. On itunes it shows that they are they but they won't show on my ipod. I tried to manually add them back on with the app store and it says that it is already instal
-
I had to reinstall my windows 7 operating system. In so doing I lost all my programs. When I re-installed adobe photoshop elements 7, I cannot open the editor, which is where I have fixed all my photos. Please help! I am totally lost without thi