Hello,

I am using Turbine 2.1, along with Velocity 1.2 as a templating engine.
Turbine rocks and I'm very happy with it !

I try and have a VelocityScreen to output an XML Stream.
I have :
- a VelocityScreen called XMLScreen :
    public class XMLScreen {
        public void doBuildTemplate(RunData data, Context context){
            context.put("input", ":: Testing the input ::");
        }
    }

- a Layout called "Xml.vm" :
    <?xml version="1.0" encoding="ISO-8859-1"?>
    $screen_placeholder

- a template "XMLScreen" :
    $data.setLayoutTemplate("/Xml.vm")
    <app>
        <input>$input</input>
    </app>

I would like , when I call
http://localhost:8080/myapp/servlet/myapp/XMLScreen.vm , to have :

<?xml version="1.0" encoding="ISO-8859-1"?>
<app>
    <input>:: Testing the input ::</input>
</app>

, but I have :

<html><head><title></title></head><body><?xml version="1.0"
encoding="ISO-8859-1"?>
<app>
    <input>:: Testing the input ::</input>
</app></body></html>

Could anyone please tell me where these tags are added , and / or with class
to subclass
(as this doesn't appear in any templates / layouts, I guess it is
hardcoded ).

I read something about VelocitySiteLayout in the docs, but don't have any
idea on how to use it.

Thanks,
Stephane


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to