Database Reference
In-Depth Information
declare default collation "?lang=de-DE" ;
• The FLWOR expression's order by clause has a collation keyword for specify‐
ing the collation:
for $ w in $ list-of-words
order by $ w collation "http://exist-db.org/collation?lang=nl-NL"
return
$ w
• Several functions have collation arguments—for instance, contains and
ends-with .
Lots of standard string functions, like contains and ends-with ,
accept an optional third collation parameter. Although you can
certainly use this functionality, it may stop the expression from
being optimized and indexes from being exploited!
XSL-FO
XSL Formatting Objects (XSL-FO) is an XML vocabulary to transform XML into
formatted media, often PDF. To turn XSL-FO XML into PDF you need an XSL-FO
formatter (or renderer), such as the open source Apache FOP or a commercial one
like Antenna House Formatter or RenderX XEP . eXist has the ability to connect
directly with several XSL-FO renderers. Our examples will use the open source
Apache FOP formatter, but they should work for any formatter supported by eXist.
eXist has standard connectors for the Apache FOP, RenderX, and
Antenna House formatters. You can change formatters by placing
the JAR files in $EXIST_HOME/lib/user and changing the pro‐
cessor adapter within the definition of the XSLFOModule module
configuration in $EXIST_HOME/conf.xml .
It is also possible to add support for any third-party FO processor
to eXist by writing a simple SAX adapter in Java that implements
org.exist.xquery.modules.xslfo.ProcessorAdapter and mak‐
ing it available on the classpath (e.g., adding it to
$EXIST_HOME/lib/user ).
Usually, an (XML) application that wants to present something in PDF creates, from
some data source, the XSL-FO XML. This can be done by XSLT, XQuery, or any
other way you like. The resulting XSL-FO document is then passed to the XSL-FO
Search WWH ::




Custom Search