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

Re: XSL + Java extensions + Xalan

Subject: Re: XSL + Java extensions + Xalan
From: Jean-Baptiste Quenot <jb.quenot@xxxxxxxxxxxxxx>
Date: Mon, 9 Jul 2001 22:27:26 +0200
resin xerces
* Mattio Valentino:

> Hi  all.  I'm  having some  trouble with  Java extensions.   I've been
> through the xml.apache.org documentation with no luck.
>
> I'm using: Resin, Xerces/Xalan, and JSP to serve up the XML/XSL.

The  problem  here  is  Resin.  Quoting  Scott  Ferguson  (Resin's  main
developer) from resin-interest@xxxxxxxxxx mailing list today:

«?There is an extension mechanism in the current XSL draft that will let
you do the same thing.  Resin hasn't implemented it yet, but it's on the
todo list.?»

I  guess   what  Scott   is  talking  about   is  exactly   the  problem
you   encounter.     However,   in   your   XSL    file,   with   Resin,
you   can   embed   java   scriptlets   using   <#?...?#>   blocks   (or
<xtp:scriptlet>?...?</xtp:scriptlet> if you prefer).

In fact, you can do everything you do with JSPs, but replace the '%'
character with a '#' in XSL files.

You can even import classes, using <#! page import ... #>.

Now that I explained the situation, I can quote the whole text:

«?Resin-specific.   The W3C  is  ideologically opposed  to scripting  in
stylesheets  (It's  not just  the  syntax.   Using <xsl:expr>  would  be
morally wrong as well.)  There is  an extension mechanism in the current
XSL draft that will let you do the same thing.  Resin hasn't implemented
it yet,  but it's on  the todo  list.  So you'll  be able to  remove the
Resin dependency pretty soon. ?»

Cheerio!
-- 
Jean-Baptiste Quenot

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.