How to get input source line number
I wrote a XSLT transformation that checks the input XML for errors.
When the transformer finds a problem, it can terminate with <xsl:message terminate="yes">, which outputs the line number within the transformer XML source. I do so in my implementation to indicate errors.
But i need to output the line number of the input source, not that of the transformer source, because this is the location of the error.
Anybody knows how to do this?
How can i get the current line number of the input source XML text?
Hello Fritz!
XALAN reads the entire input file (SAX) before starting with transformation.
So overriding the input stream is no way to find this line number.
I think this would have to be a built-in XSLT functionality within the tag "xsl:message".
Similar Messages
-
Getting Current Source Line Number
I am pulling my already sparse hair out trying to perform the most remedial of tasks: I am trying to trace my code execution to debug it and to log error messages, which is done in C with something like the ubiquitous
'printf ("%s:%d\n", __FILE__, __LINE__);'
I can't for the life of me find anything like __FILE__ and __LINE__ in Java.
How do I determine the current source line number??? I could live without the __FILE__ part if I had to, but the line number is imperative. Where do I get it?
Thanks,
Bill Rebey"debug" still being a hard work in Java... the oldest Java nightmare :^)))
you may avoid this problem using labels in your code (the problem you must fill your code with debug stuff - if the code is a big one, you will get crazy about that :^) )
or you may adopt a tool able to trace your code execution....
JBuilder do it for you...
Togheter is another good software available out there
(unfortunatelly, both of them are really expensive...)
I don�t remember now about other tools.. (the java has a flag to produce debug output - check in the forum about the debug syntax....) -
How to get PL/SQL line number ?
Hello, All !
I have an Error pointing to Line number - "ORA-06512: at "..._PKG", line 295
How do I find out in physical code exactly where this line is ? I used SQL Navigator (it has line count) but It didn't match ! (Function names different in Error message and in Script Editor window and it pointed to a blank line). Does line count start from Package Spec or Body ?
Please Help,
Thanx !The line number is relative to the first line of the body. The most definitive way to identify the exact line would be to use USER_SOURCE ...
SELECT TEXT
FROM USER_SOURCE
WHERE NAME = ...
AND LINE = 295
Richard -
How can we get the selected line number from JTextArea ?
how can we get the selected line number from JTextArea ? and want to insert line/string given line number into JTextArea??? is it possible ?
Praitheesh wrote:
how can we get the selected line number from JTextArea ?
textArea.getLineOfOffset(textArea.getCaretPosition());
and want to insert line/string given line number into JTextArea??? is it possible ?
int lineToInsertAt = 5; // Whatever you want.
int offs = textArea.getLineStartOffset(lineToInsertAt);
textArea.insert("Text to insert", offs); -
How to get the source of a strange posted pic into my camera roll?
I got a strange pic put into my camera roll, this pic is most likely put by an app which has an access to my photo gallery, all I want to know is how to get the source which put this image into my camera roll, I have a punch of apps that have a photo access grant and really don't know to disable all of these apps because of only one of them.
p.s: the apps with photo access in my device (ProCam, CameraArtFXFree, Photo Editior-, Instagram, Poster++, Photo Vault, Facebook, Tango, Viber, Y! Messenger, Ipadio, Line, WhatsApp) And the only opened apps when this photo pushed to my Camera Roll were (Viber, Tango, Line, Whatsapp).
Thanks in advance.>
Nitesh Kumar wrote:
> Hi,
>
> FM to get the program source code: RPY_PROGRAM_READ
>
> By using this FM you can get the program name(say report_name) and then you can use
>
> READ REPORT report_name INTO itab
>
> Thanks
> Nitesh
u dont need the last statement the FM itself returns an itab with code in it. -
Source line number in exception trace
Excuse me if the question is silly.
When I print the stack trace after an exception has occured, how is it able to display the exact source line number 'cos the source file may or may not be accessible to the jvm. Obviously they don't keep source line-wise info in the class file,right?won't class files be large just because of the debug data?
laurivasko@linux:~/java> javac HelloWorld.java
laurivasko@linux:~/java> ls -la HelloWorld.class
-rw-r--r-- 1 laurivasko users 426 2004-06-26 20:07 HelloWorld.class
laurivasko@linux:~/java> javac -g:none HelloWorld.java
laurivasko@linux:~/java> ls -la HelloWorld.class
-rw-r--r-- 1 laurivasko users 341 2004-06-26 20:07 HelloWorld.classas you see, first case has file size of 426 bytes, and other one has wile size of 341 bytes, and that all with 5 line HelloWorld commandline application.
// hopefully that answers your question. -
STRANGER GETS MY LAND LINE NUMBER FROM MY IPHONE CALL
Using my iPhone, I called a stranger in error. He answered, whereby I realized my mistake. Instead of being courteous, as I should have been, and saying, "Sorry, wrong number," I simply hung up. This apparently upset him, because he subsequently called my land line and left a threatening message, telling me never to call again. So, hmmm, how did he get my land line number? I'm guessing because it showed up, on his end, when I initially called him with my iPhone. It was associated with or attached to my iPhone number. I know that when a certain relative calls me, more than one of her numbers shows up on my call-back notification.
What do I do to prevent this? I must be able to control and limit the information about me that people I call can get.There's absolutely no way your land line # was transmitted as CID when calling from your iPhone. If this person found out your land line #, he looked it up based on the name and/or cell # of your iPhone.
The only way he could have your land line show when you called his cell phone is if he already has your full contact info in his phone, including your land line - i.e. you are already known to him.
To avoid this in the future:
1. Disable caller id: Settings > Phone > Show My Caller ID > OFF
2. If you don't want to do that, have your carrier transmit only your cell # without your name. Your name can still be researched, but usually require payment
3. Get an unlisted land line phone.
4. Research all the things that can be done with a baseball bat. -
I imported different trips to different catalogs on different external hard drives. Later renamed external HDs. I want to combine catalogs and have my source (NEF) files all together on one drive. I’m not really sure how to get those source files back and get rid of the extra long path to where the source files are now located. If I re-link files to their current catalog (many different paths to files in same catalog) can I merge (import catalogs) into one master catalog? Will the new (Master catalog) have the correct link to the source file? If not, how or can this be done?
I have tried to explain my situation as clearly as I can. Do you understand my situation?
This maybe something you don’t have time to help me with. If not can you suggest somewhere I can get an answer? I really need help. PLEEEZZZ HELP ME.
Bruce Schuerman
Norman, OK
405_514-4875 (call collect)
[email protected]Is there any solution (other than buying
I really think 'buying' is the best solution on this one. Ideally, you would have at least five internal hard drives.
System
Projects
Cache/Scratch
Media
Exports
Use externals and network drive only for backup. -
How to get the current month number
Hi everyone,
Does anybody know how to get the current month number in Oracle Discoverer Worksheet calculation?
I try to use EUL_DATE_TRUNC(CURRENT_DATE, 'MM'), but instead I got 01-AUG-00.
If I change the data display format to MM, it will give me "08" but if I use TO_NUMBER function to convert it to number I get error "invalid number"
Is there anyway to get the current month value in number? ThanksScott,
Thank you so much! It works perfectly! :)
Hope you have a great day ahead!
Cheers,
Angeline -
How to get the source code of Java Concurrent Program?
Hi,
How to get the source code of Java Concurrent Program?
Example
Programe Name:Format Payment Instructions
Executable:Format Payment Instructions
Execution File Name:FDExtractAndFormatting
Execution File Path:oracle.apps.iby.scheduler
Thanks in advance,
SenthilGo on Unix box at $JAVA_TOP/oracle/apps/iby/scheduler
You will get class file FDExtractAndFormatting.
Decompile it to get source code.
Thanks, Avaneesh -
How to get the source code of a PRT application in the portal
Hi!
Does anybody know how to get the source code of a PRT application in the portal?
Thanks in advance,
CelsoCelso,
If its Java-based code have a look at the properties of an iView that belongs to the application in question and copy the value of the Code Link parameter e.g. 'com.sap.pct.hcm.rc_vacancyrequestov.default'.
Search the Portal installation directory under /j233/cluster/server/ for a .par.bak file of the same name, removing .default from the codelink parameter
e.g. com.sap.pct.hcm.rc_vacancyrequestov.par.bak
Copt this locally and import into Netweaver Developer Studio. You will have to decompilte the class files with a decompiler such as DJ Decompiler or Cavaj (search with Google).
Cheers,
Steve -
How to get the source code of an HTML page in Text file Through J2EE
How to get the source code of an HTML page in Text file Through J2EE?
Huh? If you want something like your browser's "view source" command, simply use a URLConnection and read in the data from the URL in question. If the HTML page is instead locally on your machine, use a FileInputStream. There's no magic invovled either way.
- Saish -
How to get the source code of an HTML page in Text file Through java?
How to get the source code of an HTML page in Text file Through java?
I am coding an application.one module of that application is given below:
The first part of the application is to connect our application to the existing HTML form.
This module would make a connection with the HTML page. The HTML page contains the coding for the Form with various elements. The form may be a simple form with one or two fields or a complex one like the form for registering for a new Bank Account or new email account.
The module will first connect through the HTML page and will fetch the HTML code into a Text File so that the code can be further processed.
Could any body provide coding hint for thatYou're welcome. How about awarding them duke stars?
edit: cheers! -
Where to find the pcui_gp components ,How to get the source code of those
Hi All,
Can anybody tell the exact location wher the pcui_gp components will be stored if they are not appearing.
And another question is how to get the source code of the pcui_gp for customization.
anybody working on these compoents please help me.
answers will be rewarded.
thanks and regards,
anandHi Arun,
I am unable to see the pcui_gp components in the DTR ,I require this in order to get the source code of one of its component.
Can you please tell me the step by step procedure getting those pcui_gp components from J2ee engine to the dtr or NWDI.
If there are any documents on pcui_gp components exclusively please do forward to my mail id [email protected]
Thansk and Regards,
Anand. -
How to get the unoccupied material number in a number range
How to get the unoccupied material number in a number range.for example, I wang to get a number between 1500000 and 1599990 which is unoccupied as my material number to be created. Is ther any FM or codes?
Dear,
You can get this information from Tcode SNUM or you can access database table NRIV.
Maybe you are looking for
-
Cannot assign value to a Variable of Complex Type beyond index 1
Hello: I have a variable defined as a complex type as followed. I tried to assign a value to each of the two elements but it only allows me to assign to the 'element#1. This statement that tries to assign a value into element#2 will not work, if I as
-
Hi All, I would like to know is there anyway the output message be created once i create a sales order? At the moment i have to manually enter the Output message type & only then print. Hope my question is clear. Vivek
-
Error message -50 while trying to import music -
I have the error message -50 coming up when I am trying to import files from C drive. You have the question: iTunes displays a -69 error when syncing iPod but not anything to do with -50 error message. Are you able to help me out. This only happened
-
I have just downloaded itunes. I cannot install QT as an older version is in place. Cannot remove the older version using CP. Any ideas?
-
Can I transfer photos and music from my iPad onto my dell computer?