Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change 
notification.

The following page has been changed by GregorRothfuss:
http://wiki.apache.org/lenya/LenyaSourceFactory

The comment on the change is:
moved to lenya docs

------------------------------------------------------------------------------
- = The "lenya:" scheme =
+ deleted
  
- When reading the sitemaps in Lenya 1.4 you probably came across the 
lenya-scheme, often also referred to as the lenya protocol. For example, in the 
doctypes.xmap, you will find this section:
- 
- {{{
-       <!-- parametrized doctype matcher -->
-       <!-- pattern="{rendertype}/{area}/{doctype}/{document-path}" -->
-       <map:match pattern="*/*/*/**.xml">
-         <map:generate src="lenya:/{4}.xml"/>
-         <map:transform src="fallback://xslt/{3}2xhtml.xsl">
- }}}
- 
- The lenya: scheme just needs the document path to locate the source document, 
i.e. lenya:/concepts/index_en.xml. All other elements of the actual storage 
location of the document (publication id and area) will be read from the page 
envelope and interpreted in the LenyaSourceFactory.
- 
- In other words: The lenya: scheme hides the storage implementation details 
from the sitemap.
- 
- == What is a scheme? ==
- 
- The lenya scheme is a virtual protocol in Cocoon, similar to the cocoon and 
context scheme.
- 
- Note: In case you are not familiar with the latest official naming of the 
components of a URI or you still think that a URL is the same as a URI, please 
read this: [http://www.bernzilla.com/item.php?id=100].
- 
- The two sentence summary:
- 
- The URI http://lenya.apache.org/ is a URL. The URL is a special case of a 
URI. "http" is the scheme, which in a URL referes directly to a TCP/IP 
protocol. The part left of the colon (http) defines how the part right of the 
colon (//lenya.apache.org/) is to be interpreted by selecting an appropriate 
handler.
- 
- The JDK provides build-in mechanisms to handle many common schemes such as 
file, http, ftp and some more. But Cocoon adds an additional layer through its 
Excalibur SourceResolver system, see: 
[http://excalibur.apache.org/sourceresolve/index.html].
- 
- Lenya hooks in there with the LenyaSourceFactory which defines the lenya 
schema. The actual implementation is in the 
org.apache.lenya.cms.cocoon.source.LenyaSourceFactory class, see
- 
-  * 
[http://lenya.apache.org/apidocs/1.4/org/apache/lenya/cms/cocoon/source/LenyaSourceFactory.html]
-  * 
[http://svn.apache.org/viewcvs.cgi/lenya/trunk/src/java/org/apache/lenya/cms/cocoon/source/LenyaSourceFactory.java?rev=152682&view=log]
- 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to