It seems to me that me may consider using a locationmap for the below
stated example and not another protocol. 

http://marc.theaimsgroup.com/?l=forrest-dev&m=110656404918792&w=2

We are implementing it ATM over in forrest and it is pretty need. I also
installed the locationmap once in 1.2.x in a customer project. It is
working very nice. 

salu2
thorsten

On Thu, 2005-07-14 at 09:58 +0200, Andreas Hartmann wrote:
> Doug Chestnut wrote:
> > Playing around with Publication Templates, I have found that it would be 
> > really nice to have something like a parent:// | ancestor:// | 
> > fallbackfromparent:// protocol.  It would do something like this:
> > 
> > 1. context://lenya/pubs/template(my-pub)/xslt/page2xhtml.xsl
> > 2. context://lenya/pubs/template(template(my-pub))/xslt/page2xhtml.xsl
> > 3. ...
> > 4. context://xslt/page2xhtml.xsl
> 
> Actually I had the same in mind :)
> 
> <quote 
> src="http://lenya.apache.org/1_4/reference/publication-templating/index.html";>
>    To simplify overriding of XSLT stylesheets, it would be useful to import
>    the template stylesheet. For this purpose, an additional template source
>    factory could be used, which skips the current publication when resolving
>    the file:
> 
>    <xsl:import href="template://template/xslt/common/header.xsl"/>
> </quote>
> 
> 
> [...]
> 
> > <xsl:import href="parent://xslt/page2xhtml-xhtml.xsl"/>
> 
> That would certainly make sense.
> 
> I've read Gregor's suggestion on expanding variables, I'm not sure which
> approach to prefer.
> 
> 
> > example 2 (xhtml.css and resources-shared.xmap):
> > 
> >   xhtml.css:
> > 
> > @import url(xhtml.parent.css);
>  >
> > body {
> >         margin: 0px;
> >         padding: 0px;
> >         background: #F6D897;
> >         font-size: 90%;
> > }
> > 
> >    resources-shared.xmap:
> >       <map:match pattern="*/*/css/*.parent.css">
> >         <map:read src="parent://resources/shared/css/{3}.css" 
> > mime-type="text/css" />
> >       </map:match>
> 
> That looks very nice!
> 
> -- Andreas
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


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

Reply via email to