You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2005/10/01 01:37:46 UTC
svn commit: r292873 -
/forrest/trunk/site-author/content/xdocs/docs_0_80/locationmap.xml
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>