blob: efad6cd19f916df66b17a21d40721b74be79ab35 [file] [log] [blame]
Stuart McCullochbb014372012-06-07 21:57:32 +00001<?xml version="1.0" encoding="UTF-8"?>
2
3<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xmlns:jms="http://www.springframework.org/schema/jms" xmlns:lang="http://www.springframework.org/schema/lang" xmlns:osgi-compendium="http://www.springframework.org/schema/osgi-compendium" xmlns:osgi="http://www.springframework.org/schema/osgi" xmlns:tool="http://www.springframework.org/schema/tool" xmlns:tx="http://www.springframework.org/schema/tx" xmlns:util="http://www.springframework.org/schema/util" xmlns:webflow-config="http://www.springframework.org/schema/webflow-config">
4 <xsl:output method="text" />
5
6 <xsl:template match="/">
7
8 <!-- Match all attributes that holds a class or a comma delimited
9 list of classes and print them -->
10
11 <xsl:for-each select="
12 //beans:bean/@class
13 | //beans:*/@value-type
14 | //aop:*/@implement-interface
15 | //aop:*/@default-impl
16 | //context:load-time-weaver/@weaver-class
17 | //jee:jndi-lookup/@expected-type
18 | //jee:jndi-lookup/@proxy-interface
19 | //jee:remote-slsb/@ejbType
20 | //jee:*/@business-interface
21 | //lang:*/@script-interfaces
22 | //osgi:*/@interface
23 | //util:list/@list-class
24 | //util:set/@set-class
25 | //util:map/@map-class
26 | //webflow-config:*/@class
27 ">
28 <xsl:value-of select="." />
29 <xsl:text>
30 </xsl:text>
31 </xsl:for-each>
32
33 <!-- This seems some magic to get extra imports? -->
34
35 <xsl:for-each select="//beans:bean[@class='org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean'
36 or @class='org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean']">
37 <xsl:for-each select="beans:property[@name='interfaces']">
38 <xsl:value-of select="@value" />
39 <xsl:text>
40 </xsl:text>
41 </xsl:for-each>
42 </xsl:for-each>
43
44 </xsl:template>
45
46
47</xsl:stylesheet>
48