XStandoff Examples

Ibsen's "Peer Gynt"

The first few lines of Henrik Ibsen's "Peer Gynt", Act I Scene 1, illustrating standard multi-dimensional overlap with interruptions. The immediate source was taken from Claus Huitfeldt and C. M. Sperberg-McQueen, TexMecs: An experimental markup meta-language for complex documents (2001) and can be found at http://decentius.aksis.uib.no/mlcd/2005/MLCDf2f/examples.html#id2604302 in TexMecs notation.

The text

[TXT]
Åse: Peer, you're lying!
Peer: [without stopping] No, I am not!
Åse: Well then, swear to me it's true!
Peer: Swear? why should I?
Åse: See, you dare not!
     It's a lie from first to last.

The annotation levels

First annotation level: acting

<?xml version="1.0" encoding="UTF-8"?>
<act xmlns="http://www.xstandoff.net/gynt/act"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.xstandoff.net/gynt/act ../xsd/gynt_act.xsd" name="ACT FIRST">
  <scene name="SCENE FIRST">
    <sp who="Åse">Peer, you're lying!</sp>
    <stage content="without stopping"/><sp who="Peer">No, I am not!</sp>
    <sp who="Åse">Well then, swear to me it's true!</sp>
    <sp who="Peer">Swear? why should I?</sp>
    <sp who="Åse">See, you dare not! It's a lie from first to last.</sp>
  </scene>
</act>

Second annotation level: lines

<?xml version="1.0" encoding="UTF-8"?>
<lines xmlns="http://www.xstandoff.net/gynt/lines"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"../xsd/gynt_lines.xsd">
  <l>Peer, you're lying!</l>
  <l>No, I am not!</l>
  <l>Well then, swear to me it's true!</l>
  <l>Swear? why should I?</l>
  <l>See, you dare not!</l>
  <l>It's a lie from first to last.</l>
</lines>

The XStandoff instance

[XML] [SVG]

The resulting XStandoff instance.

<?xml version="1.0" encoding="UTF-8"?>
<xsf:corpusData xmlns="http://www.xstandoff.net/2009/xstandoff/1.1"
  xmlns:xsf="http://www.xstandoff.net/2009/xstandoff/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsfVersion="1.1"
  xsi:schemaLocation="http://www.xstandoff.net/2009/xstandoff/1.1 
  http://www.xstandoff.net/2009/xstandoff/1.1/xsf.xsd" xml:id="gynt_act">
  <xsf:primaryData start="0" end="138">
    <primaryDataRef uri="../pd/gynt.txt"/>
  </xsf:primaryData>
  <xsf:segmentation>
    <xsf:segment xml:id="seg1" type="char" start="0" end="138"/>
    <xsf:segment xml:id="seg2" type="char" start="0" end="19"/>
    <xsf:segment xml:id="seg3" type="char" start="20" end="33"/>
    <xsf:segment xml:id="seg4" type="char" start="20" end="20"/>
    <xsf:segment xml:id="seg5" type="char" start="34" end="67"/>
    <xsf:segment xml:id="seg6" type="char" start="68" end="88"/>
    <xsf:segment xml:id="seg7" type="char" start="89" end="138"/>
    <xsf:segment xml:id="seg8" type="char" start="89" end="107"/>
    <xsf:segment xml:id="seg9" type="char" start="108" end="138"/>
  </xsf:segmentation>
  <xsf:annotation>
    <xsf:level xml:id="gynt_act_act">
      <xsf:layer xmlns:act="http://www.xstandoff.net/gynt/act" priority="0"
        xsi:schemaLocation="http://www.xstandoff.net/gynt/act ../xsd/gynt_act.xsd">
        <act:act name="ACT FIRST" xsf:segment="seg1">
          <act:scene name="SCENE FIRST" xsf:segment="seg1">
            <act:sp who="Åse" xsf:segment="seg2"/>
            <act:stage content="without stopping" xsf:segment="seg4"/>
            <act:sp who="Peer" xsf:segment="seg3"/>
            <act:sp who="Åse" xsf:segment="seg5"/>
            <act:sp who="Peer" xsf:segment="seg6"/>
            <act:sp who="Åse" xsf:segment="seg7"/>
          </act:scene>
        </act:act>
      </xsf:layer>
    </xsf:level>
    <xsf:level xml:id="gynt_lines_lines">
      <xsf:layer xmlns:lines="http://www.xstandoff.net/gynt/lines" priority="0"
        xsi:schemaLocation="http://www.xstandoff.net/gynt/lines ../xsd/gynt_lines.xsd">
        <lines:lines xsf:segment="seg1">
          <lines:l xsf:segment="seg2"/>
          <lines:l xsf:segment="seg3"/>
          <lines:l xsf:segment="seg5"/>
          <lines:l xsf:segment="seg6"/>
          <lines:l xsf:segment="seg8"/>
          <lines:l xsf:segment="seg9"/>
        </lines:lines>
      </xsf:layer>
    </xsf:level>
  </xsf:annotation>
</xsf:corpusData>