@fdl version="1.0" schema="http://fdl.org.uk/fds/fds.fds"

# Person schema

# Schema for document root

element root {
 contains=(labelled person)
}

# Schemata for other elements

element={
 person
 type=list
 contains=(1 labelled name)
 contains=(1 labelled age.labelled)
 contains=(2 labelled parent.labelled)
 contains=(labelled offspring)
 contains=(labelled friend)
}

element=(age type=integer) {
 ensure=(x ">" -1)
}

element=(name type=string)

element=(parent type=string)

element=(offspring type=string)

element=(friend type=string)