Page 1 of 1
Error location is not displayed
Posted: Fri Jun 11, 2004 11:27 am
by aur
hello,
Great surprise today with the release 4.1.
But I already can announce a little bug.
The location of an error is not displayed. It's a little bit annoying when I debug.
Also, I notice the fonctionnality Xwatch don't seem functional in the version 4.0 and now 4.1. I work on windows plateform and I have the J2re1.4.2_04.
regards,
Aurélien Van Hamme
Posted: Fri Jun 11, 2004 2:26 pm
by stefan
Usually, the error location is shown. It will be helpfull if you can send a document sample at
support@oxygenxml.com for a detailed look.
Xwatch evaluates XPath expressions during debugging. What XPath expressions did you try ?
Posted: Fri Jun 11, 2004 2:53 pm
by aur
Well for the XWatch(XPath):
I transform a xml docbook with the docbook stylesheet. And when I debug step by step, I don't see anything in the Xwatch during all the transformation.
For the error location, I just do another test with the basic stylesheet:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:variable name="topic">Hello world
</xsl:template>
</xsl:stylesheet>
When the debugger parse this file, it find a error because it doesn't found the end-tag for the variable.
With the version 4.0, it shows the error location at line 6.3 but with the version 4.1, the error location is empty.
Aur
Posted: Fri Jun 11, 2004 3:10 pm
by aur
Other example:
Same case, if I use this stylesheet:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:variable name="topic">Hello world</xsl:variable>
<xsl:value-of select="$topice"/>
</xsl:template>
</xsl:stylesheet>
The error description is :
F The element type "xsl:variable" must be terminated by the matching end-tag "</xsl:variable>".
but no error location.
I notice also a strange behavior. For the moment, all test I made was with the Saxon 5.5.3 parser. I made one test with the Xalan Java 2.5.1 and here he shows me the error location for the end-tag error (described in my previous post) but no error location for the $topice error (described in this post).
regards,
Aur
Posted: Mon Jun 14, 2004 6:32 pm
by stefan
The Results Panel/ Location shows details only if both line and column information is provided by the parser. If only line info is known for that error, the Location field is empty.
This happens usually with Saxon parser, but you can still click on the error in order to get that line highlighted into editor.
I agree that a better choice will be to show something like "line:-1".
Posted: Tue Jun 15, 2004 10:38 am
by aur
hello, thanks for the answer.
So, is it a change realised for the new release (4.1)? If yes, I find it less practical.
In the previous version, the debugger shows all my error locations. This locations had the form 21:1, 45:1, 68:1.
Henceforth, I will click on the error.
Any idea for the Xwatch problem?
Posted: Wed Jun 16, 2004 6:04 pm
by stefan
I did a test with the following:
source: <oxygen_install_dir>\samples\docbook\sample.xml
style: <oxygen_install_dir>\docbook\xsl\html\docbook.xsl
where in my case <oxygen_install_dir> is C:\Program Files\Oxygen4.1
I set the following XWatch expression:
name() - name of the source node.
Usually during a Docbook debugging the source content is not changing at every step (it could take some number of steps to see the source context changed) but when this happen you can see the name() changing.
How did you test the XWatch functionality ?
Posted: Thu Jun 17, 2004 10:51 am
by aur
hello,
well, I'm stupid.
I didn't understand the Xwatch functionality.

Now, this functionnality works very well.
thanks,
