[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: MSXSL in Java (server pages)

Subject: Re: MSXSL in Java (server pages)
From: Woody <woody@xxxxxxxxxxxxxx>
Date: Tue, 03 May 2005 11:00:54 +0100
java msxsl
Hi,

Thanks so much for that. As it turns out, both are right. I have one set of data that I had written half of it where I took the msxml working draft code, made it v1.0 xsl but left the javascript it which I can now use with rhino (which I hadn't heard of) and the default (xalan) processor.
I also have an older set of stylesheets that are all working draft xsl, which only works with msxsl 2.6, which i need to force through msxsl to process. I can't really use the filesystem (multiple queries), but I am sure there is some way of piping it in and out.


Thanks
Woody


When I first read this I thought that you might want to run a transform
in Java with a stylesheet with embedded Javascript.  Mozilla has
something called Rhino that helps with this but there is a lot of
playing around with versions of Xalan, Xerces, Rhino, etc., to get it to
work.  That would require that the stylesheets were otherwise XSLT 1.0
compliant.  I don't remember which version of MSXML represented the
change over to this spec but earlier versions used a somewhat different
language that won't work in a modern transformer.

If all you want to do is run MSXML from a JSP you can exec it and it
should run in another process.  You will have to be running your server
on a Windows platform of course and will also have to communicate via
the filesystem unless you can wrap the MSXML in something that will talk
to standard in/out.  Either way you will have to serialize the XML and
deserialize the result.

Barry

Woody wrote:

> I know the immediate answer is 'don't', but I have 4 weeks to do a
> proof of concept on a web version of a product that displays documents
> which are created via MSXSL.
> The xsl that I have written over the last few years will run on any
> xml processor, but the older stuff is full of javascript and runs in
> the old MSXSL 2.6. There is a lot of it and I don't have time to
> rewrite any of it.
> I therefore need to run it through MSXSL to process, and am aware that
> I can probably do something with JNI to get it working, but wondered
> if anyone else had been in this situation or knows of something that
> is already done.
> I have scoured google, but the only references to it that I have found
> is people saying not to do it (which I agree with but have no option).
>
> Woody

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.