Corpus Encoding Standard for XML

     Sun Feb 6 18:15:25 MET 2000, Patrice Bonhomme, LORIA

XCES is an XML version of the CES DTD.

  ------------------------------------------------------------------------

The DTD for XCES

This directory contains the following files:

   * xcesDoc.dtd: Encoding conventions for level 1
   * xcesAna.dtd: Encoding conventions for aligned data
   * xcesAlign.dtd: Encoding conventions for annnotated data
   * xheader.elt: The CES header
   * xtoken.elt: NOT USED (optional)
   * xword.elt: NOT USED (optional)
   * xlink.elt: NOT USED (see below)

Download the whole thing in one file: xces-dtd-0_2.zip

  ------------------------------------------------------------------------

Usage

For CES DOC/CORPUS ressources :

        <?xml version="1.0"?>
        <!DOCTYPE cesDoc PUBLIC "-//CES//DTD XML cesDoc//EN"
                                "dtd/xcesDoc.dtd" [
        ]>...

For CES ANA ressources :

        <?xml version="1.0"?>
        <!DOCTYPE cesDoc PUBLIC "-//CES//DTD XML cesAna//EN"
                                "dtd/xcesAna.dtd" [
        ]>...

For CES ALIGN ressources :

        <?xml version="1.0"?>
        <!DOCTYPE cesDoc PUBLIC "-//CES//DTD XML cesAlign//EN"
                                "dtd/xcesAlign.dtd" [
        ]>...

  ------------------------------------------------------------------------

Some remarks

Language Identification

The attribute xml:lang (CDATA) has been added to the global attributes in
parallel with the attribute lang (IDREF) to be conformant both with the XML
recommandation (see http://www.w3.org/TR/REC-xml#sec-lang-tag) and the SGML
CES DTD.

XLink support

see http://www.w3.org/TR/xlink

I have planned to provide a support for the XLink specification by including
the sub-dtd xlink.ent (for simple, extended, locators and arc elements).

Question: Do we have to replace all CES linking elements with xlink elements
?

XPointer/Xpath support

see http://www.w3.org/TR/xptr and http://www.w3.org/TR/xpath

It seems obvious that we could use XPointers and XPaths for Locator element
types.

   * Element xptr : Attributes from and to
   * Element link : Attributes fromLoc, toLoc and xtargets
   * Element linkGrp : Attributes fromLoc and toLoc

Some samples will be soon available here to illustrate this technical point.

  ------------------------------------------------------------------------

XSL Stylesheets

I have also released a set of XSL stylesheet for CES/DOC documents. To use
these stylesheets, you have to use XT, the XSL engine developped by James
Clark. It should works with other XSL engines (LotusXSL, Xalan, ...) except
for the multiple output features but i didn't try...

Usage:

        java -mx64m \
                -Dcom.jclark.xsl.sax.parser=com.jclark.xml.sax.Driver \
                com.jclark.xsl.sax.Driver your-xces-doc.xml xsl/html/cesDoc.xsl

For instance only HTML output is supported by the stylesheets. You can
customize the output produced with the stylesheets by setting or overriding
some of the variables within the xsl/html/config.xsl file. If you do not
want to modify the XSL source files, you can use a kind of driver, see :
xsl/html/driver.xsl

You can see the result for 1984 (G. Orwell) in English, Multext-East CES1
version.

Download the whole stylesheets in one file: xces-xsl-0_2.zip

I am currently working on a set of stylesheets for supporting the CES/ANA
and CES/ALIGN DTD.

  ------------------------------------------------------------------------
Patrice Bonhomme, bonhomme@loria.fr
