diff --git a/src/main/xar-resources/data/configuration/configuration.xml b/src/main/xar-resources/data/configuration/configuration.xml index 70efce9b..eacfc00d 100644 --- a/src/main/xar-resources/data/configuration/configuration.xml +++ b/src/main/xar-resources/data/configuration/configuration.xml @@ -5,7 +5,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink"> Application Server Configuration - 2Q21 + 4Q25 operations @@ -819,11 +819,51 @@ <tag>validation</tag> element - Defines the default validation settings active when parsing XML and links to - catalog files. Catalog files are used to locate DTDs, schemas and resolve external - entities in general. - Please refer to the corresponding documentation on XML Validation. + This section allows to configure the validation settings of the XML parser when an XML document is inserted into the database, + the location of the catalog files and the characteristics of the grammar cache. + + + + The validation mode and the catalog entity-resolver items are discussed in the separate + document XML Validation. + + The grammar-cache (added in eXist-db v7.0) configures the properties of the XML parser grammar cache. The cache contains + compiled versions of XSD and DTD grammar files that are generated by the XML parser when the XML parser is set in validating mode. + Re-use of these compiled versions can accellerate the validation process significantly. + + + The following items can be configured: + + + <tag>grammar-cache</tag> attributes + + + + size + + Specifies the maximum number of entries the cache may contain. The following values can be used: + + + 0: grammars will be evicted immediately after being loaded into the cache. + + + -1: no maximum for the number of cached grammars. + + + + + + + + expire + + The time (in seconds) after which an unused grammar should expire and be removed + from the grammar pool. For value -1 grammars will not be removed over time. + + + + + diff --git a/src/main/xar-resources/data/configuration/listings/listing-11.xml b/src/main/xar-resources/data/configuration/listings/listing-11.xml new file mode 100644 index 00000000..41af5f2a --- /dev/null +++ b/src/main/xar-resources/data/configuration/listings/listing-11.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/main/xar-resources/data/validation/validation.xml b/src/main/xar-resources/data/validation/validation.xml index 1ff97159..94169e3a 100644 --- a/src/main/xar-resources/data/validation/validation.xml +++ b/src/main/xar-resources/data/validation/validation.xml @@ -5,7 +5,7 @@ xmlns:xlink="http://www.w3.org/1999/xlink"> XML Validation - 2Q19 + 4Q25 application-development testing @@ -18,7 +18,7 @@ There are two ways to validate documents: - happens automatically when + happens automatically when inserting documents into the database.