On 10 Jun 2004, at 10:04, Jan Bauer Nielsen wrote:

Hello.

I'm still a taglib newbie, and I was wondering if it is possible to have the output of one taglib function as the input to another as in the following example?

<z3950:connection>
        <xsp:attribute name="host">
                <cfg:load-value>
                        <cfg:server>
                                <cfg:host />
                        </cfg:server>
                </cfg:load-value>
        </xsp:attribute>
</z3950:connection>

I would like the cfg taglib to load a value from disk which is then to be inserted as the host attribute of the connection call in the z3950 taglib. But when I try this, 'parse_start()' triggers on the '3950:connection' tag in the z3950 taglib before cfg has had a chance to set the value and therefore no host attribute exists.

Yes you can do this, but xsp:attribute isn't the right way to do it. Assuming your z3950 taglib is a TLH taglib, you should be able to do:


<z3950:connection>
  <z3950:host>
    <cfg:load-value> ... </cfg:load-value>
  </z3950:host>
</z3950:connection>

The problem is that <xsp:attribute> is mapped directly to a DOM call to add an attribute to the output document, it doesn't affect the input document.

Matt.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to