cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <>
Subject Re: Dynamic root node in XSP
Date Thu, 25 Jan 2001 07:15:59 GMT
On Wed, 24 Jan 2001, Kurt Heston wrote:

> How would one generate the root tag (usually <page> in all of the XSP
> examples) dynamically.  Is there a way to add attributes or determine it's
> name at runtime?
> Anyone have any clues on this?

it's not possible to do this cleanly with c1. you can use xsp:element, but
the name can't be dynamic. we're talking of adding an xsp:name argument to
xsp:element to rectify this in c2, but it's not been implemented anywhere.

you can get away with modifying the xsp result node tree by hand, but it's
not portable. might be good enough for your purposes tho.

- donald

View raw message