<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
	xmlns:t="http://dnetlib.eu/springbeans/t" xmlns:template="http://dnetlib.eu/springbeans/template"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
											http://dnetlib.eu/springbeans/template http://dnetlib.eu/springbeans/template.xsd">


	<template:instance name="testTemplate" t:beanName="test"
		t:someValue="expandedValue" />

	<template:define name="testTemplate">
		<bean name="dummyName" t:name="$beanName$"
			class="eu.dnetlib.springutils.template.TestBean" p:address="$someValue$"
			p:next-ref="$beanName$-tail">
		</bean>

		<bean id="tail" t:id="$beanName$-tail" class="eu.dnetlib.springutils.template.TestBean"
			p:address="tail-$someValue$" />
	</template:define>

</beans>