Author: bdelacretaz
Date: Fri May 17 08:49:15 2013
New Revision: 1483692

URL: http://svn.apache.org/r1483692
Log:
Fix ScriptSelectionTest URL

Modified:
    
sling/site/trunk/content/documentation/the-sling-engine/url-to-script-resolution.mdtext

Modified: 
sling/site/trunk/content/documentation/the-sling-engine/url-to-script-resolution.mdtext
URL: 
http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/the-sling-engine/url-to-script-resolution.mdtext?rev=1483692&r1=1483691&r2=1483692&view=diff
==============================================================================
--- 
sling/site/trunk/content/documentation/the-sling-engine/url-to-script-resolution.mdtext
 (original)
+++ 
sling/site/trunk/content/documentation/the-sling-engine/url-to-script-resolution.mdtext
 Fri May 17 08:49:15 2013
@@ -1,18 +1,21 @@
 Title: URL to Script Resolution
 
-<div class="info">
-This page is currently a copy from [this mailing list 
thread](http://markmail.org/message/tksvk4xfwapdpkwo). See also 
[SLING-387|https://issues.apache.org/jira/browse/SLING-387] and the unit test 
[ScriptSelectionTest.java](http://svn.apache.org/repos/asf/incubator/sling/trunk/servlets/resolver/src/test/java/org/apache/sling/servlets/resolver/helper/ScriptSelectionTest.java).
-</div>
-
 [TOC]
 
-This page explains how Sling maps URLs to a script or and servlet. First of 
all Sling looks up the resource identified by the URL - typically a path inside 
the JCR repository, which is annotated by the `sling:resourceType` property 
which defines the resource type of that resource. Using this resource type 
(which is kind of a relative path, eg. "myblog/comment"), scripts or servlets 
are looked up. 
+This page explains how Sling maps URLs to a script or and servlet. First of 
all Sling looks up the resource identified 
+by the URL - typically a path inside the JCR repository, which is annotated by 
the `sling:resourceType` property 
+which defines the resource type of that resource. Using this resource type 
(which is kind of a relative path, 
+eg. "myblog/comment"), scripts or servlets are looked up. 
+
+Scripts and servlets are itself resource in Sling and thus have a resource 
path: this is either the location in the 
+JCR repository, the resource type in a servlet component configuration or the 
"virtual" bundle resource path 
+(if a script is provided inside a bundle without being installed into the JCR 
repository). 
 
-Scripts and servlets are itself resource in Sling and thus have a resource 
path: this is either the location in the JCR repository, the resource type in a 
servlet component configuration or the "virtual" bundle resource path (if a 
script is provided inside a bundle without being installed into the JCR 
repository). 
+For the Whole Truth about script resolution, see the [ScriptSelectionTest][1] 
class. If you see interesting cases that are not
+covered there, please let us know via the Sling users mailing list.
 
 TODO: explain super types, servlet path mappings, node type resource types 
(`my:type -> my/type`) 
 
-
 ##  Fundamental: Scripts and Servlets are equal 
 
 In the following discussion, I will write about scripts. This will always 
include servlets as well. In fact, internally, Sling only handles with 
Servlets, whereas scripts are packed inside a Servlet wrapping and representing 
the script. 
@@ -96,3 +99,6 @@ Taking up again the list of potential sc
     
 The priority of script selection would (6) - (4) - (5) - (3) - (2) - (1) - 
(0). Note that (4) is a better match than (5) because it matches more selectors 
even though (5) has an extension match where (4) does not.
     
+
+
+  [1]: 
http://svn.apache.org/repos/asf/sling/trunk/bundles/servlets/resolver/src/test/java/org/apache/sling/servlets/resolver/internal/helper/ScriptSelectionTest.java
\ No newline at end of file


Reply via email to