cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <je...@media.demon.co.uk>
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"/>
	</fp:write>

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">
		<blah>
			<title><request:get-parameter name="title"/></title>
			<body><request:get-parameter name="body"/></body>
			<flag><request:get-parameter name="checkbox" default="false"/></flag>
		</blah>
	</fp:write>

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

   <mailto:sharkbait@mac.com>     		 <http://www.media.demon.co.uk>
    <phone:+44.[0].20.7737.6831>        <pager:jermq@sms.genie.co.uk>

Mime
View raw message