XSLT 2.0 validation failure under oXygen 9.1
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 26
- Joined: Fri Mar 24, 2006 7:45 am
- Location: London, UK
XSLT 2.0 validation failure under oXygen 9.1
My XSLT 2.0 stylesheets (but not 1.0) are failing to validate under oXygen XML Editor 9.1, build 2007121417 (Windows XP, JDK 1.6.0_03-b05). When I try to validate an XSLT 2.0 stylesheet, I get an error like:
SystemID: C:\xslt\build-examples.xsl
Description: net.sf.saxon.expr.Expression.simplify(Lnet/sf/saxon/expr/StaticContext;)Lnet/sf/saxon/expr/Expression;
This wasn't a problem under 9.0. Note that I am able to run the same stylesheet under Saxon 9B using Ant, so it doesn't appear to be a problem with the stylesheet or Saxon 9B. Any suggestions? Any extra debugging information needed? Thanks a lot in advance,
Cheers, Tony.
SystemID: C:\xslt\build-examples.xsl
Description: net.sf.saxon.expr.Expression.simplify(Lnet/sf/saxon/expr/StaticContext;)Lnet/sf/saxon/expr/Expression;
This wasn't a problem under 9.0. Note that I am able to run the same stylesheet under Saxon 9B using Ant, so it doesn't appear to be a problem with the stylesheet or Saxon 9B. Any suggestions? Any extra debugging information needed? Thanks a lot in advance,
Cheers, Tony.
-
- Posts: 26
- Joined: Fri Mar 24, 2006 7:45 am
- Location: London, UK
Schmatron is affected too
This problem is affecting Schematron too. When I tried to validate some XML files against a Schematron schema, the following error was logged (many times):
SystemID: C:\sch\sap.sch
Description: net.sf.saxon.expr.Expression.simplify(Lnet/sf/saxon/expr/StaticContext;)Lnet/sf/saxon/expr/Expression;
Cheers, Tony.
SystemID: C:\sch\sap.sch
Description: net.sf.saxon.expr.Expression.simplify(Lnet/sf/saxon/expr/StaticContext;)Lnet/sf/saxon/expr/Expression;
Cheers, Tony.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
Please post a short sample of your XSLT 2.0 stylesheet for reproducing the problem. We have not encountered that error yet in oXygen.
Thank you,
Sorin
Please post a short sample of your XSLT 2.0 stylesheet for reproducing the problem. We have not encountered that error yet in oXygen.
Thank you,
Sorin
-
- Posts: 26
- Joined: Fri Mar 24, 2006 7:45 am
- Location: London, UK
XSLT Examples
Here is an XSLT 1.0 example which validates correctly:
----
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="myvariable"/>
<xsl:template match="/">
<document/>
</xsl:template>
</xsl:stylesheet>
----
Here is a similar XSLT 2.0 example which does not validate correctly:
----
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:variable name="myvariable"/>
<xsl:template match="/">
<document/>
</xsl:template>
</xsl:stylesheet>
----
The problem seems to be the "xsl:variable" declaration. If that is removed, the XSLT 2.0 example validates correctly.
Cheers, Tony.
----
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="myvariable"/>
<xsl:template match="/">
<document/>
</xsl:template>
</xsl:stylesheet>
----
Here is a similar XSLT 2.0 example which does not validate correctly:
----
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:variable name="myvariable"/>
<xsl:template match="/">
<document/>
</xsl:template>
</xsl:stylesheet>
----
The problem seems to be the "xsl:variable" declaration. If that is removed, the XSLT 2.0 example validates correctly.
Cheers, Tony.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
I tried with the latest build (2007122116) and it was validated without errors. The error may be caused in your oXygen build by the last bug fixed by the build 2007122116. Please install the latest build over the current one so that the current one is upgraded to the latest one.
Regards,
Sorin
Regards,
Sorin
-
- Posts: 26
- Joined: Fri Mar 24, 2006 7:45 am
- Location: London, UK
Latest version didn't help
I tried installing the latest version of oXygen, but that didn't help. Can you tell me which version of Saxon 9 is supplied with the latest version of oXygen? I tried overwriting the supplied versions with the JARs from Saxon-SA 9.0.0.1 and 9.0.0.2, but that didn't help.
Cheers, Tony.
Cheers, Tony.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Saxon version 9.0.0.2 as you can see in the Help -> About dialog, the Components tab.
Regards,
Sorin
abcoates wrote:Here is a similar XSLT 2.0 example which does not validate correctly:
----
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:variable name="myvariable"/>
<xsl:template match="/">
<document/>
</xsl:template>
</xsl:stylesheet>
----
I get no validation errors for this stylesheet with the latest build. Can you send us the stylesheet in a zip archive in order to preserve the encoding of your file?abcoates wrote:I tried installing the latest version of oXygen, but that didn't help.
Regards,
Sorin
-
- Posts: 26
- Joined: Fri Mar 24, 2006 7:45 am
- Location: London, UK
Saxon Version Doesn't Match?
In the "Components" tab of the "About" dialog box, my installation of oXygen says
Saxon9SA | 8.9.0.4
which seems different from the 9.0.0.2 that you mentioned. Is it possible that I have a setting that wasn't upgraded properly from an earlier version of oXygen?
I will put my example XSLT stylesheets and a screenshot in a ZIP and send them to you.
Cheers, Tony.
Saxon9SA | 8.9.0.4
which seems different from the 9.0.0.2 that you mentioned. Is it possible that I have a setting that wasn't upgraded properly from an earlier version of oXygen?
I will put my example XSLT stylesheets and a screenshot in a ZIP and send them to you.
Cheers, Tony.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: Saxon Version Doesn't Match?
Post by sorin_ristache »
That is an older version of oXygen. Is it "<oXygen/> XML Editor 9.1" in your Help -> About dialog? Of course you have to restore the original saxon 9 jar files and restart the application because you replaced some jar files in the [oXygen-install-folder]/lib folder.abcoates wrote:In the "Components" tab of the "About" dialog box, my installation of oXygen says
Saxon9SA | 8.9.0.4
which seems different from the 9.0.0.2 that you mentioned. Is it possible that I have a setting that wasn't upgraded properly from an earlier version of oXygen?
Regards,
Sorin
-
- Posts: 26
- Joined: Fri Mar 24, 2006 7:45 am
- Location: London, UK
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
No, oXygen 9.1 comes with Saxon 9.0.0.2 B (the Basic version, not the Schema Aware version for which you need a separate license). I replaced saxon9.jar with saxon9sa.jar and I added saxon9sa-jaxp.jar but I get no validation errors with Saxon 9 SA.
Regards,
Sorin
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Can you send us a screenshot with all the Java properties displayed in the System properties tab of the Help -> About dialog?
Regards,
Sorin
Regards,
Sorin
-
- Posts: 26
- Joined: Fri Mar 24, 2006 7:45 am
- Location: London, UK
OK, I fixed the problem by completely uninstalling oXygen 9.1 and re-installing it. I did notice that my old installation had both Saxon 8 and Saxon 9 JAR files, the new installation only has Saxon 9 JAR files, so either it was an upgrade issue, or at some time in the past I copied the wrong version of Saxon into the "lib" directory.
Cheers, Tony.
Cheers, Tony.
Jump to
- 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