1 <?xml version="1.0" encoding="UTF-8"?>
3 version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5 <xsl:output method="xml" indent="yes"
6 doctype-public="-//SPRING//DTD BEAN 2.0//EN"
7 doctype-system="http://www.springframework.org/dtd/spring-beans-2.0.dtd" />
9 <xsl:template match="/component-set">
11 <xsl:for-each select="components/component">
14 <xsl:when test="role-hint">
15 <xsl:attribute name="id">
16 <xsl:value-of select="concat( role, '#', role-hint )" />
20 <xsl:attribute name="id">
21 <xsl:value-of select="role" />
25 <xsl:attribute name="class">
26 <xsl:value-of select="implementation" />
28 <xsl:if test="instanciation-strategy/text() = 'per-lookup'">
29 <xsl:attribute name="scope">prototype</xsl:attribute>
31 <xsl:for-each select="requirements/requirement">
33 <xsl:attribute name="name">
34 <xsl:value-of select="field-name" />
37 <xsl:when test="role-hint">
38 <xsl:attribute name="ref">
39 <xsl:value-of select="concat( role, '#', role-hint )" />
43 <xsl:attribute name="ref">
44 <xsl:value-of select="role" />
50 <xsl:for-each select="configuration/*">
52 <xsl:attribute name="name">
53 <xsl:value-of select="name(.)" />
55 <xsl:attribute name="value">
56 <xsl:value-of select="." />