Hello,

I'm new to dom4j list (made my first little XML->Java Object mapping this
weekend :-)) so I was wondering if someone could point me in the right
direction as to where the XML transformation code lies and how it's used.

I would like allow the use of Velocity to transform XML documents in a
general way. Right now the closest thing is something called Anakia but it
operates on specifically named elements which isn't very useful outside it's
very limited scope of creating the documentation for Jakarta.

In velocity it is possible to define #macros :

#macro (td $value)
  <td bgcolor="#ffffff">
#end

And these macros are available with Java using the Velocity application
helper. So what I would like to be able to do is for each element that is
come across execute the corresponding #macro if it exists.

Any thoughts or ideas?

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to