forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 21081 - in forrest/site: dtd entity
Date Fri, 11 Jun 2004 08:09:27 GMT
Author: crossley
Date: Fri Jun 11 01:09:26 2004
New Revision: 21081

Added:
   forrest/site/dtd/
   forrest/site/dtd/.htaccess   (contents, props changed)
   forrest/site/dtd/readme.txt   (contents, props changed)
   forrest/site/entity/
   forrest/site/entity/.htaccess   (contents, props changed)
   forrest/site/entity/readme.txt   (contents, props changed)
Log:
Adding initial .htaccess files to enable impoverished XML tools
that do not use the Catalog Entity Resolver to get DTDs.
This .htacess still needs further development.
Issue: FOR-107


Added: forrest/site/dtd/.htaccess
==============================================================================
--- (empty file)
+++ forrest/site/dtd/.htaccess	Fri Jun 11 01:09:26 2004
@@ -0,0 +1,51 @@
+# The reason for this .htaccess is to deliver DTDs and associated resources
+# to some impoverished XML tools that do not use the Catalog Entity Resolver.
+# We do make every effort to encourage the latter. See ./index.html
+# 
+#--------------------------------------------------------------------------
+# NOTE: There is a problem with getting the correct media-types ...
+# http://svn.apache.org/repos/asf/forrest/trunk/.../*.dtd
+# Currently the server just delivers text/plain
+# We can do 'svn propset svn:mime-type' for the *.dtd etc.
+# which will cause them to be delivered properly.
+# However there is an Issue for SVN (#1233) whereby the files will be seen
+# by SVN as binary, hence no diffs.
+# Please vote for http://subversion.tigris.org/issues/show_bug.cgi?id=1233
+# 
+# So the workaround is to use ViewCVS to explicity set the media-type.
+#--------------------------------------------------------------------------
+
+# Get the content straight out of ViewCVS and use the appropriate media type:
+# See http://www.faqs.org/rfcs/rfc3023.html
+# FIXME: Verify these media types and maybe add charset
+#
+RewriteEngine On
+RewriteRule "(.*)\.dtd$" "http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/trunk/src/core/context/resources/schema/dtd/$1.dtd?content-type=application/xml-dtd&root=Apache-SVN"
[P]
+RewriteRule "(.*)\.mod$" "http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/trunk/src/core/context/resources/schema/dtd/$1.mod?content-type=application/xml-dtd&root=Apache-SVN"
[P]
+RewriteRule "(.*)\.pen$" "http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/trunk/src/core/context/resources/schema/dtd/$1.pen?content-type=application/xml-external-parsed-entity&root=Apache-SVN"
[P]
+RewriteRule "(.*)\.ent$" "http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/trunk/src/core/context/resources/schema/dtd/$1.ent?content-type=application/xml-external-parsed-entity&root=Apache-SVN"
[P]
+
+#--------------------------------------------------------------------------
+# NOTE: The following was suggested by someone to the forrest-dev
+# and not yet investigated.
+#--------------------------------------------------------------------------
+
+# FIXME: Is this Proxy stuff sufficient?
+
+# FIXME: Cache stuff is not yet working
+#
+## Now, since ViewCVS is slower than httpd, make sure we cache it
+#CacheEnable mem /dtd
+
+## for a day
+#CacheDefaultExpire 86400
+#  MCacheSize 4096
+#  MCacheMaxObjectCount 100
+#  MCacheMinObjectSize 1
+#  MCacheMaxObjectSize 2048
+
+## and in case your client is a good web citizen, tell the proxies
+## to avoid calling us, since we guarantee that the content is fresh
+## for a day
+#ExpiresActive On
+#ExpiresDefault "access plus 1 day"

Added: forrest/site/dtd/readme.txt
==============================================================================
--- (empty file)
+++ forrest/site/dtd/readme.txt	Fri Jun 11 01:09:26 2004
@@ -0,0 +1,7 @@
+There is a .htaccess in this directory.
+Its purpose is to deliver DTDs and associated resources to some
+impoverished XML tools that do not use the Catalog Entity Resolver.
+
+FIXME: There are similar .htaccess at both
+forrest.apache.org/dtd/ and forrest.apache.org/entity/
+until we merge the entity sets into the /dtd/ directory.

Added: forrest/site/entity/.htaccess
==============================================================================
--- (empty file)
+++ forrest/site/entity/.htaccess	Fri Jun 11 01:09:26 2004
@@ -0,0 +1,10 @@
+# The reason for this .htaccess is to deliver DTDs and associated resources
+# to some impoverished XML tools that do not use the Catalog Entity Resolver.
+# We do make every effort to encourage the latter. See ./index.html
+# 
+#--------------------------------------------------------------------------
+# NOTE: See the discussion in ../dtd/.htaccess
+#--------------------------------------------------------------------------
+
+RewriteEngine On
+RewriteRule "(.*)\.pen$" "http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/trunk/src/core/context/resources/schema/entity/$1.pen?content-type=application/xml-external-parsed-entity&root=Apache-SVN"
[P]

Added: forrest/site/entity/readme.txt
==============================================================================
--- (empty file)
+++ forrest/site/entity/readme.txt	Fri Jun 11 01:09:26 2004
@@ -0,0 +1,7 @@
+There is a .htaccess in this directory.
+Its purpose is to deliver DTDs and associated resources to some
+impoverished XML tools that do not use the Catalog Entity Resolver.
+
+FIXME: There are similar .htaccess at both
+forrest.apache.org/dtd/ and forrest.apache.org/entity/
+until we merge the entity sets into the /dtd/ directory.

Mime
View raw message