> How do you go about getting the same behavior in AxKit? Would you have an
> XSLT stylesheet that automatically inserts (for instance) <sois:userinfo />
> into the requested document before any other processing is applied to the
> document?
>

Well, my current philosophy is to build my pages as a series of 'components', 
each of which is wrapped in a top level tag with a unique namespace. These 
aren't XSP tags (but they usually encapsulate XSP), so I have something like 
this in a page:

<nav:navigation xmlns:nav="http://xml.giantelectronicbrain.com/NS/navigation"; 
order="100" chunkid="2" style="side" id="/chunks/202.xml">
        <xi:include xmlns:xi="http://www.w3.org/2001/XInclude";  
href="/chunks/202.xml"/>
</nav:navigation>

(note the xinclude, this actually doesn't get processed right away, so in 
fact there's no XSP in this example). Later on I have an XSLT stylesheet that 
picks up the <nav:navigation/> tag and does whatever with it. Basically the 
XSLT that builds my page just does an 

<xsl:apply-templates select="/page/node()">
<xsl:apply-templates/>
</xsl:apply-templates>

which "pulls" in all the components. Then there are just a bunch of standard 
templates that generate HTML or whatever out of them. The chunkid, order, and 
style attributes on each chunk can be used to massage how they are presented 
on individual pages, and I even have a simple web based page editor that lets 
me just whip up pages without really doing much actual coding.

If you have a component that uses XSP, then its no big deal, you just have to 
have an XSLT template that knows how to do something with whatever it spits 
out (in the simplest case if your XSP taglib outputs HTML then you can just 
copy the nodes with XSLT, skipping the component-level 'wrapper' tag. 

> TIA,
>
> Todd W.
>
>
> __________________________________________________________________
> The NEW Netscape 7.0 browser is now available. Upgrade now!
> http://channels.netscape.com/ns/browsers/download.jsp
>
> Get your own FREE, personal Netscape Mail account today at
> http://webmail.netscape.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

Reply via email to