El jue, 19-01-2006 a las 13:34 +0100, Andreas Hartmann escribió:
> Thorsten Scherler wrote:
> > El jue, 19-01-2006 a las 11:29 +0100, Felix Röthenbacher escribió:
> > 
> >>Thorsten Scherler wrote:
> >>
> > ...
> > 
> >>>Were else the locationmap let the *user* define the location and the
> >>>"to-be-used" fallbacks:
> >>><match pattern="tabs.xml">
> >>>  <select type="exists">      
> >>>    <location src="{project:content.xdocs}tabs1.xml"/>
> >>>    <location src="{project:content.xdocs}tabs2.xml"/>
> >>>  </select>   
> >>></match>
> >>>
> > ...
> > 
> >>Can you give an example how Lenya's templating hierarchy will look like
> >>implemented with the locationmap protocol?
> >>
> >>Thanks, Felix
> > 
> > 
> > I will try but no guarantee that it is correct, since I could not find
> > any documentation about fallback in our official docu (hint, hint). ;-)
> 
> http://lenya.apache.org/1_4/reference/publication-templating/index.html#The+Concept+of+Publication+Templating
> 
> BTW, there's apparently a mistake in the docs (see point 5).

Ok, thx for pointing this out. Actually I expected it in 
http://lenya.apache.org/1_4/reference/protocols/index.html

Maybe it makes sense to either add a link there too or move the fallback
part there.

> It should read (I'll fix it):
> 
> 1. context://lenya/pubs/my-pub/xslt/page2xhtml.xsl
> 2. context://lenya/pubs/template(my-pub)/xslt/page2xhtml.xsl
> 3. context://lenya/pubs/template(template(my-pub))/xslt/page2xhtml.xsl
> 4. ...
> 5. context://lenya/xslt/page2xhtml.xsl
> 

ok, that will slightly change my example but the concept is the same.

> 
> > <match pattern="fallback.**">
> >   <select type="exists">      
> >     <location src="context://{lenya:pubId}/lenya/**"/>
> 
> >     <location src="context://{lenya:pubId}/**"/>
> 
> No, this one has to be omitted.
> 
> >     <location src="context://lenya/**"/>
> 
> >     <location src="context://**"/>
> 
> This one can be omitted as well.

salu2
-- 
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