forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r411130 - /forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/linking.xml
Date Fri, 02 Jun 2006 11:31:52 GMT
Author: crossley
Date: Fri Jun  2 04:31:51 2006
New Revision: 411130

URL: http://svn.apache.org/viewvc?rev=411130&view=rev
Log:
Improve the SVG example.
Add example for src="images/icon-a.png"

Modified:
    forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/linking.xml

Modified: forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/linking.xml
URL: http://svn.apache.org/viewvc/forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/linking.xml?rev=411130&r1=411129&r2=411130&view=diff
==============================================================================
--- forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/linking.xml (original)
+++ forrest/trunk/main/fresh-site/src/documentation/content/xdocs/samples/linking.xml Fri
Jun  2 04:31:51 2006
@@ -372,7 +372,10 @@
         default location (which is usually src/documentation/resources/images/),
         then in the old default location (src/documentation/content/xdocs/images/),
         then relative to the root of your xdocs.</p>
-      <p>So here is the effect of the various image links in source documents ...
+      <p>
+        The document author specifies the final image locations with these various
+        "<code>src=</code>" links. Behind-the-scenes Cocoon handles the requests
+        using the sitemap and locationmap.
       </p>
       <ol>
         <li>
@@ -394,6 +397,11 @@
           This supports backward-compatibility for this old default location.
         </li>
         <li>
+          <img src="images/icon-a.png" alt="Icon" />
+          <code>&lt;img src="images/icon-a.png"</code>
+          ... same as example 1 above. Except this time the generated image is relative to
the document.
+        </li>
+        <li>
           <img src="../images/icon-a.png" alt="Icon" />
           <code>&lt;img src="../images/icon-a.png"</code>
           ... Relative reference. Forrest "absolutizes" the URLs to be like the URLs
@@ -423,15 +431,16 @@
           ... Magic.
           The source file is found in src/documentation/resources/images/ directory.
         </li>
-        <li>
-          <img src="/images/ellipse-2.png" alt="Icon" />
-          <code>&lt;img src="/images/ellipse-2.png"</code>
-          ... SVG Magic. Cocoon tried the various locations for an image called
-          ellipse-2.png but did not find one anywhere. So it looked again for a corresponding
-          ellipse-2.svg and generated the PNG image on-the-fly.
-          The source file is found in src/documentation/resources/images/ directory.
-        </li>
       </ol>
+      <p>There is also SVG magic.</p>
+      <p>
+        <img src="/images/ellipse-2.png" alt="Icon" />
+        <code>&lt;img src="/images/ellipse-2.png"</code>
+        ... Cocoon tried the various locations for an image called
+        ellipse-2.png but did not find one anywhere. So it looked again for a corresponding
+        ellipse-2.svg and generated the PNG image on-the-fly.
+        The source file is found in src/documentation/resources/images/ directory.
+      </p>
     </section>
   </body>
 </document>



Mime
View raw message