cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <>
Subject taking output of XSP
Date Sat, 02 Sep 2000 09:48:36 GMT
Hi All,

What with the talk of a new dynamic <xsp:element/> tag, I'd like to bring
up another possible modification to XSP.

The FP TagLib has a Tag that directs it's contents to an external file as
opposed to the output document.

	<fp:write to="file" as="node" select="blah">
		<request:get-parameter name="blah"/>

This works fine, request:get-parameter outputs an Element to fp:write.

But if someone wants to do this:

	<fp:write to="file" as="node" select="." mode="insert-after">
			<title><request:get-parameter name="title"/></title>
			<body><request:get-parameter name="body"/></body>
			<flag><request:get-parameter name="checkbox" default="false"/></flag>

It all becomes rather complicated (or do I misunderstand?).

The fp:write Tag would have to take over xspCurrentNode and probably muck
around with the Node Stack, both of which I understand are not recommended!

Can I safely take over xspCurrentNode etc. or do we need a new mechanism
for this?

thanks Jeremy

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <>     		 <>
    <phone:+44.[0].20.7737.6831>        <>

View raw message