cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Didier VILLEVALOIS <>
Subject RE: Xsl to Java
Date Mon, 22 May 2000 15:12:09 GMT
Hi Matthew,
Thanks in deed for your answer!!

I mean by "to Java" that i want to generate Java code. The fact is I want
mix Java code and xsl processing code, in the spirit of XSP.

At the end, i'd like to have a Java class with my own logic interleaved with
the XSL processing logic. This is a key point in a workflow
component-oriented framework.

Here is an example of what i'd like to do: (namespaces decl omited)

<?xml version="1.0"?>

	<xsl:template match="newOrder">
		OrderLines lines = new OrderLines();
		<xsl:for-each match="orderLine">
				<xsl:value-of select="@productID"/>,
				<xsl:value-of select="@quantity"/>);
		Order order = OrderManager.getOrderManager().createOrder(
			<xsl:value-of select="@customerID"/>,
		if (order != null)


As I looked to it, I'm not sure the class you showed me may help. Am I wrong

Thanks for your help!! Didier.

-----Message d'origine-----
De: Matthew Cordes []
Date: lundi 22 mai 2000 15:53
À: cocoon-users@XML.APACHE.ORG
Objet: Re: Xsl to Java

Hey Dider, 

What do you mean to java?

Xalan's StylesheetRoot (
) is a binary representation of a stylesheet that can be reused without
needing to be reparsed.  I use them in a servlet I have which caches 
stylesheets for other servlets to reduce reads from disk.


On Mon, May 22, 2000 at 11:52:26AM +0200, Didier VILLEVALOIS wrote:
> It don't looks like because there is a complex interpretation algebra in
> sources of Xalan. Furthermore i can't find any xsl stylesheets in the
> sources.
> Thought I'll ask to the xalan-dev mailing list!!
> Other ideas ?
> -----Message d'origine-----
> De: Robin Green []
> Date: lundi 22 mai 2000 12:47
> À:
> Objet: Re: Xsl to Java
> Didier VILLEVALOIS <> wrote:
> >Will next versions of Xalan compile stylesheets to Java?
> I think Xalan already does, internally. Try asking
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message