commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Brandt <>
Subject [jelly] Eval complex xml pipline?
Date Mon, 24 Feb 2003 20:32:54 GMT
Given the following:
     A source xml document ( currently in jdom ) whose content is sent 
to jelly via a custom tag that fires sax events down xmlout's pipeline. 
That output is then transformed via the jelly:xml transform tag. The 
result of that transformation is yet another jelly script ( it has 
beandef defined tags in it ).

How do I get that transformed document eval'd by the jelly script 


<j:jelly xmlns:j="jelly:core" xmlns:define="jelly:define" 
     xmlns:x="jelly:xml" xmlns="jelly:bean">

	<!-- define beans , this file just contains a number of bean 
		<beandef name="foo" className="nowhere.Bar"/>
	<j:import inherit="true" trim="true" uri="beandefs.jelly"/>

	<define:taglib uri="jdom">
		<define:jellybean name="parse" className="JDomParseTag"/>

	<x:transform xslt="${stylesheet}">
		<jdom:parse doc="${document}"/>


The transformed xml would be similar to:
	<foo attr1="aaa"/>

And what I want to happen is that every time the foo tag is seen, a Bar 
object is instantiated and it's attr1 is set to "aaa"

Ideas? Tag I missed somewhere?

I looked at jsl, but I'm not entirely sure it will support some of the 
complex xsl support I'll need during the transform process.

- Sean Brandt

View raw message