#\#CIF_2.0
data_[VALID][1]_separate_subcategory
loop_
_looped_main_category.key
_looped_main_category.text_item
1 Fox
2 Dog
3 Cat
4 Cow
5 Rock
loop_
_looped_sub_category.key
_looped_sub_category.text_item
2 Woof
3 Miau
4 Moo

data_[VALID][2]_joint_subcategory
loop_
_looped_main_category.key
_looped_main_category.text_item
_looped_sub_category.text_item
1 Fox ?
2 Dog Woof
3 Cat Miau
4 Cow Moo
5 Rock .

data_[VALID][3]_joint_subsubcategory
loop_
_looped_main_category.key
_looped_main_category.text_item
_looped_sub_category.text_item
_looped_sub_sub_category.text_item
1 Fox ? ?
2 Dog Woof Bite
3 Cat Miau Scratch
4 Cow Moo ?
5 Rock . .

data_[VALID][4]_joint_subsubcategory_and_separate_subcategory
loop_
_looped_main_category.key
_looped_main_category.text_item
_looped_sub_sub_category.text_item
1 Fox ?
2 Dog Bite
3 Cat Scratch
4 Cow ?
5 Rock .
loop_
_looped_sub_category.key
_looped_sub_category.text_item
2 Woof
3 Miau
4 Moo

##
# Although this example is artficial, similar placement of child category
# items in the loop of the parent category is observed in real data files
# from the COD. For example, in entry 1100915, the _atom_site_aniso_ratio
# data item is placed in the ATOM_SITE loop, even though a separate
# ATOM_SITE_ANISO loop is also present in the file.
# 
# @source
#       svn://www.crystallography.net/cod/cif/1/10/09/1100915.cif@130149
# @source
#       svn://www.crystallography.net/cod/cif/7/00/90/7009017.cif@176453
##
data_[INVALID][1]_split_looped_subcategory_with_loop_key
loop_
_looped_main_category.key
_looped_main_category.text_item
_looped_sub_category.integer_item
1 Fox 4
2 Dog 5
3 Cat 4
4 Cow 4
5 Ox 4
loop_
_looped_sub_category.key
_looped_sub_category.text_item
2 Woof
3 Miau
4 Moo

data_[INVALID][2]_split_unlooped_subcategory_with_loop_key
loop_
_looped_main_category.key
_looped_main_category.text_item
_looped_sub_category.integer_item
1 Fox 4
2 Dog 5
3 Cat 4
4 Cow 4
5 Ox 4
_looped_sub_category.key            2
_looped_sub_category.text_item      Woof

data_[INVALID][3]_split_subcategory_with_some_unlooped_items
loop_
_looped_main_category.key
_looped_main_category.text_item
_looped_sub_category.integer_item
1 Fox 4
2 Dog 5
3 Cat 4
4 Cow 4
5 Ox 4
loop_
_looped_sub_category.key
2
3
4
_looped_sub_category.text_item      Woof

data_[INVALID][4]_separate_subcategory_no_loop_key
loop_
_looped_main_category.key
_looped_main_category.text_item
1 Fox
2 Dog
3 Cat
4 Cow
5 Ox
loop_
_looped_sub_category.text_item
_looped_sub_category.integer_item
Woof 5
Miau 4
Moo 4

data_[INVALID][5]_split_subcategory_no_loop_key
loop_
_looped_main_category.key
_looped_main_category.text_item
_looped_sub_category.integer_item
1 Fox 4
2 Dog 5
3 Cat 4
4 Cow 4
5 Ox 4
loop_
_looped_sub_category.text_item
Woof
Miau
Moo

data_[INVALID][6]_looped_split_subcategory_unlooped_main_key
_looped_main_category.key 1
loop_
_looped_sub_category.text_item
Woof
Miau
Moo
loop_
_looped_sub_category.integer_item
3
4
4
4

data_[INVALID][7]_looped_split_subcategory_unlooped_keys
_looped_main_category.key 1
_looped_sub_category.key 1
loop_
_looped_sub_category.text_item
Woof
Miau
Moo
loop_
_looped_sub_category.integer_item
3
4
4
4

data_[INVALID][8]_joint_subsubcategory_duplicate_keys
loop_
_looped_main_category.aliased_key
_looped_main_category.text_item
_looped_sub_category.text_item
_looped_sub_sub_category.text_item
1 Fox ? ?
2 Dog Woof Bite
3 Cat Miau Scratch
2 Cow Moo ?
3 Rock . .
