sysmodellibs/sysmodelgen/test/variables/testshapes1.xml
author terytkon
Sat, 06 Nov 2010 16:59:14 +0200
changeset 9 63964d875993
parent 1 b538b70cbe51
permissions -rw-r--r--
Merge changes to system model generator to SF tip.

<?xml version="1.0" encoding="UTF-8"?>
<shapes xmlns:s="http://www.w3.org/2000/svg">

	<s:defs>
		<!-- bright circle pattern -->
		<s:radialGradient id="note" gradientUnits="userSpaceOnUse" cx="10" cy="10" r="14">
			<s:stop offset="0%" stop-color="yellow" stop-opacity="1"/>
			<s:stop offset="100%" stop-opacity="0" stop-color="white"/>
		</s:radialGradient>

		<!-- diagonal line pattern -->
		<s:linearGradient id="ref" spreadMethod="repeat" gradientUnits="userSpaceOnUse" x1="0%" x2="15%" y1="0%" y2="15%">
			<s:stop offset="0%" stop-opacity="0" stop-color="white"/>
			<s:stop offset="20%" stop-color="white" stop-opacity="1"/>
			<s:stop offset="40%" stop-opacity="0" stop-color="white"/>
			<s:stop offset="100%" stop-opacity="0" stop-color="white"/>
		</s:linearGradient>
	</s:defs>
	
	<!-- borders to use for OSD components -->
	<!-- bracket, function or axis notation not allowed in use. Can only use blah/blah/@blah form -->
	<borders use="s12/@osd" label="Sched 12 Category">
		<border type="box"/>
		<border value="OS" type="box-clipLT" label="Optional Symbian"/>
		<border value="CS" type="box-clipLB" label="Common Symbian"/>
		<border rule=".='CR' and VARIABLE()='component'" variable="name()" type="box-clipRB" label="Common Replace­able"/>
		<border value="OR" viewBox="0 0 20 20" label="Optional Replace­able">
  			<s:path d="M 0 0 L 0 20 L 20 20 L 20 5 L 15 0 z" stroke="black"/>
  		</border>	
		<border value="T-R" type="box-clipAll" label="Refer­ence/Test"/>
	</borders>
	
	<patterns>
		<overlay rule="s12/@ref='true' or @ref='true'" type="striped-diag-up" label="Reference Compo­nent"/>
		<overlay rule="Build/Bin/dep[@name=following::layer//Build/Bin/@name]"  type="#note" label="Breaks layer depen&#xad;dency"/>
		<overlay variable="count(Build/*)" rule="VARIABLE() =3" type="radial-grad" label="Contains 3 binaries"/>
	</patterns>
	
	<styles>
		<style>stroke-width: 0.4</style>
		<style variable="@ts" rule="@ts!='' and count(//component[@ts=VARIABLE()]) &lt; 12" label="Small Tech Stream">stroke-width: 2</style>
	</styles>
	<styles>
		<style rule="VERSION(@introduced) &gt; VERSION()" label="Future Compo­nent">stroke-dasharray: 2,3; </style>
	</styles> 
	 
<!--  use @ts as the label and @color as the value -->	 
	<colors default="grey" match="@ts" label="Technology Streams"/>
	<!-- these can also go in the model.xml in a legend element -->
	<examples>
		<cmp color="Graphics">Plug-in</cmp>
		<cmp overlay="Reference Compo­nent" border="Common Symbian">Reference</cmp>
		<cmp overlay="New in {@ver}">New {@ver}</cmp>
		<!--<cmp style="No build info">No build info</cmp>	-->	
	</examples>
</shapes>