trying to get XSLT 2.1 to work (and failing under Win)
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 18
- Joined: Fri Jan 09, 2009 9:18 pm
trying to get XSLT 2.1 to work (and failing under Win)
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>
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!
-
- 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 »
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: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?
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.
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.piotrb wrote:Note @version="3.0"; for "2.1", the processor warned me that it was not an XSLT 2.1 processor)
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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