trying to get XSLT 2.1 to work (and failing under Win)

Here should go questions about transforming XML with XSLT and FOP.
piotrb
Posts: 18
Joined: Fri Jan 09, 2009 9:18 pm

trying to get XSLT 2.1 to work (and failing under Win)

Post by piotrb »

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
<xsl:mode streamable="yes"/>

<xsl:template match="/">
<gizmo/>
</xsl:template>
</xsl:stylesheet>
Hi, for the reduced skeletal stylesheet above, I use oXygen 12.1 and Saxon-EE 9.3.0.4 with lax schema validation. I was hoping I would get at least this to run streamable XSLT. Still no go: all I get is

SystemID: C:\cygwin\home\Piotr\SVN\octc\trunk\tools\xsl\test.xsl
Engine name: Saxon-EE 9.3.0.4
Severity: error
Description: java.lang.NullPointerException

No other information. However, under Ubuntu 10.10 (same oXygen, same Saxon, same options, as far as I can see), it yields the proper output, namely:

<?xml version="1.0" encoding="UTF-8"?><gizmo/>

What's so bad about the Windows version? Where can I look for a more verbose error report, please? (OR: can someone please run the stylesheet under Windows to see what happens? Note @version="3.0"; for "2.1", the processor warned me that it was not an XSLT 2.1 processor)

Thanks!
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: trying to get XSLT 2.1 to work (and failing under Win)

Post by sorin_ristache »

piotrb wrote:Hi, for the reduced skeletal stylesheet above, I use oXygen 12.1 and Saxon-EE 9.3.0.4 with lax schema validation. I was hoping I would get at least this to run streamable XSLT. Still no go

. . .

What's so bad about the Windows version? Where can I look for a more verbose error report, please? (OR: can someone please run the stylesheet under Windows to see what happens?
I tried the same stylesheet in Oxygen 12.1 on Windows with Saxon 9.3.0.4 EE (Enterpise Edition) and the transformation is successful. The result:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?><gizmo/>


The NullPointerException may be reported for the input XML document that you used and did not post here but I could not reproduce it.
piotrb wrote:Note @version="3.0"; for "2.1", the processor warned me that it was not an XSLT 2.1 processor)
I get no warning and no error with @version="3.0", Saxon 9.3.0.4.EE and lax validation. The transformation is successful. I tried also with Saxon 9.3.0.4 PE (Professional Edition) and I get the error Streaming requires Saxon-EE.


Regards,
Sorin
Post Reply