Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ if DIST_DEBIAN
DAPS_CATALOG_TEMPLATE := etc/catalog.debian
endif

#------------------------
# Saxon
SAXON_CONFIG := etc/saxon/saxon.conf
if HAS_SAXON
SAXON_CONFIG_SRC := etc/saxon/saxon${SAXON_VERSION}.conf
else
SAXON_CONFIG_SRC := etc/saxon/saxon10.conf
endif

# stylesheets
if HAS_DAPS_XSL
STYLEROOT := $(daps_xsl)
Expand Down Expand Up @@ -106,6 +115,7 @@ dapsconfdir = @sysconfdir@/daps
fopconfdir = $(dapsconfdir)/fop
xepconfdir = $(dapsconfdir)/xep
hyphendir = $(xepconfdir)/hyphen
saxondir = $(dapsconfdir)/saxon

catalogdir = @sysconfdir@/xml/catalog.d

Expand Down Expand Up @@ -152,6 +162,8 @@ dist_hyphen_DATA = $(wildcard etc/xep/hyphen/*.tex) \
$(wildcard etc/xep/hyphen/*.il2)
# BASH completion
dist_bashcompletion_DATA = bash_completion/daps
# Saxon config file
dist_saxon_DATA = etc/saxon/saxon${SAXON_VERSION}.conf

# DATA
if !CATALOG_EDIT
Expand Down Expand Up @@ -304,6 +316,10 @@ $(FOP_CONFIG): $(FOP_CONFIG_SRC) $(FOP_CONFIG_DEFAULT) $(FIRSTBUILD)
ln -sf $(notdir $(FOP_CONFIG_DEFAULT)) $@; \
fi


$(SAXON_CONFIG): $(SAXON_CONFIG_SRC) $(FIRSTBUILD)


# Create the Jing Wrapper. Debian and Ubuntu require a special version
# (see JING_WRAPPER definitions above)
$(JING_WRAPPER): $(JING_WRAPPER_SRC) $(JING_WRAPPER_DEFAULT) $(FIRSTBUILD)
Expand Down
2 changes: 2 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ PYTHON_PREFIX = @PYTHON_PREFIX@
PYTHON_VERSION = @PYTHON_VERSION@
Q = @Q@
REMAKE = @REMAKE@
SAXON = @SAXON@
SAXON_VERSION = @SAXON_VERSION@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
Expand Down
23 changes: 23 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,21 @@ if test 0 = "$CATALOG"; then
AC_MSG_ERROR([Catalog $root_catalog not found])
fi

dnl -------------------------------------------------------------------------
dnl It checks for each saxon major release, prioritizing saxon12
AC_MSG_NOTICE([===== Checking for Saxon...])
AC_PATH_PROGS([SAXON], [saxon12 saxon11 saxon10], [0])
if test 0 = "$SAXON"; then
AC_MSG_WARN([saxon10, saxon11, nor saxon12 found])
else
dnl Set saxon version
SAXON_VERSION=${SAXON##*saxon}
AC_MSG_NOTICE([Found saxon version $SAXON_VERSION])
AC_SUBST(SAXON_VERSION)
fi

AM_CONDITIONAL([HAS_SAXON], [test 0 != $SAXON])

dnl -------------------------------------------------------------------------
AC_MSG_NOTICE([===== Checking for Image conversion tools...])

Expand Down Expand Up @@ -451,6 +466,14 @@ Feature | Enabled | Action to enable
test 0 = "$HAVE_DOCBOOK_5_STYLESHEETS" && DB5=0
test 0 = "$HAVE_JING" && DB5=0

dnl Saxon
if test 0 = "$SAXON"; then
AC_MSG_RESULT([Saxon support | no | install saxon10, saxon11, or
| | saxon12])
else
AC_MSG_RESULT([Saxon support | yes | (will use $SAXON)])
fi

dnl DocBook 5
if test 0 = "$HAVE_DOCBOOK_50"; then
AC_MSG_RESULT([DocBook 5.0 support | no | install DocBook 5.0, the
Expand Down
158 changes: 158 additions & 0 deletions etc/saxon/saxon10.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
<?xml version="1.0" encoding="UTF-8"?>

<!--
Configuration file for Saxon10

https://www.saxonica.com/documentation10/index.html#!configuration/configuration-file
-->
<configuration xmlns="http://saxon.sf.net/ns/configuration"
edition="HE">
<!-- licenseFileLocation="saxon-license.lic"
label="Some label" -->
<global
allowedProtocols="all"
allowExternalFunctions="true"
allowMultiThreading="true"
allowOldJavaUriFormat="false"
allowSyntaxExtensions="true"
collectionFinder="net.sf.saxon.resource.StandardCollectionFinder"
compileWithTracing="false"
defaultCollation="http://www.w3.org/2005/xpath-functions/collation/codepoint"
defaultCollection="file:///e:/temp"
defaultRegexEngine="S"
dtdValidation="false"
dtdValidationRecoverable="true"
eagerEvaluation="true"
entityResolver="net.sf.saxon.lib.StandardEntityResolver"
environmentVariableResolver=""
errorListener="net.sf.saxon.lib.StandardErrorListener"
expandAttributeDefaults="true"
generateByteCode="true"
ignoreSAXSourceParser="false"
lazyConstructionMode="false"
lineNumbering="true"
markDefaultedAttributes="true"
maxCompiledClasses="10000"
monitorHotSpotByteCode="true"
optimizationLevel="10"
parser=""
preEvaluateDoc="false"
preferJaxpParser="true"
recognizeUriQueryParameters="true"
regexBacktrackingLimit="10000000"
retainNodeForDiagnostics="false"
schemaValidation="strict"
serializerFactory=""
sourceResolver=""
stableCollectionUri="false"
stableUnparsedText="false"
standardErrorOutputFile="file:///e:/errorOutput.log"
streamability="standard"
streamingFallback="true"
stripSpace="all"
styleParser=""
suppressEvaluationExpiryWarning="false"
suppressXPathWarnings="false"
suppressXsltNamespaceCheck="false"
thresholdForFunctionInlining="100"
thresholdForHotspotByteCode="100"
timing="false"
traceExternalFunctions="true"
traceListener="net.sf.saxon.trace.XSLTTraceListener"
traceOptimizerDecisions="false"
treeModel="tinyTreeCondensed"
unparsedTextURIResolver="net.sf.saxon.lib.StandardUnparsedTextResolver"
uriResolver="net.sf.saxon.lib.StandardURIResolver"
usePiDisableOutputEscaping="false"
useTypedValueCache="true"
validationComments="false"
validationWarnings="true"
versionOfXml="1.0"
xInclude="false"
xpathVersionForXsd="20"
xpathVersionForXslt="31"
/>

<xslt
disableXslEvaluate="false"
enableAssertions="false"
initialMode=""
initialTemplate=""
messageEmitter=""
outputUriResolver=""
recoveryPolicy="recoverWithWarnings"
resultDocumentThreads="10"
schemaAware="false"
staticErrorListener=""
staticUriResolver=""
styleParser="">
<extensionElement namespace="http://saxon.sf.net/sql"
factory="net.sf.saxon.option.sql.SQLElementFactory"/>
</xslt>

<xsltPackages>
<package name="http://package.one/" version="1.0" sourceLocation="packageOne.xsl"
exportLocation="packageOne.sef"/>
<package name="http://package.one/" version="2.0-beta" sourceLocation="2.0beta/packageOne.xsl"
exportLocation="2.0beta/packageOne.sef"/>
<package name="http://package.two/" version="8.6.3" sourceLocation="packageTwo.xsl">
<withParam name="debug" select="true()"/>
<withParam name="maxTransactions" select="300"/>
</package>
</xsltPackages>

<xquery
allowUpdate="true"
constructionMode="preserve"
defaultElementNamespace=""
defaultFunctionNamespace="http://www.w3.org/2005/xpath-functions"
emptyLeast="true"
inheritNamespaces="true"
moduleUriResolver="net.sf.saxon.lib.StandardModuleURIResolver"
multipleModuleImports="true"
preserveBoundarySpace="false"
preserveNamespaces="true"
requiredContextItemType="document-node()"
schemaAware="false"
staticErrorListener=""
/>

<xsd
allowUnresolvedSchemaComponents="false"
assertionsCanSeeComments="false"
implicitSchemaImports="false"
multipleSchemaImports="false"
occurrenceLimits="100,250"
schemaUriResolver="com.saxonica.config.ee.StandardSchemaResolver"
thresholdForCompilingTypes="100"
useXsiSchemaLocation="false"
version="1.1"
/>

<serialization
method="xml"
indent="yes"
saxon:indent-spaces="8"
xmlns:saxon="http://saxon.sf.net/"/>

<localizations defaultLanguage="en" defaultCountry="US">
<localization lang="da" class="net.sf.saxon.option.local.Numberer_da"/>
<localization lang="de" class="net.sf.saxon.option.local.Numberer_de"/>
</localizations>

<resources>
<externalObjectModel>net.sf.saxon.option.xom.XOMObjectModel</externalObjectModel>
<extensionFunction>s9apitest.TestIntegrationFunctions$SqrtFunction</extensionFunction>
<fileExtension extension="xq" mediaType="text/plain"/>
<schemaDocument>file:///c:/MyJava/samples/data/books.xsd</schemaDocument>
<schemaComponentModel/>
</resources>

<collations>
<collation uri="http://www.w3.org/2005/xpath-functions/collation/codepoint"
class="net.sf.saxon.expr.sort.CodepointCollator"/>
<collation uri="http://www.microsoft.com/collation/caseblind"
class="net.sf.saxon.expr.sort.CodepointCollator"/>
<collation uri="http://example.com/french" lang="fr" ignore-case="yes"/>
</collations>
</configuration>
Loading