cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <>
Subject Re: fp taglib question
Date Mon, 16 Oct 2000 10:04:36 GMT
At 10:55 +0200 16/10/00, Ulrich Mayring wrote:
>Jeremy Quinn wrote:
>> The current incarnation is unable to do this, it (foolishly) requires
>> something to write "next to" not "into".
>> Since you can only have one root element, you can do little to solve this.
>> If you already had a child of the root node, you could add another ...
>But how? I can only select a child and write "to" it, replacing the
>previous child. But I don't know how to add another child.

if you already had something like this :


I think you ought to be able to add another thing like this:

<fp:resource name="thing">
  <fp:resource-node>root/thing[position() = 1]</fp:resource-node>

hope this helps

BTW. In the new version, (I've had to change the DTD) you can specify a
"mode" in the <fp:write> as well as the resource, meaning you ought to be
able to insert more flexibly.

regards Jeremy

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

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

View raw message