Okay, I know we can do things like:
<xi:include href="myfile.xsp"/>
or
<util:include-uri href="myfile.xsp"/>
and it'll Just Work. (at least, I've been using xi:include with little
problem).
But what if you want to dynamically set the href? That is, let's say I call
a page like this:
node_summary.xsp?id=5
and I want it to include
node_detail.xsp?id=5
(though in this case, it'd really be
node_detail.xsp?id=<param:id/>
)
How do I do that? That is, how can I put in an .xml or .xsp file, an
include where the href attribute is determined dynamically?
I've seen mention of things that made me try:
<xi:include><xsp:attribute name="href">node_detail.xsp?id=5<....>
or
<xi:include><href>node_detail.xsp?id=5</href></xi:include>
but these don't work (nor do they work with util:include-uri). Is there a
standard way to dynamically modify attributes within .xsp or .xml files? Or
am I out of luck? (no, I don't want to write a taglib of my own just
yet...)
Thanks!!
david.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]