svn commit: r631444 - in /lenya/sandbox/modules/docustyle: sitemap.xmap xslt/beforeCache.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Tue Feb 26 16:53:48 2008
New Revision: 631444

URL: http://svn.apache.org/viewvc?rev=631444&view=rev
Log:
Deliver resources from docustyle module inside the area URL space.

Modified:
    lenya/sandbox/modules/docustyle/sitemap.xmap
    lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl

Modified: lenya/sandbox/modules/docustyle/sitemap.xmap
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/docustyle/sitemap.xmap?rev=631444&r1=631443&r2=631444&view=diff
==============================================================================
--- lenya/sandbox/modules/docustyle/sitemap.xmap (original)
+++ lenya/sandbox/modules/docustyle/sitemap.xmap Tue Feb 26 16:53:48 2008
@@ -44,6 +44,19 @@
     <!-- This pipeline handles helper requests and metadata, not the actual publication documents -->
     <map:pipeline>
       
+      <map:match pattern="*/docustyle/**.css">
+        <map:generate type="text" src="fallback://lenya/modules/docustyle/resources/{2}.css"/>
+        <map:transform type="pattern" src="fallback://lenya/chaperon/grammars/link.xlex"/>
+        <map:transform src="fallback://lenya/chaperon/stylesheets/pattern-to-link.xsl"/>
+        <map:transform type="proxy"/>
+        <map:transform src="fallback://lenya/chaperon/stylesheets/a-to-txt.xsl"/>
+        <map:serialize type="text" mime-type="text/css"/>
+      </map:match>
+      
+      <map:match pattern="*/docustyle/**.png">
+        <map:read mime-type="image/png" src="fallback://lenya/modules/docustyle/resources/{2}.png"/>
+      </map:match>
+      
       <!-- FIXME: this should be merged with the getDoctypeXSLT/* matcher below. currently, it is necessary
         so that "getDoctypeXSLT/" requests do not get eaten by the **/ matcher below. 
         Plus it should be moved to an internal-only pipeline.
@@ -159,7 +172,9 @@
           </map:otherwise>
         </map:select>
         <map:transform src="fallback://lenya/xslt/util/strip_namespaces.xsl"/>
-        <map:transform type="proxy"/>
+        <map:transform type="proxy">
+          <map:parameter name="urls" value="relative"/>
+        </map:transform>
         
         <map:act type="language-exists">
           <map:serialize type="xhtml"/>

Modified: lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl?rev=631444&r1=631443&r2=631444&view=diff
==============================================================================
--- lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl (original)
+++ lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl Tue Feb 26 16:53:48 2008
@@ -39,7 +39,7 @@
   <xsl:template match="/*">
     <html>
       <head>
-        <link rel="stylesheet" href="/modules/docustyle/css/page.css" type="text/css"/>
+        <link rel="stylesheet" href="/{$pub}/{$area}/docustyle/css/page.css" type="text/css"/>
         <meta content="Apache Lenya" name="generator"/>
         
         <title><meta:value element="title" ns="http://purl.org/dc/elements/1.1/" default="error-404"
@@ -68,7 +68,7 @@
             </div>
             <div id="logo">
               <div id="projectLogo">
-                <a href="/{$pub}/{$area}/"><img src="/modules/docustyle/images/project-logo-small.png" alt="project logo"/></a>
+                <a href="/{$pub}/{$area}/"><img src="/{$pub}/{$area}/docustyle/images/project-logo-small.png" alt="project logo"/></a>
               </div>
               <div id="tagline">Open Source Content Management</div>
             </div>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.