Author: rgardler
Date: Fri Jan 13 07:44:25 2006
New Revision: 368759
URL: http://svn.apache.org/viewcvs?rev=368759&view=rev
Log:
use locationmap (for-726)
Added:
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/locationmap.xml
(with props)
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/resources/stylesheets/dir-to-galleryIndexPage.xsl
- copied unchanged from r368705,
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/resources/stylesheets/galleryIndexPage.xsl
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/resources/stylesheets/dir-to-galleryPicture.xsl
- copied unchanged from r368705,
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/resources/stylesheets/galleryPicture.xsl
Removed:
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/resources/stylesheets/galleryIndexPage.xsl
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/resources/stylesheets/galleryPicture.xsl
Modified:
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/input.xmap
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/status.xml
Modified:
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/input.xmap
URL:
http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/input.xmap?rev=368759&r1=368758&r2=368759&view=diff
==============================================================================
---
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/input.xmap
(original)
+++
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/input.xmap
Fri Jan 13 07:44:25 2006
@@ -42,7 +42,7 @@
<map:part src="cocoon:/gallery/{1}/dir.xml" />
<!-- <map:part src="cocoon:/gallery/{1}/comment.xml" /> -->
</map:aggregate>
- <map:transform src="resources/stylesheets/galleryIndexPage.xsl">
+ <map:transform src="{lm:photoGallery.transform.dir.galleryIndexPage}">
<map:parameter name="page" value="{2}" />
<map:parameter name="rows" value="5" />
<map:parameter name="cols" value="4" />
@@ -52,7 +52,7 @@
<map:match pattern="gallery/**/pic_*.xml">
<map:generate src="cocoon:/gallery/{1}/dir.xml"/>
- <map:transform src="resources/stylesheets/galleryPicture.xsl">
+ <map:transform src="{lm:photoGallery.transform.dir.galleryPicture}">
<map:parameter name="pos" value="{2}" />
<map:parameter name="big" value="0" />
</map:transform>
@@ -61,7 +61,7 @@
<map:match pattern="gallery/**/fullPic_*.xml">
<map:generate src="cocoon:/gallery/{1}/dir.xml"/>
- <map:transform src="resources/stylesheets/galleryPicture.xsl">
+ <map:transform src="{lm:photoGallery.transform.dir.galleryPicture}">
<map:parameter name="pos" value="{2}" />
<map:parameter name="big" value="1" />
</map:transform>
Added:
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/locationmap.xml
URL:
http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/locationmap.xml?rev=368759&view=auto
==============================================================================
---
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/locationmap.xml
(added)
+++
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/locationmap.xml
Fri Jan 13 07:44:25 2006
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright 2002-2005 The Apache Software Foundation or its licensors,
+ as applicable.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<locationmap xmlns="http://apache.org/forrest/locationmap/1.0">
+
+ <components>
+ <matchers default="lm">
+ <matcher
+ name="lm"
+ src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
+ </matchers>
+ <selectors default="exists">
+ <selector name="exists" logger="sitemap.selector.exists"
+ src="org.apache.forrest.sourceexists.SourceExistsSelector"
/>
+ </selectors>
+ </components>
+
+ <locator>
+ <match pattern="photoGallery.transform.*.*">
+ <location src="resources/stylesheets/{1}-to-{2}.xsl" />
+ </match>
+ </locator>
+</locationmap>
Propchange:
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/locationmap.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified:
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/status.xml
URL:
http://svn.apache.org/viewcvs/forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/status.xml?rev=368759&r1=368758&r2=368759&view=diff
==============================================================================
---
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/status.xml
(original)
+++
forrest/trunk/plugins/org.apache.forrest.plugin.input.PhotoGallery/status.xml
Fri Jan 13 07:44:25 2006
@@ -19,8 +19,9 @@
<changes>
<release version="0.2-dev" date="unreleased">
- <action dev="RDG" type="fix" context="docs" importance="high">
- Use locationmap.
+ <action type="add" context="code" dev="RDG">
+ Use locationmap for resolution of resources and files. Resources are
exposed via
+ {lm:photoGallery.*}
</action>
</release>