[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL + Java extensions + Xalan
* 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|