Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 10th, 2005, 07:20 AM
Registered User
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to thalliley
Default xslt-process-mode and Saxon 8

As far as I can tell, no one has upgraded xslt-process(-mode) to work with Saxon 8. I'm willing to help, if Mike Kay or someone else can give me an idea where to start and what's involved. :)



[email protected]
 
Old October 10th, 2005, 09:16 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Don't expect any help from me, I had to google to find out what xslt-process-mode is, and I'm not an emacs convert.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old October 10th, 2005, 09:27 AM
Registered User
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to thalliley
Default

Here's a response I had previously gotten from Tony Addyman:

> How tough is it to get Saxon 8.0 working with xslt-process-mode? Adding
> the .jar file in place of saxon-6.5.2.jar (and extending the classpath)
> doesn't work.
> Has the interface to Saxon itself changed?

I don't know. I guess Mike Kay would know. The debugger in xslt-process
goes beyond the normal APIs to achieve some of things it needs to do.
 From memory we had to make changes to the Java code most times a new
version of Saxon was supported.

-----------------

I'd guess it's a matter of seeing what's changed in the top-level Java APIs to Saxon. Mike ... don't happen to have a deltas document/release notes do you?



[email protected]
 
Old October 10th, 2005, 11:40 AM
Registered User
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to thalliley
Default

Looks like the core issues are how the following classes map from Saxon 6.x to Saxon 8.x:
Code:
     com.icl.saxon.Context      ---> net.sf.saxon.???
     com.icl.saxon.NodeHandler  ---> net.sf.saxon.???
Most changes seem to be a refactoring into different packages. No problem. A few other methods changed, or indirections needed to get information required for a debugger. Fixed those too.

Anyone happen to know these particular mappings?

[email protected]
 
Old October 10th, 2005, 12:14 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Context is now net.sf.saxon.expr.XPathContext

NodeHandler doesn't exist any more. Need to understand how and why it was being used.

It may be better to move this to the Saxon list. There may be someone there who is familiar with the history.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old October 10th, 2005, 03:19 PM
Registered User
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to thalliley
Default

It looks like
Code:
   com.icl.saxon.trace.TraceListener.enterSource(NodeHandler handler, Context context)
   com.icl.saxon.trace.TraceListener.leaveSource(NodeHandler handler, Context context)
are now
Code:
   net.sf.saxon.trace.TraceListener.enter(InstructionInfo instuction)
   net.sf.saxon.trace.TraceListener.leave(InstructionInfo instuction)
so NodeHandler is resolved.

It looks like
Code:
   com.icl.saxon.Context
might be replaced by
Code:
   net.sf.saxon.instruct.InstructionDetails
Am I on the right track?


[email protected]
 
Old October 10th, 2005, 03:33 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

The diagnostic interfaces into Saxon have changed very substantially between 6.5.x and 8.5. I've no idea what this code does so it's hard to assess the impact, but it might involve significant redesign. In some ways there's a lot more information available to the TraceListener now, but in other ways there's less information because Saxon is no longer interpreting the source stylesheet tree, it's now driven from an internal expression tree which is several steps removed from what the user originally wrote, and which, for example, represents XSLT instructions and XPath expressions using common constructs regardless how they appeared in the source. Don't expect to get this working without some detailed study of Saxon internals and some thorough testing over a range of stylesheets.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old October 11th, 2005, 11:01 AM
Registered User
 
Join Date: Oct 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to thalliley
Default

Thanks, Michael. This is what I was looking for.

[email protected]





Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Saxon XSLT Processor booboop BOOK: Beginning XML 3rd Edition 2 April 7th, 2011 12:10 PM
[xslt 2.0] Discrepancy between Altova and Saxon-B luchm XSLT 3 December 4th, 2008 11:19 AM
XSLT not executing java function(using SAXON) dved XSLT 2 January 15th, 2008 08:46 PM
help using saxon to get some XSLT code to work hbabe42 XSLT 3 November 23rd, 2007 02:14 PM
XSLT process XML problem in XMLSpy xinr XSLT 2 September 14th, 2006 11:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.