<library xmlns:eg="http://examplotron.org/0/">
<book id="-0836217462" eg:occurs="+"
eg:assert="not(following-sibling::book/@id=@id) and
@id=concat('-',isbn)">
<isbn>
0836217462
</isbn>
<title>
Being a Dog Is a Full-Time Job
</title>
<author-ref id="Charles-M.-Schulz" eg:occurs="*"/>
<character-ref id="Peppermint-Patty" eg:occurs="*"/>
</book>
<author id="Charles-M.-Schulz" eg:occurs="*">
<name>
Charles M. Schulz
</name>
<nickName>
SPARKY
</nickName>
<born>
November 26, 1922
</born>
<dead>
February 12, 2000
</dead>
</author>
<character id="Peppermint-Patty" eg:occurs="*">
<name>
Peppermint Patty
</name>
<since>
Aug. 22, 1966
</since>
<qualification>
bold, brash and tomboyish
</qualification>
</character>
</library>