Specification of an ITS language

Text only | Skip links
Skip links| |My Parent Institution home page

Elements defined

<Date>

Date The date when this rule was last updated
Attributes: Global attributes only
Declaration
element Date { xsd:date }
Module

<Declaration>

Declaration An ITS declaration
Declaration
element Declaration
{
   ## Locate the context of this rule
   
   attribute selector { text },
   Rule+
}
Attributes
(In addition to global attributes)
selector Locate the context of this rule
Status: Required
Datatype: text
Example
<p>
  <Declaration xmlns="http://w3c.org/ns/its" selector="@n">
    <Rule localize="translate(1)"/>
    <Rule equivalence="foo"/>
  </Declaration>
...
</p>
Module

<Declarations>

Declarations A set of ITS declarations
Attributes: Global attributes only
Declaration
element Declarations { Declaration+ }
Example
<its:Declarations>
  <its:Declaration selector="//p">
    <its:Rule its:localize="translate(0)"/>
  </its:Declaration>
</its:Declarations>
Module

<Name>

Name The name of the person who last updated this rule
Attributes: Global attributes only
Declaration
element Name { text }
Module

<Rule>

Rule An ITS rule
Declaration
element Rule
{
   ## How this element should be localized
   
   attribute its:localize
   {
      token { pattern = "translate\([0-9]+\.?[0-9]*\)" }
   }?,
   ## An equivalence for this context
   
   attribute its:equivalence { text }?,
   ## A constraint for the localization of this context
   
   attribute its:constrain { text }?,
   ( Name?, Date? )
}
Attributes
(In addition to global attributes)
its:localize How this element should be localized
Status: Optional
Datatype: token { pattern = "translate\([0-9]+\.?[0-9]*\)" }
its:equivalence An equivalence for this context
Status: Optional
Datatype: text
its:constrain A constraint for the localization of this context
Status: Optional
Datatype: text
Example:
<Rule constrain="width(20px)"/>
Example
<its:Rule its:localize="translate(1)">
  <Name>Christian</Name>
  <Date>2005-09-19</Date>
</its:Rule>
Module



Sebastian Rahtz. Date:
Copyright TEI Consortium 2005


Date

Declaration

Declarations

Name

Rule