Return-Path:
Delivered-To: apmail-xml-cocoon-cvs-archive@xml.apache.org
Received: (qmail 58502 invoked by uid 500); 2 May 2002 04:54:58 -0000
Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm
Precedence: bulk
Reply-To: cocoon-dev@xml.apache.org
list-help:
list-unsubscribe:
list-post:
Delivered-To: mailing list cocoon-cvs@xml.apache.org
Received: (qmail 58493 invoked by uid 500); 2 May 2002 04:54:58 -0000
Delivered-To: apmail-xml-cocoon2-cvs@apache.org
Date: 2 May 2002 04:54:56 -0000
Message-ID: <20020502045456.33916.qmail@icarus.apache.org>
From: crossley@apache.org
To: xml-cocoon2-cvs@apache.org
Subject: cvs commit: xml-cocoon2/src/documentation/xdocs/userdocs/generators
file-generator.xml
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
crossley 02/05/01 21:54:56
Modified: src/documentation/xdocs faq.xml
src/documentation/xdocs/userdocs/concepts sitemap.xml
src/documentation/xdocs/userdocs/generators
file-generator.xml
Log:
Added explanation and clarification of file:// URLs.
Obtained from: J.Pietschmann
Revision Changes Path
1.9 +27 -8 xml-cocoon2/src/documentation/xdocs/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/faq.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- faq.xml 30 Apr 2002 07:47:36 -0000 1.8
+++ faq.xml 2 May 2002 04:54:56 -0000 1.9
@@ -147,7 +147,7 @@
Cocoon uses an initial parameter in the "web.xml" file to automatically load
classes on startup. This way, the class is loaded only once and the server's
time is spent doing more productive things. Make sure the following entry
- is in your "web.xml" file:
+ is in your "web.xml" file.
-
The "file:" type of source forces Cocoon to search the sub-sitemap under
- the specified directory (which happens to be "c:\foo", since this is a
- Windows system).
+
The "file:" type of source instructs Cocoon to search the sub-sitemap
+ under the specified directory (which happens to be "c:\foo", since this
+ is a Windows system). See explanation of
+ file: URLs
Now, you just need to copy everything which was under the
webapps/cocoon/foo directory to the /foo directory, and it should work
@@ -568,7 +569,7 @@
-
- The src attribute may have to include "file://"
-
@@ -789,6 +787,27 @@
Contribution page. It also explains how to get branches other than the
current HEAD branch.
+
+
+
+
+
+ What is the syntax for absolute filesystem pathnames.
+
+
+
+ In your sitemaps you may need to refer to some resource that is outside
+ the webapp context (e.g. UNIX /foo/bar/this.xsl
+ e.g. Windows C:\foo\bar\this.xsl). You need to use the file: convention.
+
+
+
UNIX ... file:///foo/bar/this.xsl
+
Windows ... file:///C:/foo/bar/this.xsl
+
+
+ See further explanation of
+ file: URLs
+
1.4 +27 -1 xml-cocoon2/src/documentation/xdocs/userdocs/concepts/sitemap.xml
Index: sitemap.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/concepts/sitemap.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- sitemap.xml 23 Feb 2002 16:47:39 -0000 1.3
+++ sitemap.xml 2 May 2002 04:54:56 -0000 1.4
@@ -620,7 +620,7 @@
coming from a jar via http connection.
- Use file://foo/bar to merge in xml content from the filesystem.
+ Use file:///foo/bar to merge in xml content from the filesystem.
Use xmldb:<your driver here>://your.xmldb.host/db/foo/bar to merge in xml content from a XML:DB compliant database.
@@ -920,6 +920,32 @@
+
+
+
+
+
+ In your sitemaps you may need to refer to some resource that is outside
+ the webapp context (e.g. UNIX /foo/bar/this.xsl
+ e.g. Windows C:\foo\bar\this.xsl). You need to use the file: convention
+ with the following syntax for absolute filesystem pathnames.
+
+
+
+
UNIX ... file:///foo/bar/this.xsl
+
Windows ... file:///C:/foo/bar/this.xsl
+
+
+
+ Everything starting with a URI scheme identifer like "file:"
+ or "http:" is an absolute URI. An absolute file URL is
+ file://some.host/some/path/to/file.ext
+
+
+
+ The host can be omitted, defaulting to localhost, so you can write
+ file:///some/path/to/file.ext
+