Changes between Initial Version and Version 1 of XMLDESpecs


Ignore:
Timestamp:
Jun 14, 2012, 6:07:14 PM (12 years ago)
Author:
Klaus Thoden
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • XMLDESpecs

    v1 v1  
     1= Typing conventions =
     2== Setting up the document ==
     3For resources inside the MPIWG (which you can look at in the
     4ECHO viewing environment), a template XML file can be
     5created which contains the metadata and a body containing
     6simply page breaks for each image there is in this resource.
     7Thus, the transcription can be begun right away.
     8
     9This web application is available on the [http://toolbox/digitizing-tools/pages/bareEchoXml.iface toolbox] server. Of
     10course, you need to know the server path of the resource.
     11Please refer to the online documentation in the toolbox (the
     12red icons with the white question mark).
     13
     14=== Connection to the ECHO Schema and Autocompletion ===
     15All the documents that are to be inserted in the ECHO
     16document viewer have to adhere to a standard. This standard
     17is manifested in ECHO Schema for XML texts. Such a standard
     18ensures that all elements in the document can be processed
     19and displayed correctly.
     20
     21To facilitate the production of such a valid document, XML
     22editors have the functionality to help you with entering the
     23appropriate tags in the right places. The XML file contains
     24a link to schema so that the editor can check the schema and
     25tell you if you made a mistake and suggest the right tags.
     26
     27==== Usage in XeMeL ====
     28We built a stripped-down version of the [http://www.eclipse.org Eclipse IDE], called
     29XeMeL. This is a free and system-independent software to
     30work with XML documents. You can find a version of it on
     31the institute's software server.
     32
     33There is a version of the ECHO XML Schema in [https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-content/raw-attachment/wiki/Harriot/harriot_xsd.zip XSD format]
     34which can be used to get auto completion when working with
     35the XML editor inside XeMeL. Thus, the structure of the
     36document will always be valid.
     37
     38To enable it, the line
     39{{{
     40xsi:schemaLocation="http://www.mpiwg-berlin.mpg.de/ns/echo/1.0/ harriot_xsd/echo.xsd "
     41}}}
     42
     43has to be added to the =echo= element of the XML file, e. g.
     44{{{
     45<echo
     46    xmlns="http://www.mpiwg-berlin.mpg.de/ns/echo/1.0/"
     47    xmlns:de="http://www.mpiwg-berlin.mpg.de/ns/de/1.0/"
     48    xmlns:dcterms="http://purl.org/dc/terms"
     49    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     50    xmlns:xhtml="http://www.w3.org/1999/xhtml"
     51    xmlns:mml="http://www.w3.org/1998/Math/MathML"
     52    xmlns:xlink="http://www.w3.org/1999/xlink"
     53    xmlns:xml="http://www.w3.org/XML/1998/namespace"
     54    xsi:schemaLocation="http://www.mpiwg-berlin.mpg.de/ns/echo/1.0/ harriot_xsd/echo.xsd "
     55    version="1.0RC">
     56}}}
     57
     58==== Usage in Emacs ====
     59The [http://www.gnu.org/software/emacs/manual/html_mono/nxml-mode.html nxml-mode] in Emacs supports validation by using the
     60RelaxNG version of the schema. You can download an [https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-content/raw-attachment/wiki/Harriot/harriot_rnc.zip archive]
     61of the stable version and extract it. To make Emacs make
     62use of the schema, go into the buffer with the XML
     63document, type C-c C-s C-f
     64(rng-set-schema-file-and-validate) and enter the path to
     65the {{{echo.rnc}}} file. You will be asked if this link should
     66be saved to a file. If yes, a file called {{{schemas.xml}}}
     67will be created that contains the link between the XML
     68document and the schema.
     69
     70Please see the documentation of the nxml-mode for
     71additional information, e. g. keyboard shortcuts.
     72
     73== Some basic rules for XML ==
     74There are some rules which have to be observed when dealing
     75with XML texts. A nice collection can be found on the web
     76pages of [http://www.w3schools.com/XML/xml_syntax.asp w3schools].
     77
     78== Paragraphs and semantic units ==
     79To enter text into the document, some additional elements
     80have to be included, because text must not stand on its own
     81between page breaks.
     82
     83A headline is enclosed by {{{<head>}}} tags. The main text has to
     84go into a paragraph ({{{<p>}}}), and inside this has to be a
     85semantic unit ({{{<s>}}}).
     86
     87== Line breaks ==
     88Type a {{{ <lb/>}}} at the end of each line. Be careful to
     89include a space between the last word and the tag. However,
     90if the word is hyphenated, do not type a space.
     91
     92Theoretically, line breaks are not obligatory. If they are
     93missing, lines are broken depending on the width of your
     94browser's window.
     95
     96== XML entities ==
     97Some characters can not be typed directly. They have to be
     98escaped like this:
     99||&||&amp;||
     100||<||&lt;||
     101||>||&gt;||
     102||"||&quot;||
     103||'||&apos;||
     104
     105== Language change ==
     106Paragraphs and semantic units can be set in other languages by
     107giving them an attribute {{{xml:lang="lat"}}}. Please use the
     108three-letter code of the appropriate language. Thus, the right
     109dictionary will be used in the display environment.
     110
     111By using the {{{<foreign>}}} tag, you can also change the
     112language of single words
     113== Emphasis styles ==
     114||= {{{style=".."}}} =||= Meaning =||
     115|| it         || Italics            ||
     116|| bf         || Bold               ||
     117|| bf it      || Bold italics       ||
     118|| sc         || Small caps         ||
     119|| sc it      || Small caps italics ||
     120|| sub        || Subscript          ||
     121|| super      || Superscript        ||
     122|| red        || Red                ||
     123|| fr         || Fraktur            ||
     124|| rom        || Antiqua            ||
     125|| sp         || Sperrung           ||
     126|| ol         || Overline           ||
     127|| ul         || Underline          ||
     128|| st         || Struck through     ||
     129
     130== Generating a table of contents with divisions ==
     131The text should not only be subdivided by headings, but also
     132by {{{<div>}}} tags. The {{{div}}} structure, along with subsequent
     133headings will be used to generate a table of contents in the
     134ECHO document viewer. NB, this is only activated, if the
     135{{{type}}} attribute of the {{{div}}} is either {{{"chapter"}}} or
     136{{{"section"}}}.
     137
     138Otherwise, you are free to use any name for the type of
     139divisions, e. g. {{{recipes}}}