ODF10

From ITS
Revision as of 14:57, 22 March 2009 by Clieske (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ITS Rules for OpenDocument 1.0 (ODF)

This page provides an example of default rules ITS of OpenDocument v1.0. The specification of the format can be found at: http://www.oasis-open.org/committees/download.php/12572/OpenDocument-v1.0-os.pdf.

<its:rules version="1.0"
  xmlns:its="http://www.w3.org/2005/11/its"
  xmlns:o="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
  xmlns:t="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/" >

 <!-- Element within text -->
 <its:withinTextRule withinText="yes"
  selector="//t:span |
            //t:a |
            //t:s |
            //t:tab |
            //t:line-break"/>

 <its:withinTextRule withinText="yes"
  selector="//t:reference-mark-start |
            //t:reference-mark-end"/>

 <its:withinTextRule withinText="yes"
  selector="//t:bookmark-start |
            //t:bookmark-end |
            //t:bookmark"/>

 <its:withinTextRule withinText="yes"
  selector="//t:initial-creator |
            //t:creation-date |
            //t:creation-time |
            //t:description |
            //t:user-defined |
            //t:print-time |
            //t:print-date |
            //t:printed-by |
            //t:title |
            //t:subject |
            //t:keywords |
            //t:editing-cycles |
            //t:editing-duration |
            //t:modification-time |
            //t:modification-date |
            //t:creator |
            //t:page-count |
            //t:paragraph-count |
            //t:word-count |
            //t:character-count |
            //t:table-count |
            //t:image-count |
            //t:object-count |
            //t:variable-set |
            //dc:date" />

 <!-- Nested elements -->
 <its:withinTextRule withinText="nested"
  selector="//t:note"/>

 <its:translateRule translate="yes"
  selector="//tbl:table/@name"/>

 <!-- Non-translatable content -->
 <its:translateRule translate="no"
  selector="//t:tracked-changes"/>

 <its:translateRule translate="no"
  selector="//t:initial-creator |
            //t:creation-date |
            //t:creation-time |
            //t:description |
            //t:user-defined |
            //t:print-time |
            //t:print-date |
            //t:printed-by |
            //t:title |
            //t:subject |
            //t:keywords |
            //t:editing-cycles |
            //t:editing-duration |
            //t:modification-time |
            //t:modification-date |
            //t:creator |
            //t:page-count |
            //t:paragraph-count |
            //t:word-count |
            //t:character-count |
            //t:table-count |
            //t:image-count |
            //t:object-count |
            //t:variable-set |
            //t:note-citation |
            //dc:date" />

</its:rules>