Changes between Version 21 and Version 22 of schema


Ignore:
Timestamp:
Apr 7, 2011, 8:54:28 AM (13 years ago)
Author:
jwillenborg
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • schema

    v21 v22  
    157157
    158158Additional
    159 * MathML elements: m:*
    160 * SVG elements: svg:*
    161 
    162 
    163 === Example ===
     159* MathML elements: all elements of MathML 2.0
     160* SVG elements: all elements of SVG 1.1
     161
     162
     163=== Example 1 ===
    164164
    165165In the following simple example the metadata part ("teiHeader") consists of 5 elements („author“, „title“, „language“, „date“, "idno") and the text part consists of 2 pages („pb“) with 2 paragraphs („p“) which contains 3 sentences („s“).
    166166{{{
    167167<?xml version="1.0" encoding="UTF-8"?>
    168 <TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:m="http://www.w3.org/1998/Math/MathML">
     168<TEI xmlns="http://www.tei-c.org/ns/1.0">
    169169  <teiHeader>
    170170    <fileDesc>
     
    221221}}}
    222222
     223=== Example 2: TEI document with MathML and SVG ===
     224
     225In the following simple example the text part consists of a MathML formula and a SVG graphics.
     226{{{
     227<?xml version="1.0" encoding="UTF-8"?>
     228<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:xlink="http://www.w3.org/1999/xlink">
     229  <teiHeader>
     230    <fileDesc>
     231      <titleStmt>
     232        <title>Title</title>
     233        <author>Name, Prename</author>
     234      </titleStmt>
     235      <publicationStmt>
     236        <date>1789</date>
     237        <idno>/experimental/yourDirectory</idno>
     238        <availability status="free">
     239          <p>This text is available under Creative Commons license CC-BY</p>
     240        </availability>
     241      </publicationStmt>
     242      <sourceDesc>
     243        <bibl>
     244        </bibl>
     245      </sourceDesc>
     246    </fileDesc>
     247    <profileDesc>
     248      <langUsage>
     249        <language ident="en">English</language>
     250      </langUsage>
     251    </profileDesc>
     252  </teiHeader>
     253  <text>
     254    <body>
     255      <pb facs="0001.jpg"/>
     256      <hi rend="bold">MathML example: </hi><lb/>
     257      <formula>
     258        <math xmlns="http://www.w3.org/1998/Math/MathML">
     259          <mrow>
     260            <mi>a</mi>
     261            <mo>&#x2062;<!-- &InvisibleTimes; --></mo>
     262            <msup>
     263              <mi>x</mi>
     264              <mn>2</mn>
     265            </msup>
     266            <mo>+</mo>
     267            <mi>b</mi>
     268            <mo>&#x2062;<!-- &InvisibleTimes; --></mo>
     269            <mi>x</mi>
     270            <mo>+</mo>
     271            <mi>c</mi>
     272          </mrow>
     273        </math>
     274      </formula>
     275      <hi rend="bold">SVG example: </hi><lb/><lb/>
     276      <svg xmlns="http://www.w3.org/2000/svg" width="800" height="300" version="1.1">
     277        <a xlink:href="http://www.youtube.com/watch?v=yHrQ_8GWRiY" target="_blank">
     278          <rect id="rec" x="300" y="100" width="300" height="100" style="fill:CCCC99">
     279            <animate attributeName="x" attributeType="XML" begin="0s" dur="6s" fill="freeze" from="300" to="0"/>
     280            <animate attributeName="y" attributeType="XML" begin="0s" dur="6s" fill="freeze" from="100" to="0"/>
     281            <animate attributeName="width" attributeType="XML" begin="0s" dur="6s" fill="freeze" from="300" to="800"/>
     282            <animate attributeName="height" attributeType="XML" begin="0s" dur="6s" fill="freeze" from="100" to="300"/>
     283            <animateColor attributeName="fill" attributeType="CSS" from="lime" to="red" begin="2s" dur="4s" fill="freeze"/>
     284          </rect>
     285        </a>
     286        <g transform="translate(100,100)">
     287          <text id="TextElement" x="0" y="0" style="font-family:Verdana;font-size:16; visibility:hidden"> Click and get Slime
     288            <set attributeName="visibility" attributeType="CSS" to="visible" begin="1s" dur="5s" fill="freeze"/>
     289            <animateMotion path="M 0 0 L 100 100" begin="1s" dur="5s" fill="freeze"/>
     290            <animateColor attributeName="fill" attributeType="CSS" from="red" to="blue" begin="1s" dur="5s" fill="freeze"/>
     291            <animateTransform attributeName="transform" attributeType="XML" type="rotate" from="-30" to="0" begin="1s" dur="5s" fill="freeze"/>
     292            <animateTransform attributeName="transform" attributeType="XML" type="scale" from="1" to="3" additive="sum" begin="1s" dur="5s" fill="freeze"/>
     293          </text>
     294        </g>
     295      </svg>
     296    </body>
     297  </text>
     298</TEI>
     299}}}