forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r292873 - /forrest/trunk/site-author/content/xdocs/docs_0_80/locationmap.xml
Date Fri, 30 Sep 2005 23:37:46 GMT
Author: rgardler
Date: Fri Sep 30 16:37:39 2005
New Revision: 292873

URL: http://svn.apache.org/viewcvs?rev=292873&view=rev
Log:
Add note on using select in locationmap

Modified:
    forrest/trunk/site-author/content/xdocs/docs_0_80/locationmap.xml

Modified: forrest/trunk/site-author/content/xdocs/docs_0_80/locationmap.xml
URL: http://svn.apache.org/viewcvs/forrest/trunk/site-author/content/xdocs/docs_0_80/locationmap.xml?rev=292873&r1=292872&r2=292873&view=diff
==============================================================================
--- forrest/trunk/site-author/content/xdocs/docs_0_80/locationmap.xml (original)
+++ forrest/trunk/site-author/content/xdocs/docs_0_80/locationmap.xml Fri Sep 30 16:37:39
2005
@@ -101,6 +101,24 @@
 graphic.png.project-logo
       </source>
   </section>
+  
+  <section id="selector">
+    <title>Location Selectors</title>
+    <p>You can define multiple possble locations for a file in the locationmap
+    with the following code:
+    
+    <source><![CDATA[
+<match pattern="tabs.xml">
+  <select type="exists">      
+    <location src="{project:content.xdocs}tabs1.xml"/>
+    <location src="{project:content.xdocs}tabs2.xml"/>
+  </select>   
+</match>
+    ]]></source>
+    
+    <p>Each location will be tested in turn, if the file exists then it will be returned
+    as a match, otherwise testing will continue.</p>
+  </section>
     
     <section id="examples">
       <title>Locationmap Examples</title>



Mime
View raw message