<?xml version="1.0" encoding="UTF-8"?>
<!--

       Copyright 2011 Peter Murray-Rust et. al.

       Licensed under the Apache License, Version 2.0 (the "License");
       you may not use this file except in compliance with the License.
       You may obtain a copy of the License at

           http://www.apache.org/licenses/LICENSE-2.0

       Unless required by applicable law or agreed to in writing, software
       distributed under the License is distributed on an "AS IS" BASIS,
       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
       See the License for the specific language governing permissions and
       limitations under the License.

-->

<moleculeList id="polystyrene" convention="cml:PML-basic"
	xmlns:g="http://www.xml-cml.org/mols/geom1"
	xmlns="http://www.xml-cml.org/schema">
	<molecule id="polystyrene" convention="cml:PML-basic" 
	    countExpression="*(3)">
		<!--  polystyrene -->
		<transform3>
		1 0 0 10
		0 1 0 0
		0 0 1 0
		0 0 0 1
		</transform3>  
		<fragment>
			<molecule ref="g:dummy"/>
			<fragmentList countExpression="*(10)">
				<join order="1" moleculeRefs2="PARENT NEXT"
					atomRefs2="r1 r1">
					<torsion>180</torsion>
				</join>
				<fragment>
					<molecule ref="g:ch"/>				
					<fragmentList>
						<join order="1" moleculeRefs2="PARENT NEXT"
							atomRefs2="r3 r1">
			 				<torsion min="60" max="120"></torsion>
						</join>
						<fragment>
							<molecule ref="g:benzene"/>				
						</fragment>
					</fragmentList>
	  		    </fragment>
				<join atomRefs2="r2 r2" moleculeRefs2="PREVIOUS NEXT">
					<torsion min="20" max="100">60</torsion>
				</join>
				<fragment>
					<molecule ref="g:ch2"/>
				</fragment>				
			</fragmentList>
		</fragment>
	</molecule>
</moleculeList>
