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

Re: Newbie question on XSL transformations: multiple

Subject: Re: Newbie question on XSL transformations: multiple sorts on element attr
From: "James A. Robinson" <jim.robinson@xxxxxxxxxxxx>
Date: Thu, 08 Feb 2007 06:21:36 -0800
Re:  Newbie question on XSL transformations: multiple
> I'd like to use only one language (C) for my business logic and to call 
> the xslt engine.
> Now I use c for business logic and in my presentation layer I call C api 
> of libxslt to apply stylesheets to my data (formatted in xml).

I don't know if perhaps this is straying more into the "how to design
software architecture" range of discussion, but...  What we decided to
do was hook the best XSLT engine we could find into a web service.

Perl, C, or Java which needs a transform done dispatch a request to the
web service to let that engine perform the XSLT transformation.  The web
service keeps track of stylesheets, caching them the first time they
are compiled, and handles the Source and Result streams.  The results
can then be read off of NFS (or, I suppose, could be fetched via some
other service).

This worked out quite well for our particular needs: It's able to chew
through 1,721 journal articles and spit out 11,934 transform results
in about 90 seconds, running on good but still pretty much commodity
hardware.  I think that breaks down to 52-52ms per article. This includes
the overhead of the network call to dispatch the job.

The key bits were a) a really good XSLT engine (we use Saxon), and b)
stylesheet caching, and of course c) a business model that can use
this workflow.  If you're planning to deploy your product or whatever
off-site, I imagine this will be a useless idea. :)

Jim

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson                       jim.robinson@xxxxxxxxxxxx
Stanford University HighWire Press      http://highwire.stanford.edu/
+1 650 7237294 (Work)                   +1 650 7259335 (Fax)

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.