Content-Type: multipart/related; boundary="------------010102010004040700040702" --------------010102010004040700040702 Content-Type: text/html; charset=windows-1257 Content-Transfer-Encoding: 8bit Since XSLT 3.0 is currently only a working draft and not necessarily stable, Saxon currently behaves as an XSLT 3.0 processor only if you select this as your language version from the command line or API. By default, it behaves as an XSLT 2.0 processor.

If an XSLT 2.0 processor encounters XSLT 3.0 constructs, its behaviour is defined by the forwards compatibility rules in the XSLT 2.0 specification. These rules take into account the value of the xsl:version attribute of xsl:stylesheet. If you specify version="2.0" on the xsl:stylesheet, then using XSLT 3.0 constructs such as xsl:mode will generally be an error. If you specify version="3.0", then an XSLT 2.0 processor is required to ignore such constructs silently where possible.

That's the theory. I wouldn't guarantee that Saxon gets this right in every case. Let us know if you find any deviations.

Michael Kay
Saxonica

On 22/03/2012 07:54, Aleksandrs Zeļikovičs wrote:

Hello,

 

It’s seems that with this property all works.

 

I have one another answer:

Is it possible to compile only XSLT 3.0 version if I set compiler.XsltLanguageVersion=3.0

If I set compiler.XsltLanguageVersion=2.0 for 3.0 to be an error.

 

Or I have to do this checking xslt atribute, that of course works…

 

Ar cieņu,
Aleksandrs Zeļikovičs

 

Description:
                        http://www.abcsoftware.lv/logo/logo_z2.jpg

SIA „ABC software”
Programmētājs
Tālr.: +371-67082622 Fakss: +371-67082610
E-pasts: Aleksandrs.Zelikovics@abcsoftware.lv

 

From: Dr O'Neil Delpratt [mailto:oneil@saxonica.com]
Sent: Wednesday, March 21, 2012 7:44 PM
To: Mailing list for the SAXON XSLT and XQuery processor
Cc: Michael Kay; Aleksandrs Zeļikovičs
Subject: Re: [saxon] .net and xslt compiler

 

Hi Aleksandrs,

We have managed to fix the bug you reported, which will be available in the next maintenance release of Saxon 9.4.

We generate byte code (from XQuery or XSLT source) using ASM and load/execute it. The problem proved to be a class loader issue within the CompilerService class, which as Mike suggested is associated with the byte code generation. We have therefore simplified the use of the class loader when generating byte code, which did seem to get 'mixed-up' across .NET through the IKVM.

kind regards,

O'Neil

On 20/03/2012 10:15, Michael Kay wrote:

OK, thanks, we have reproduced the failure.

This is associated with byte code generation, so you can work around the problem by adding the API call

processor.SetProperty("http://saxon.sf.net/feature/generateByteCode", "false");

The reason the 3.0 streamable example works is that byte code generation is automatically switched off for streamable templates.

What's happening here, as far as we can tell, is that we are generating byte code corresponding to your XSLT stylesheet; we are then translating the byte code to IL code using IKVMC. The byte code that we generate is a class which inherits from the class com.saxonica.bytecode.map.CompiledContextMappingFunction, which is present in saxon9ee.dll. When we run from within the command line Transform command, which is in the same DLL, this is successfully loaded, but when we run from a different DLL, a failure occurs when attempting dynamic loading of the superclass.

One of the puzzles is how something so simple is failing when all our tests worked OK - but I suspect that observation won't help us in finding the cause and fixing it.

As we've reproduced the problem, we should be able to find a fix. My colleague O'Neil Delpratt will be working on this.

Regards,

Michael Kay
Saxonica

On 19/03/2012 08:24, Aleksandrs Zeļikovičs wrote:

Thank you for your answer,

 

Before buying saxonica application for our product we test it with simplest XSLT.

We will have catalog with xslt (not only 3.0).

 

Interesting that under Console application all XSLT can be run.

 

Testing your product, this XSLT can’t be run Under windows project:

 

1.0 Exception in Compile:  com.saxonica.bytecode.map.CompiledContextMappingFunction

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs">

       <xsl:output method="xml" encoding="UTF-8" indent="yes"/>

       <xsl:template match="/">

              <c>

                     <xsl:for-each select="a/b">

                           <c1>

                                  <xsl:value-of select="string(.)"/>

                           </c1>

                     </xsl:for-each>

              </c>

       </xsl:template>

</xsl:stylesheet>

 

 




------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure




_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help 




No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1913 / Virus Database: 2114/4881 - Release Date: 03/19/12

 

--------------010102010004040700040702 Content-Type: image/jpeg Content-Transfer-Encoding: base64 Content-ID: /9j/4AAQSkZJRgABAQEA3ADcAAD/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUG BgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYH CgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAAR CAAwAHEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl 5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREA AgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYk NOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOE hYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk 5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD9/KKKMigAooyPWkJ7igD42/4LP/FjUPCH wR8PfDbRdXurSfxNrTyXn2aYoJ7S3i+eJ8clTJNC2Oh2c17Z+wRB4ug/Y/8AAT+ONZub/ULj RRcfabuUvIYJZHkgUseTthaNRnsBXxL/AMFe/EmpfEj9q/w78IPDzG4m03SLe1itlPP2y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