Sjur Moshagen wrote: > skrev Sina Khakbaz Heshmati: > > > >As far as such references are concerned in XSLT stylesheets, how > >about using fully qualified URLs and resolve those URLs using XML > >Catalogs.
That should work. Have you tried? It would be good to show an example of that technique in the sample site. > > *At least* two reasons why this is worth considering: > > > >(1) Results in more natural XSLT stylesheets for those reading -- > >debugging-- the stylesheet. No-one knows what the lm: is but almost > >everyone knows HTTP. And many people are confused by XML Catalogs too. The location map is fantastic once one gets to grips with it. But yes, agreed that it is hard to debug and to follow. > >(2) Most XSLT stylesheets are likely to be used in alternate > >environments where locationmap is not necessarily present. Yes, but this lm technique can be used on Forrest-specific stylesheet imports. > This is not about using stylesheets, only about finding a way to look > up a file that both is understandable by the xslt processor (from > Cocoon, on which Forrest is built) and fits reasonably well within the > existing forrest infrastructure. Stylesheets will have references to be resolved. Both techniques should work. I am hoping that once the first stylesheet is located then any other imports with local hrefs will be found. -David