blob: 14bd8f427b12cbe63ec6cf37137009b03b91c4c5 [file] [log] [blame]
Stuart McCullochf3173222012-06-07 21:57:32 +00001<?xml version="1.0" encoding="UTF-8"?>
2
Stuart McCullochc73903f2012-10-18 20:01:21 +00003<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" xmlns:blueprint="http://www.eclipse.org/gemini/blueprint/schema/blueprint">
Stuart McCullochf3173222012-06-07 21:57:32 +00004 <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
Stuart McCullochc73903f2012-10-18 20:01:21 +000023 | //blueprint:*/@interface
Stuart McCullochf3173222012-06-07 21:57:32 +000024 | //util:list/@list-class
25 | //util:set/@set-class
26 | //util:map/@map-class
27 | //webflow-config:*/@class
28 ">
29 <xsl:value-of select="." />
30 <xsl:text>
31 </xsl:text>
32 </xsl:for-each>
33
34 <!-- This seems some magic to get extra imports? -->
35
36 <xsl:for-each select="//beans:bean[@class='org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean'
37 or @class='org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean']">
38 <xsl:for-each select="beans:property[@name='interfaces']">
39 <xsl:value-of select="@value" />
40 <xsl:text>
41 </xsl:text>
42 </xsl:for-each>
43 </xsl:for-each>
44
45 </xsl:template>
46
47
48</xsl:stylesheet>
49