Feature
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
Feature
i work with OxygenXML in the Eclipse

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.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Feature
Post by sorin_ristache »
We already plan that for a future version.vaisberga wrote:First autocomplition for XLT Template.
I cannot reproduce that. Can you post 2 sample files with this problem ?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.
Regards,
Sorin
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
<?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
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
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: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
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:I have a template-util.xls writet, but must xsl.The Error say nothing.
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 ?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
Regards,
Sorin
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
Alex.
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
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.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »

Regards,
Sorin
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
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.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 iconin the editor title ?
Regards,
Sorin
Alexander Vaysberg
Adaptions GmbH
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
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
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
I have it run an have a follow output: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
<?xml version="1.0" encoding="UTF-8"?>
<out>
Version: 1.0
Engine: Xalan Java 2.7.0
</out>
Regards,
Alexander Vaysberg
Adaptions GmbH
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
vaisberga wrote:I have it run an have a follow output: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
<?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
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Regards,
Sorin
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
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.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
Regards,
Alexander Vaysberg
Adaptions GmbH
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
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
Code: Select all
<xsl:value-of select="'Test"/>
Code: Select all
<xsl:value-of select="'Test'"/>
Regards,
Sorin
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
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.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:Code: Select all
<xsl:value-of select="'Test"/>
Code: Select all
<xsl:value-of select="'Test'"/>
Regards,
Sorin
Regards,
Alexander Vaysberg
ADaptions GmbH.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
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
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
It's too big, I have it send on the support@oxygenxml.com email for Sorin.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
Alexander Vaysberg
ADaptions GmbH
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Regards,
Sorin
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
I have a locale from de_D to en_GB changed, but view it's same with description for english language.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
Alexander Vaysberg
ADaptions GmbH
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
vaisberga wrote:I have a locale from de_DE to en_GB changed, but view it's same with description for english language.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
Alexander Vaysberg
ADaptions GmbH
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
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 ?vaisberga wrote:I have a locale from de_D to en_GB changed, but view it's same with description for english language.
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 ?sorin wrote:What is the English version of the error messages ? Are they the same stylesheet errors as the ones reported by Saxon ?
Regards,
Sorin
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
Ok,sorin wrote:Hello,
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 ?vaisberga wrote:I have a locale from de_D to en_GB changed, but view it's same with description for english language.
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 ?sorin wrote:What is the English version of the error messages ? Are they the same stylesheet errors as the ones reported by Saxon ?
Regards,
Sorin
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
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Regards,
Sorin
-
- Posts: 15
- Joined: Tue Sep 26, 2006 2:57 pm
Thank's a lot.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
Alexander Vaysberg
ADaptions GmbH
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service