On Wednesday 19 March 2003 02:35 pm, Schuetz, David wrote:
> I said...
>
> >> 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?
>
> ...then Tod said...
>
> > Honestly I think writing a Taglib is the best idea.
> > Its really not that hard, just use the TaglibHelper module.
>
> ...then I said... (yes, I've been listening to the Chicago soundtrack too
> much lately)
>
> Ok, maybe it's time for me to start playing with taglibs.  I can't do this
> in the XSLT stage, because the include itself generates a major-level XML
> fragment (that's a peer to the peers of the original include statement)
> that'll have to be processed by the XSLT as if it were in the original
> XML/XSP file.

Well, I was faced with this same sort of issue with XML being statically 
included vs data generated dynamically in XSP which all needed to be treated 
as coming from one place by XSLT. The solution there was to have an extra 
XSLT processing step that did the merge, so after that step everythign LOOKS 
like it all came in together. Merging in XSLT is ugly and in more complex 
cases NOT for the feint of heart, but if your syntax is pretty basic it isn't 
tough at all.

On the flip side I'm contemplating a new approach to this, which is to include 
the data ALREADY MERGED, via a util:include-url tag or xinclude which calls 
some specialized generator logic who's only job is to create the merged 
content (though then the ugliness is that you have to use a URL to specify 
what that data is, not hard if its just some files, otherwise it may be 
tough). The theoretical advantage may be some better caching, but I'm still 
working it out in my head right now.
 
>
> Thanks for the response, eh?
>
>
> david.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Tod Harter
Giant Electronic Brain

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

Reply via email to