using Velocity to externalize configuration properties ?

Tom Zeller tzeller at dragonacea.biz
Wed Jul 31 20:52:50 EDT 2013


>> I probably still misunderstand, but my first thought re Velocity is
>> that it would be inserted between the DOM and Spring. So an area worth
>> investigating.
>
> No, Velocity would be up front before the XML was parsed, it has to
> operate on text, not a DOM.
>
> Right now, we would hand the Velocity produced stream of text to Spring
> via the Resource API. Then it parses the XML. I'd love to be able to do
> the XML step, but I'm not sure we can.

Yeah time to step away from email, obviously, I got that wrong but at
least I realized it before your reply, phew.

I guess just a VelocityResourceFilter, except I think ResourceFilters
have been omitted from V3, I'll remember better tomorrow.

If you want to sometime, let me know again why you want to parse the
XML. Loading schemas over http notwithstanding. I have a vague notion
but I would need to look in my notes.


More information about the dev mailing list