A very trivial example that can be found in Sperberg-McQueen 2000. It consists of the single sentence "John likes Mary".
John likes Mary
First annotation level: there is an s element dominating the entire sentence and an a element dominating the first two words.
<?xml version="1.0" encoding="UTF-8"?> <s xmlns="http://www.xstandoff.net/examples/john" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xstandoff.net/examples/john ../xsd/john.xsd"> <a>John likes</a> Mary</s>
Second annotation level: there is an s element dominating the entire sentence and a b element dominating the last two words.
<?xml version="1.0" encoding="UTF-8"?> <s xmlns="http://www.xstandoff.net/examples/john" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xstandoff.net/examples/john ../xsd/john.xsd"> John <b>likes Mary</b></s>
The resulting XStandoff instance contains both annotation layers under a single level, since they correspond to the same schema.
<?xml version="1.0" encoding="UTF-8"?>
<xsf:corpusData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsf="http://www.xstandoff.net/2009/xstandoff/1.1"
xsfVersion="1.1"
xml:id="john_a-john_b"
xsi:schemaLocation="http://www.xstandoff.net/2009/xstandoff/1.1
http://www.xstandoff.net/2009/xstandoff/1.1/xsf.xsd">
<xsf:primaryData start="0" end="15">
<xsf:primaryDataRef uri="../pd/john.txt"/>
</xsf:primaryData>
<xsf:segmentation>
<xsf:segment xml:id="seg1" start="0" end="15"/>
<xsf:segment xml:id="seg2" start="0" end="10"/>
<xsf:segment xml:id="seg3" start="5" end="15"/>
</xsf:segmentation>
<xsf:annotation>
<xsf:level xml:id="john_a-level1">
<xsf:layer xmlns="http://www.xstandoff.net/examples/john" priority="0"
xsi:schemaLocation="http://www.xstandoff.net/examples/john ../xsd/john.xsd">
<s xsf:segment="seg1">
<a xsf:segment="seg2"/>
</s>
</xsf:layer>
<xsf:layer xmlns="http://www.xstandoff.net/examples/john" priority="0"
xsi:schemaLocation="http://www.xstandoff.net/examples/john ../xsd/john.xsd">
<s xsf:segment="seg1"/>
</xsf:layer>
</xsf:level>
</xsf:annotation>
</xsf:corpusData>
This example could make use of XStandoff's all layer as well (cf. the example La Mort d'Agrippine).