Page 1 of 1
Feature
Posted: Tue Sep 26, 2006 3:02 pm
by vaisberga
hi,
i work with OxygenXML in the Eclipse

. There are two things. First autocomplition for XLT Template. Which that means: Thus, I have work.xsl. In work I have<xsl:include href="/util/template-util.xsl"/>. /util/template-util.xsl" has util-templats and for those would like I autocomplition in work.xsl to make. Therefore it would be not badly, there to
implementing.
Second the Error view. If I have error in included Template, than show in Problem that it has any Error in root xsl (index.xsl). sample:
/administration index.xsl line 114.
It say, that it error on the index.xsl, but error in other xsl. It's must:
/administration child.xsl line 114.
Re: Feature
Posted: Tue Sep 26, 2006 4:18 pm
by sorin_ristache
Hello,
vaisberga wrote:First autocomplition for XLT Template.
We already plan that for a future version.
vaisberga wrote:Second the Error view. If I have error in included Template, than show in Problem that it has any Error in root xsl (index.xsl). sample:
/administration index.xsl line 114.
It say, that it error on the index.xsl, but error in other xsl. It's must:
/administration child.xsl line 114.
I cannot reproduce that. Can you post 2 sample files with this problem ?
Regards,
Sorin
Posted: Wed Sep 27, 2006 1:03 pm
by vaisberga
The first sample:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="template-util.xls"/>
<xsl:template name="test">
<xsl:call-template name="util-test"/>
</xsl:template>
</xsl:stylesheet>
Validations Error is:
Severity and Description Path Resource Location Creation Time Id
java.util.EmptyStackException proficio/proficio-stores index.xsl line 1 1159350739910 1072880
I have a template-util.xls writet, but must xsl.The Error say nothing.
The second sample:
I have two file:
1.(index.xsl)<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="template-util.xsl"/>
<xsl:template name="test">
<xsl:call-template name="util-test"/>
</xsl:template>
</xsl:stylesheet>
2.(template-util.xsl)<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template name="util-test">
<!--<xsl:param name="bla" select="bla"/>-->
<xsl:choose>
<xsl:when test="$bla">
<xsl:value-of select="'Test"/>
<!--<xsl:value-of select="'Test'"/> -->
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'Test"/>
<!--<xsl:value-of select="'Test'"/> -->
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
I have Error in second file, but error message been:
Severity and Description Path Resource Location Creation Time Id
Falsche Anführungszeichen für Literal... Einfache Anführungszeichen wurden erwartet! proficio/proficio-stores index.xsl (but must template-util) line 7 1159350957168 1072885
Musterliteral ('Test) muss in Anführungszeichen angegeben werden! proficio/proficio-stores index.xsl (but must template-util) line 7 1159350957169 1072886
org.apache.xml.utils.WrappedRuntimeException: Die Variable mit dem Namen bla konnte nicht gefunden werden proficio/proficio-stores index.xsl (but must template-util) line 1 1159350957172 1072888
Zusätzliche nicht zulässige Token: ''Test' proficio/proficio-stores index.xsl (but must template-util) line 7 1159350957171 1072887
Alexander Vaysberg
ADaptins GmbH
Posted: Wed Sep 27, 2006 2:32 pm
by sorin_ristache
Hello,
vaisberga wrote:The first sample:
...
Validations Error is:
Severity and Description Path Resource Location Creation Time Id
java.util.EmptyStackException proficio/proficio-stores index.xsl line 1 1159350739910 1072880
Are you sure you opened the file with the Oxygen XSL Editor ? What is the view that displays this error message containing creation time (1159350739910) and id ? The oXygen plugin does not do that.
vaisberga wrote:I have a template-util.xls writet, but must xsl.The Error say nothing.
If file template-util.xls does not exist the oXygen plugin reports an error:
Failed to compile stylesheet. 1 error detected and a warning:
Failure reading template-util.xls in the
Errors - index.xsl view.
vaisberga wrote:The second sample:
I have two file:
...
I have Error in second file, but error message been:
Severity and Description Path Resource Location Creation Time Id
Falsche Anführungszeichen für Literal... Einfache Anführungszeichen wurden erwartet! proficio/proficio-stores index.xsl (but must template-util) line 7 1159350957168 1072885
I opened index.xsl with the oXygen plugin and I get the validation errors
Variable bla has not been declared and
Unmatched quote in expression 'Test with correct system ID (template-util.xsl). Are you sure you opened the XSL files with the oXygen plugin ?
Regards,
Sorin
Posted: Wed Sep 27, 2006 3:40 pm
by vaisberga
I have a Eclipse 3.2 and OxygenXML Plugin. This message I copy from Problems-View . If you selected the error in Problems -View of the Eclipse, then copy this error in other editor you must this see with id and other eleements. And I uses oXygen plugin (7.2).
Alex.
Posted: Wed Sep 27, 2006 3:55 pm
by vaisberga
[quote="vaisberga"]I have a Eclipse 3.2 and OxygenXML Plugin. This message I copy from Problems-View . If you selected the error in Problems -View of the Eclipse, then copy this error in other editor you must this see with id and other eleements. And I uses oXygen plugin (7.2). I can the screen for this send.
Alex.
Posted: Wed Sep 27, 2006 3:56 pm
by vaisberga
vaisberga wrote:vaisberga wrote:I have a Eclipse 3.2 and OxygenXML Plugin. This message I copy from Problems-View . If you selected the error in Problems -View of the Eclipse, then copy this error in other editor you must this see with id and other eleements. And I uses oXygen plugin (7.2). I can the screen for this send. Say youer e-mail and send this.
Alex.
Posted: Wed Sep 27, 2006 4:25 pm
by sorin_ristache
Yes, if the XSLT files are in the current workspace the errors are reported in the Problems view and they have the format which you posted. The problem is that for the XSL files which you posted I do not get java.util.EmptyStackException and org.apache.xml.utils.WrappedRuntimeException. Did you post all the included stylesheets ? Did you open the file with the errors with the Oxygen XSL Editor ? Do you see the icon

in the editor title ?
Regards,
Sorin
Posted: Wed Sep 27, 2006 4:39 pm
by vaisberga
sorin wrote:Yes, if the XSLT files are in the current workspace the errors are reported in the Problems view and they have the format which you posted. The problem is that for the XSL files which you posted I do not get java.util.EmptyStackException and org.apache.xml.utils.WrappedRuntimeException. Did you post all the included stylesheets ? Did you open the file with the errors with the Oxygen XSL Editor ? Do you see the icon

in the editor title ?
Regards,
Sorin
Yes it ist Oxygen XSL Editor. I have a icon img]
http://www.oxygenxml.com/update/XSLICON16.gif[/img] . I have a Images for Eclipse maked and can this with e-mail send.
Alexander Vaysberg
Adaptions GmbH
Posted: Wed Sep 27, 2006 4:56 pm
by sorin_ristache
Run the following stylesheet with the oXygen plugin and tell us the output:
Code: Select all
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan" xmlns:exslt="http://exslt.org/common"
exclude-result-prefixes="xalan exslt">
<xsl:template match="/">
<out>
Version: <xsl:value-of select="system-property('xsl:version')" />
Engine: <xsl:value-of select="exslt:node-set(xalan:checkEnvironment())//item[@key='version.xalan2x']"/>
Java version: <xsl:value-of select="exslt:node-set(xalan:checkEnvironment())//item[@key='java.version']"/>
</out>
</xsl:template>
</xsl:stylesheet>
Regards,
Sorin
Posted: Wed Sep 27, 2006 5:04 pm
by vaisberga
sorin wrote:Run the following stylesheet with the oXygen plugin and tell us the output:
Code: Select all
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan" xmlns:exslt="http://exslt.org/common"
exclude-result-prefixes="xalan exslt">
<xsl:template match="/">
<out>
Version: <xsl:value-of select="system-property('xsl:version')" />
Engine: <xsl:value-of select="exslt:node-set(xalan:checkEnvironment())//item[@key='version.xalan2x']"/>
Java version: <xsl:value-of select="exslt:node-set(xalan:checkEnvironment())//item[@key='java.version']"/>
</out>
</xsl:template>
</xsl:stylesheet>
Regards,
Sorin
I have it run an have a follow output:
<?xml version="1.0" encoding="UTF-8"?>
<out>
Version: 1.0
Engine: Xalan Java 2.7.0
</out>
Regards,
Alexander Vaysberg
Adaptions GmbH
Posted: Wed Sep 27, 2006 5:06 pm
by vaisberga
vaisberga wrote:sorin wrote:Run the following stylesheet with the oXygen plugin and tell us the output:
Code: Select all
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan" xmlns:exslt="http://exslt.org/common"
exclude-result-prefixes="xalan exslt">
<xsl:template match="/">
<out>
Version: <xsl:value-of select="system-property('xsl:version')" />
Engine: <xsl:value-of select="exslt:node-set(xalan:checkEnvironment())//item[@key='version.xalan2x']"/>
Java version: <xsl:value-of select="exslt:node-set(xalan:checkEnvironment())//item[@key='java.version']"/>
</out>
</xsl:template>
</xsl:stylesheet>
Regards,
Sorin
I have it run an have a follow output:
<?xml version="1.0" encoding="UTF-8"?>
<out>
Version: 1.0
Engine: Xalan Java 2.7.0
Java version: 1.5.0_07
</out>
Regards,
Alexander Vaysberg
Adaptions GmbH
Posted: Wed Sep 27, 2006 5:13 pm
by sorin_ristache
What validation errors do you get with Saxon instead of Xalan for your stylesheets ? Did you post all the included files for the stylesheet which you validate ? Can you
send us the files ?
Regards,
Sorin
Posted: Wed Sep 27, 2006 6:09 pm
by vaisberga
sorin wrote:What validation errors do you get with Saxon instead of Xalan for your stylesheets ? Did you post all the included files for the stylesheet which you validate ? Can you
send us the files ?
Regards,
Sorin
With Saxon have i two part. The first is the errors and second is a warnings. It's better. I wreited in email about writing and errors.
Regards,
Alexander Vaysberg
Adaptions GmbH
Posted: Thu Sep 28, 2006 9:37 am
by sorin_ristache
Hello,
The error messages are:
- Variable bla has not been declared
- Unmatched quote in expression 'Test
You can fix the errors by declaring the variable bla before using it in template-util.xsl and by closing the quote in the element
which should be:
Regards,
Sorin
Posted: Thu Sep 28, 2006 1:09 pm
by vaisberga
sorin wrote:Hello,
The error messages are:
- Variable bla has not been declared
- Unmatched quote in expression 'Test
You can fix the errors by declaring the variable bla before using it in template-util.xsl and by closing the quote in the element
which should be:
Regards,
Sorin
Yes, it's right, I know this errors, but with this sample I would like say, that show the errors in Problems-View (with Xalan) is no so gut. It's difficult the place of the error to find, if work with more as 5 xsl. That wish improve.
Regards,
Alexander Vaysberg
ADaptions GmbH.
Posted: Thu Sep 28, 2006 4:10 pm
by sorin_ristache
Hello,
I cannot reproduce the errors with your version of Xalan (2.7.0) and your version of Java (1.5.0_07). Go to Help -> About Eclipse -> Configuration Details, copy all and post here all the content.
Regards,
Sorin
Posted: Fri Sep 29, 2006 11:53 am
by vaisberga
sorin wrote:Hello,
I cannot reproduce the errors with your version of Xalan (2.7.0) and your version of Java (1.5.0_07). Go to Help -> About Eclipse -> Configuration Details, copy all and post here all the content.
Regards,
Sorin
It's too big, I have it send on the
support@oxygenxml.com email for Sorin.
Alexander Vaysberg
ADaptions GmbH
Posted: Fri Sep 29, 2006 12:41 pm
by sorin_ristache
Thank you for the configuration details. I think the Xalan error messages are localized in German because your user.language is 'de'. What is the English version of the error messages ? Are they the same stylesheet errors as the ones reported by Saxon ? If you switch to user.language 'en' do you get English error messages ?
Regards,
Sorin
Posted: Wed Oct 04, 2006 11:25 am
by vaisberga
sorin wrote:Thank you for the configuration details. I think the Xalan error messages are localized in German because your user.language is 'de'. What is the English version of the error messages ? Are they the same stylesheet errors as the ones reported by Saxon ? If you switch to user.language 'en' do you get English error messages ?
Regards,
Sorin
I have a locale from de_D to en_GB changed, but view it's same with description for english language.
Alexander Vaysberg
ADaptions GmbH
Posted: Wed Oct 04, 2006 11:25 am
by vaisberga
vaisberga wrote:sorin wrote:Thank you for the configuration details. I think the Xalan error messages are localized in German because your user.language is 'de'. What is the English version of the error messages ? Are they the same stylesheet errors as the ones reported by Saxon ? If you switch to user.language 'en' do you get English error messages ?
Regards,
Sorin
I have a locale from de_DE to en_GB changed, but view it's same with description for english language.
Alexander Vaysberg
ADaptions GmbH
Posted: Wed Oct 04, 2006 11:56 am
by sorin_ristache
Hello,
vaisberga wrote:I have a locale from de_D to en_GB changed, but view it's same with description for english language.
I am not sure I understand. Do you mean that the Xalan error messages of the transformation are now in English and they are the same as the Saxon error messages for the same transformation ? Or the Xalan error description is the same as the Saxon errors reported always in English but the Xalan errors are still in German language after changing from de_DE locale to en_GB locale ?
sorin wrote:What is the English version of the error messages ? Are they the same stylesheet errors as the ones reported by Saxon ?
Also please tell us the English translation of the German error messages. Using automatic translation with Google I am not sure what is the English version of the error messages. Are they the same stylesheet errors as the errors reported by Saxon in English language ?
Regards,
Sorin
Posted: Wed Oct 04, 2006 12:25 pm
by vaisberga
sorin wrote:Hello,
vaisberga wrote:I have a locale from de_D to en_GB changed, but view it's same with description for english language.
I am not sure I understand. Do you mean that the Xalan error messages of the transformation are now in English and they are the same as the Saxon error messages for the same transformation ? Or the Xalan error description is the same as the Saxon errors reported always in English but the Xalan errors are still in German language after changing from de_DE locale to en_GB locale ?
sorin wrote:What is the English version of the error messages ? Are they the same stylesheet errors as the ones reported by Saxon ?
Also please tell us the English translation of the German error messages. Using automatic translation with Google I am not sure what is the English version of the error messages. Are they the same stylesheet errors as the errors reported by Saxon in English language ?
Regards,
Sorin
Ok,
Configuration:
user.country=GB
user.dir=/home/alex
user.home=/home/alex
user.language=en
user.name=alex
user.timezone=Europe/Berlin
1. Error : I'am write in <xsl:include ../> the extention with error xls(must xsl):
With Xalan:
Error:
Severity and Description Path Resource Location Creation Time Id
java.util.EmptyStackException proficio/proficio-stores index.xsl line 1 1159952950323 1110006
With Saxon:
Error:
Severity and Description Path Resource Location Creation Time Id
Failed to compile stylesheet. 1 error detected. proficio/proficio-stores index.xsl Unknown 1159953001803 1110011
Warning:(Why Warning? That must Error!)
Severity and Description Path Resource Location Creation Time Id
Failure reading file:/work/Projects/Learn/proficio/proficio-stores/template-util.xls proficio/proficio-stores index.xsl line 3 1159953001805 1110012
2.Error in included xsl:
With Xalan:
Error:
Severity and Description Path Resource Location Creation Time Id
Extra illegal tokens: ''Test' proficio/proficio-stores index.xsl line 7 1159953274184 1112347 (Line 7 hasn't Time. In Line 7 the end </xsl:stylesheet>).
misquoted literal... expected single quote! proficio/proficio-stores index.xsl line 7 1159953274175 1112345(Line 7 hasn't Time. In Line 7 the end </xsl:stylesheet>).
org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of bla proficio/proficio-stores index.xsl line 1 1159953274192 1112348
Pattern literal ('Test) needs to be quoted! proficio/proficio-stores index.xsl line 7 1159953274182 1112346(Line 6 hasn't Time. In Line 6 the end </xsl:template>).
Warning:(Why Warning? That must Error!)
Severity and Description Path Resource Location Creation Time Id
Unmatched quote in expression 'Test proficio/proficio-stores template-util.xsl line 7 1159953129969 1112343
Unmatched quote in expression 'Test proficio/proficio-stores template-util.xsl line 11 1159953129970 1112344
Variable bla has not been declared proficio/proficio-stores template-util.xsl line 6 1159953129967 1112342
With Saxon:
Error:
Severity and Description Path Resource Location Creation Time Id
Failed to compile stylesheet. 3 errors detected. proficio/proficio-stores index.xsl Unknown 1159953129965 1112341
Warning:(Why Warning? That must Error!)
Severity and Description Path Resource Location Creation Time Id
Unmatched quote in expression 'Test proficio/proficio-stores
template-util.xsl line 7 1159953129969 1112343
Unmatched quote in expression 'Test proficio/proficio-stores
template-util.xsl line 11 1159953129970 1112344
Variable bla has not been declared proficio/proficio-stores
template-util.xsl line 6 1159953129967 1112342
That must be improved.
Alexander Vaysberg
ADaptions GmbH
Posted: Wed Oct 04, 2006 2:57 pm
by sorin_ristache
So it is true, the Xalan error messages were localized in German because your user.language was 'de'. Changing the language to English you get the same errors with Xalan and with Saxon. The error messages are clear, you have to declare the bla variable and to close the quotes for the Test constant ('Test'). About the severity level: you say that the warnings should be errors, but the developers of Xalan and Saxon used the warning level instead of error, so <oXygen/> reports the problems as warnings. The error which is reported in index.xsl but should be reported in template-util.xls is a bug in Xalan. You have to
report it to the Xalan developers.
Regards,
Sorin
Posted: Wed Oct 04, 2006 4:39 pm
by sorin_ristache
In your case you should use Saxon instead of Xalan for transformations of index.xsl because the reported errors have the correct location so that you click on a line in the Errors view of <oXygen/> and the line with the error is highlighted in the right stylesheet, that is template-util.xsl.
Regards,
Sorin
Posted: Thu Oct 05, 2006 1:31 pm
by vaisberga
sorin wrote:In your case you should use Saxon instead of Xalan for transformations of index.xsl because the reported errors have the correct location so that you click on a line in the Errors view of <oXygen/> and the line with the error is highlighted in the right stylesheet, that is template-util.xsl.
Regards,
Sorin
Thank's a lot.
Alexander Vaysberg
ADaptions GmbH