<xsp:logic> Date now = new Date(); String msg = "Boo!"; </xsp:logic>
<content> <title>Welcome to Cocoon</title>
<paragraph>
This is an XSP. You can see how we it contain both logic (inside the <xsp:logic> tags) and content. In the logic block above, we created a Date object whose value is <xsp:eXPr>now</xsp:expr>. Oh, we also had a special message for you: <xsp:expr>msg</xsp:expr>