Don't require that the path of CSS and JavaScript resources contains 'css' or 'javascript', resp.
git-svn-id: https://svn.apache.org/repos/asf/lenya/branches/BRANCH_1_2_X@695777 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/webapp/lenya/resources-shared.xmap b/src/webapp/lenya/resources-shared.xmap
index aab74dd..91cffa0 100644
--- a/src/webapp/lenya/resources-shared.xmap
+++ b/src/webapp/lenya/resources-shared.xmap
@@ -26,21 +26,21 @@
<!-- Lenya Publications -->
- <!-- matches pub-id/area/css/*.css -->
- <map:match pattern="*/*/css/*.css">
- <map:act type="resource-exists" src="pubs/{1}/resources/shared/css/{3}.xml">
- <map:generate src="pubs/{../1}/resources/shared/css/{../3}.xml"/>
+ <!-- matches pub-id/area/**.css -->
+ <map:match pattern="*/*/**.css">
+ <map:act type="resource-exists" src="pubs/{1}/resources/shared/{3}.xml">
+ <map:generate src="pubs/{../1}/resources/shared/{../3}.xml"/>
<map:transform src="resources/css/css.xsl">
<map:parameter name="contextprefix" value="{request:contextPath}"/>
</map:transform>
<map:serialize type="text" mime-type="text/css"/>
</map:act>
- <map:read src="pubs/{1}/resources/shared/css/{3}.css" mime-type="text/css" />
+ <map:read src="pubs/{1}/resources/shared/{3}.css" mime-type="text/css" />
</map:match>
- <!-- matches pub-id/area/javascript/**.js -->
- <map:match pattern="*/*/javascript/**.js">
- <map:read src="pubs/{1}/resources/shared/javascript/{3}.js" mime-type="application/x-javascript" />
+ <!-- matches pub-id/area/**.js -->
+ <map:match pattern="*/*/**.js">
+ <map:read src="pubs/{1}/resources/shared/{3}.js" mime-type="application/x-javascript" />
</map:match>
<!-- matches pub-id/area/**.jpg -->