Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | |
Stuart McCulloch | 3ed949e | 2012-10-18 20:01:21 +0000 | [diff] [blame] | 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" xmlns:blueprint="http://www.eclipse.org/gemini/blueprint/schema/blueprint"> |
Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 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 |
Stuart McCulloch | 3ed949e | 2012-10-18 20:01:21 +0000 | [diff] [blame] | 23 | | //blueprint:*/@interface |
Stuart McCulloch | bb01437 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 24 | | //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 | |