- tabs in preamble
[packages/cocoon.git] / cocoon-properties
CommitLineData
682beb57 1##############################################################################
2# Cocoon Configuration file #
3##############################################################################
4
5##################################################################################
6# IMPORTANT - YOU MUST RESTART YOUR SERVLET ENGINE WHENEVER YOU CHANGE THIS FILE #
7# #
8# This is a limitation which is fixed in Cocoon 2. #
9##################################################################################
10
11
12##########################################
13# Global Configurations #
14##########################################
15
16# Indicates whether or not Cocoon should be visible if
17# the requested URI equals the specified one.
18selfservlet.enabled = true
19selfservlet.uri = /cocoon/Cocoon.xml
20
21# Indicates whether or not Cocoon should handle errors internally
22# and format the error and the exception stack trace to the client
23# or return the HTTP error code to the web server and let it handle it.
24handle.errors.internally = true
25
26# Indicates the log severity level
27#log.level = emergency
28#log.level = critical
29log.level = error
30#log.level = warning
31#log.level = info
32#log.level = debug
33
34
35
36##########################################
37# XML Parsers #
38##########################################
39
40# Apache Xerces 1.0.1+ (http://xml.apache.com/)
41parser = org.apache.cocoon.parser.XercesParser
42
43# SUN ProjectX TR2 (http://java.sun.com/xml/)
44#parser = org.apache.cocoon.parser.SunXMLParser
45
46# Indicate whether the XML file should be validated or not
47# this is turned off by default for faster operation.
48parser.validate = false
49
50
51##########################################
52# XSLT Transformers #
53##########################################
54
55# Apache Xalan (http://xml.apache.org/)
56transformer = org.apache.cocoon.transformer.XalanTransformer
57
58# James Clark's XT (http://www.jclark.com/)
59#transformer = org.apache.cocoon.transformer.XTTransformer
60
61
62
63##########################################
64# XML Producers #
65##########################################
66
67# For example, if you want to produce your XML template reading it from
68# the file system, using your producer, you should request the URI:
69# http://your.site.com/your_XML_file.xml?producer=file
70
71# This is the request parameter used to identify the producer in the request:
72# (default value is "producer")
73producer.parameter = producer
74
75# The syntax for this is
76# producer.type.xxx = full.class.name
77# where "xxx" is the producer indentier used in the request
78producer.type.file = org.apache.cocoon.producer.ProducerFromFile
79
80# This is used in the example files
81producer.type.dummy = org.apache.cocoon.example.DummyProducer
82
83# When producer indication is present in the request
84# this configuration allows to map those requests to a particular
85# producer indicated here with its type.
86# NOTE: this type must present in the above map.
87producer.default = file
88
89
90
91
92
93##########################################
94# XML Processors #
95##########################################
96
97# These are used when the <?cocoon-process type="xxx"?> PI is present.
98# If no PI of that type is present, no processing is performed.
99# The syntax for this is
100# processor.type.xxx = full.class.name
101
102# XSL Transformations (XSLT)
103processor.type.xslt = org.apache.cocoon.processor.xslt.XSLTProcessor
104
105# SQL Processor
106processor.type.sql = org.apache.cocoon.processor.sql.SQLProcessor
107
108# LDAP Processor
109# NOTE: you need to have the SUN JDNI API (jndi.jar) in your classpath
110# in order for this processor to work. Check the FAQ for more information.
111#processor.type.ldap = org.apache.cocoon.processor.ldap.LdapProcessor
112
113# XInclude Processor
114processor.type.xinclude = org.apache.cocoon.processor.xinclude.XIncludeProcessor
115
116# Link Encoding Processor which encodes all links using response.encodeUrl()
117processor.type.linkencode = org.apache.cocoon.processor.LinkEncodingProcessor
118
119##########################################
120# XSP Processor #
121##########################################
122
123# eXtensible Server Pages Processor (XSP)
124processor.type.xsp = org.apache.cocoon.processor.xsp.XSPProcessor
125
126# supported languages
127processor.xsp.languages = java
128
129# Default encoding to be used for code generation and compilation
130# If omitted, the platform's default encoding will be used
131# This encoding should also be used in:
132# - The XSP document <?xml?> declaration
133# - The "encoding" configuration property of the formatter to be used
134# Example: Russian uses "Cp1251"
135# processor.xsp.encoding = Cp1251
136
137# support for the java language
138processor.xsp.java.processor = org.apache.cocoon.processor.xsp.language.java.XSPJavaProcessor
139processor.xsp.java.processor.compiler = org.apache.cocoon.processor.xsp.language.java.SunJavaCompiler
140
141# NOTE: If you enable the Jikes compiler, you must put rt.jar (for JDK >1.1) or classes.zip (for JDK 1.1)
142# on your CLASSPATH
143#processor.xsp.java.processor.compiler = org.apache.cocoon.processor.xsp.language.java.JikesJavaCompiler
144processor.xsp.java.logicsheet = xsp-java.xsl
145processor.xsp.java.preprocessor = org.apache.cocoon.processor.xsp.language.java.XSPJavaPreprocessor
146
147
148# sets the repository where the compiled pages are stored.
149# NOTE: make sure the directory is readable. This directory is usually
150# relative to the web server's or to the servlet engine's. In case you're not
151# sure, use an absolute location.
152# WARNING: since this repository may contain information you want to remain
153# secret, we highly suggest that you protect the repository from untrusted
154# access, even read-only. Only Cocoon and the system administrators should
155# have access here.
156processor.xsp.repository = /var/lib/cocoon/repository
157
158# Set the libraries associated with the given namespace.
159# Use the syntax:
160# processor.xsp.logicsheet.<namespace-tag>.<language> = URL to file
161# where "URL to file" is usually starting with file:// if you locate
162# your custom library in your file system.
0988e1fe 163processor.xsp.logicsheet.context.java = file:///usr/share/cocoon/xsp-library/java/context.xsl
164processor.xsp.logicsheet.cookie.java = file:///usr/share/cocoon/xsp-library/java/cookie.xsl
165processor.xsp.logicsheet.global.java = file:///usr/share/cocoon/xsp-library/java/global.xsl
166processor.xsp.logicsheet.request.java = file:///usr/share/cocoon/xsp-library/java/request.xsl
167processor.xsp.logicsheet.response.java = file:///usr/share/cocoon/xsp-library/java/response.xsl
168processor.xsp.logicsheet.session.java = file:///usr/share/cocoon/xsp-library/java/session.xsl
169processor.xsp.logicsheet.util.java = file:///usr/share/cocoon/xsp-library/java/util.xsl
170processor.xsp.logicsheet.sql.java = file:///usr/share/cocoon/xsp-library/sql/sql.xsl
171processor.xsp.logicsheet.esql.java = file:///usr/share/cocoon/xsp-library/sql/esql.xsl
172processor.xsp.logicsheet.fp.java = file:///usr/share/cocoon/xsp-library/fp/fp.xsl
682beb57 173
174# Turbine DB Connection Pool
175############################
176
177# These are your database settings, look in the
178# org.apache.turbine.util.db.pool.* package for more information.
179processor.xsp.pool.database.default.driver=oracle.jdbc.driver.OracleDriver
180processor.xsp.pool.database.default.url=jdbc:oracle:thin:@localhost:1521:ORCL
181processor.xsp.pool.database.default.username=dbUser
182processor.xsp.pool.database.default.password=dbPass
183processor.xsp.pool.database.default.maxConnections=3
184processor.xsp.pool.database.default.expiryTime=3600000
185
186# These are the supported jdbc-drivers and their adaptors.
187# These properties are used by the DBFactory.
188processor.xsp.pool.database.adaptor=DBWeblogic,DBOracle,DBInstantDB,DBPostgres,DBSybase,DBInformix,DBMySQL
189processor.xsp.pool.database.adaptor.DBWeblogic=weblogic.jdbc.pool.Driver
190processor.xsp.pool.database.adaptor.DBOracle=oracle.jdbc.driver.OracleDriver
191processor.xsp.pool.database.adaptor.DBInstantDB=org.enhydra.instantdb.jdbc.idbDriver
192processor.xsp.pool.database.adaptor.DBPostgres=postgresql.Driver
193processor.xsp.pool.database.adaptor.DBInformix=com.informix.jdbc.IfxDriver
194processor.xsp.pool.database.adaptor.DBSybase=com.sybase.jdbc.SybDriver
195processor.xsp.pool.database.adaptor.DBMySQL=org.gjt.mm.mysql.Driver
196
197# The full path name to a pool log file
198# if not given, commands to log events using org.apache.turbine.util.Log will be ignored.
199# This file must already exist and be writable.
200# Default: none
201#processor.xsp.pool.logfile=/opt/apache/var/log/dbPool.log
202
203
204#### !!!!WARNING!!!! ###########
205# The DCP processor should be considered -deprecated- and we highly suggest
206# you to convert all of your DCP stuff into XSP pages that, in the future,
207# will totally replace DCP.
208#
209# Dynamic Content Processor (DCP)
210processor.type.dcp = org.apache.cocoon.processor.dcp.DCPProcessor
211#
212################################
213
214
215##########################################
216# XML Formatters #
217##########################################
218
219# This is used when no <?cocoon?> PI is present to indicate
220# which MIME type to associate to the document.
221# NOTE: this type must present in the map below.
222formatter.default = text/html
223
224# These are used when the <?cocoon-format type="xxx/yyy"?> PI is present
225# The syntax for this is
226# formatter.type.xxx/yyy = full.class.name
227
228# Full configurable formatters
229###############################
230
231formatter.type.text/html = org.apache.cocoon.formatter.HTMLFormatter
232formatter.type.text/html/loose = org.apache.cocoon.formatter.HTMLFormatter
233formatter.type.text/xhtml = org.apache.cocoon.formatter.XHTMLFormatter
234formatter.type.text/xhtml/loose = org.apache.cocoon.formatter.XHTMLFormatter
235formatter.type.text/xml = org.apache.cocoon.formatter.XMLFormatter
236formatter.type.text/wml = org.apache.cocoon.formatter.XMLFormatter
237formatter.type.text/plain = org.apache.cocoon.formatter.TextFormatter
238formatter.type.model/vrml = org.apache.cocoon.formatter.TextFormatter
239formatter.type.text/xslfo = org.apache.cocoon.formatter.FO2PDFFormatter
240formatter.type.application/smil = org.apache.cocoon.formatter.XMLFormatter
241formatter.type.image/svg-xml = org.apache.cocoon.formatter.XMLFormatter
242
243# You can modify the formatter's behavior by adding the following configurations
244# for each formatter you want to specifize. Note that even if two formatters
245# share the same class, they are will be seen as different entities, accessed
246# only by their types.
247#
248# formatter.[type].MIME-type = [formatter MIME type]
249# formatter.[type].encoding = [encoding type]
250# formatter.[type].doctype-public = [public identifier]
251# formatter.[type].doctype-system = [system identifier]
252# formatter.[type].preserve-space = [whether to preserve space or not]
253# formatter.[type].line-width = [page width, wrapping column]
254# formatter.[type].indent = [numbers of spaces for tag indenting]
255
256# HTML 4.0 (strict)
257formatter.text/html.doctype-public = -//W3C//DTD HTML 4.0//EN
258formatter.text/html.doctype-system = http://www.w3.org/TR/REC-html40/strict.dtd
259
260# XHTML 1.0 (strict)
261formatter.text/xhtml.doctype-public = -//W3C//DTD XHTML 1.0 Strict//EN
262formatter.text/xhtml.doctype-system = xhtml1-strict.dtd
263
264# WML 1.1
265formatter.text/wml.doctype-public = -//WAPFORUM//DTD WML 1.1//EN
266formatter.text/wml.doctype-system = http://www.wapforum.org/DTD/wml_1.1.xml
267formatter.text/wml.encoding = iso-8859-1
268formatter.text/wml.MIME-type = text/vnd.wap.wml
269
270# VRML 97
271formatter.model/vrml.MIME-type = model/vrml
272
273# PDF
274formatter.text/xslfo.MIME-type = application/pdf
275
276# HTML 4.0 (transitional)
277formatter.text/html/loose.doctype-public = -//W3C//DTD HTML 4.0 Transitional//EN
278formatter.text/html/loose.doctype-system = http://www.w3.org/TR/REC-html40/loose.dtd
279formatter.text/html/loose.preserve-space = true
280formatter.text/html/loose.encoding = UTF-8
281formatter.text/html/loose.indent = 1
282formatter.text/html/loose.line-width = 120
283formatter.text/html/loose.MIME-type = text/html
284
285# XHTML 1.0 (transitional)
286formatter.text/xhtml/loose.doctype-public = -//W3C//DTD XHTML 1.0 Transitional//EN
287formatter.text/xhtml/loose.doctype-system = xhtml1-transitional.dtd
288
289# SMIL
290formatter.application/smil.doctype-public = -//W3C//DTD SMIL 1.0//EN
291formatter.application/smil.doctype-system = http://www.w3.org/TR/REC-smil/SMIL10.dtd
292formatter.application/smil.MIME-type = application/smil
293
294# SVG (20000303 WD)
295formatter.image/svg-xml.doctype-public = -//W3C//DTD SVG 20000303 Stylable//EN
296formatter.image/svg-xml.doctype-system = http://www.w3.org/TR/2000/03/WD-SVG-20000303/
297formatter.image/svg-xml.MIME-type = image/svg-xml
298
299
300
301
302##########################################
303# Cache Managers #
304##########################################
305
306# the default cache
307cache = org.apache.cocoon.cache.CocoonCache
308
309#uncomment this to disable ALL page caching
310#cache = org.apache.cocoon.cache.NoCache
311
312#Change this to false to disable all Last-Modified headers
313#This will also disable client-side and proxy caching, but not Cocoon
314#internal caching.
315#Content that is not cached by Cocoon will not have a Last-Modified header.
316lastmodified = true
317
318#NOTE: See also the next set of options. The CocoonCache is implemented by
319#the Store.
320
321##########################################
322# Object Storage Systems #
323##########################################
324
325# the default object storage
326store = org.apache.cocoon.store.MemoryStore
327
328# Indicates how much free memory should always be available to the JVM. (in bytes)
329# Here, 1M.
330store.freememory = 1000000
331
332# Indicates the sleeping time for the background checking thread (in seconds)
333store.interval = 10
334
335# Indicates the thread priority (1-10: 10 is maximum, 1 is minimum)
336store.threadpriority = 10
337
338# Uncomment this to disable the background thread that manages the store
339# overflow.
340# WARNING: Disabling this may result in intermittent OutOfMemoryErrors.
341#store.usethread = false
342
343# Soft maximum heap size. Cocoon will try to aggressively flush its store
344# to stay not too far above this limit.
345# To change the absolute maximum, consult your JDK tool documentation.
346# here, 15M or close to it anyway
347store.heapsize = 15000000
348
349
350
351##########################################
352# Language Interpreters #
353##########################################
354
355# These are used by the DCP Processor
356interpreter.type.java = org.apache.cocoon.interpreter.java.JavaInterpreter
357#interpreter.type.ecmascript = org.apache.cocoon.interpreter.ecmascript.EcmaScriptInterpreter
358#interpreter.type.javascript = org.apache.cocoon.interpreter.ecmascript.EcmaScriptInterpreter
359
360# Indicates the default language if not specified in the DCP PIs
361interpreter.default = java
362
363# NOTE: see the DCP user guide for instructions on using ecmascript and the
364# packages required for this operation.
365
366
367##########################################
368# User Agents (Browsers) #
369##########################################
370
371# NOTE: numbers indicate the search order. This is VERY VERY IMPORTANT since
372# some words may be found in more than one browser description. (MSIE is
373# presented as "Mozilla/4.0 (Compatible; MSIE 4.01; ...")
374#
375# for example, the "explorer=MSIE" tag indicates that the XSL stylesheet
376# associated to the media type "explorer" should be mapped to those browsers
377# that have the string "MSIE" in their "user-Agent" HTTP header.
378
379browser.0 = explorer=MSIE
380browser.1 = pocketexplorer=MSPIE
381browser.2 = handweb=HandHTTP
382browser.3 = avantgo=AvantGo
383browser.4 = imode=DoCoMo
384browser.5 = opera=Opera
385browser.6 = lynx=Lynx
386browser.7 = java=Java
387browser.8 = wap=Nokia
388browser.9 = wap=UP
389browser.10 = wap=Wapalizer
390browser.11 = mozilla5=Mozilla/5
391browser.12 = mozilla5=Netscape6/
392browser.13 = netscape=Mozilla
393
394##########################################
395# Profiling #
396##########################################
397
398#Uncomment this to enable coarse performance profiling.
399#Look at samples/profiler/profiler.xml to see the results of the profiler
400
401profiler.enabled=true
402
403#Comment this out to remove the <--this page was served ... comment from the
404#end of text pages served by Cocoon
405verbosity=true
This page took 0.146706 seconds and 4 git commands to generate.