forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From twilli...@apache.org
Subject svn commit: r264669 - /forrest/trunk/main/fresh-site/src/documentation/content/locationmap.xml
Date Tue, 30 Aug 2005 01:44:52 GMT
Author: twilliams
Date: Mon Aug 29 18:44:41 2005
New Revision: 264669

URL: http://svn.apache.org/viewcvs?rev=264669&view=rev
Log:
Documenting some of the locationmap syntax as comments/examples until it can be done more
formally.

Modified:
    forrest/trunk/main/fresh-site/src/documentation/content/locationmap.xml

Modified: forrest/trunk/main/fresh-site/src/documentation/content/locationmap.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/main/fresh-site/src/documentation/content/locationmap.xml?rev=264669&r1=264668&r2=264669&view=diff
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/content/locationmap.xml (original)
+++ forrest/trunk/main/fresh-site/src/documentation/content/locationmap.xml Mon Aug 29 18:44:41
2005
@@ -15,28 +15,52 @@
   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"/>
+      <matcher name="lm" src="org.apache.forrest.locationmap.WildcardLocationMapHintMatcher"/>
     </matchers>
+    <!--
+      * Can contain any sitemap selector with the following syntax. * 
+    <selectors default="exists">
+          <selector name="exists" logger="sitemap.selector.exists"  
+                    src="org.apache.forrest.sourceexists.SourceExistsSelector" />
+    </selectors>
+    -->
   </components>
   
+  <!--
+    * Can contain a mount statement as a sibling to components and locator *
+    <mount src="somelocation.xml"/>
+  -->
+  
   <locator>
+    <!--
+      * Can contain a mount within a selector where a selector is valid. 
+    <select>
+      <mount src="somelocation.xml"/>
+    </select>
+    -->
 
+    <match pattern="rewriteDemo/**">
+      <location src="http://www.burrokeet.org/{1}.xml"/>
+    </match>
+    <match pattern="remoteDemo/**.xml">
+      <location src="http://svn.apache.org/repos/asf/forrest/trunk/site-author/content/xdocs/{1}.xml"/>
+    </match>
+    
    
-	   <match pattern="rewriteDemo/**">
-	     <location src="http://www.burrokeet.org/{1}.xml" />
-	   </match>
-	   <match pattern="remoteDemo/**.xml">
-	     <location src="http://svn.apache.org/repos/asf/forrest/trunk/site-author/content/xdocs/{1}.xml"
/>
-	   </match>
-     
-	   <!--
+    <!-- 
+      * Can use a selector inside a match.  *
+    <match pattern="somepattern/**">
+      <select>
+        <location src="first-location-attempted"/>
+        <location src="second-location-attempted"/>
+        <location src="third-location-attepted"/>
+      </select>
+    </match>
+  -->
+    <!--
      To locate all your source documents in a slide repository you can do:
      
 	   <match pattern="tabs.xml">
@@ -49,6 +73,5 @@
 	   	<location src="http://127.0.0.1:8080/slide/files/{1}.xml"/>
 	   </match>
      -->
- 
   </locator>
 </locationmap>



Mime
View raw message