Stylesheet: /build/tests/stubs/fullpackage-wired.xslt
not used
not used
01: <?xml version="1.0" encoding="ISO-8859-1"?> 02: <xsl:stylesheet version="2.0" 03: xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 04: xmlns:zenta="http://magwas.rulez.org/zenta" 05: xmlns:zentatools="java:org.rulez.magwas.zentatools.XPathFunctions" 06: xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 07: 08: 09: <xsl:function name="zenta:fullpackageP"> 10: <xsl:param name="package" /> 11: <xsl:if test="$package"> 12: <xsl:variable name="parent" 13: select="zenta:fullpackageP(zenta:neighbours($rich,$package,'contains,2')[@xsi:type='Package'])" /> 14: <xsl:choose> 15: <xsl:when test="$parent"> 16: <xsl:value-of 17: select="concat($parent, '.', $package/@name)" /> 18: </xsl:when> 19: <xsl:otherwise> 20: <xsl:value-of select="$package/@name" /> 21: </xsl:otherwise> 22: </xsl:choose> 23: </xsl:if> 24: </xsl:function> 25: 26: <xsl:function name="zenta:fullpackage"> 27: <xsl:param name="service" /> 28: <xsl:variable name="parents" 29: select="zenta:neighbours($rich,$service,'contains,2')" /> 30: <xsl:variable name="parent" 31: select="if($parents[@xsi:type='Package']) 32: then $parents[@xsi:type='Package'] 33: else $parents[@xsi:type='Process Step']" /> 34: <xsl:choose> 35: <xsl:when test="$parent/@xsi:type='Package'"> 36: <xsl:copy-of select="zenta:fullpackageP($parent)" /> 37: </xsl:when> 38: <xsl:when test="$parent/@xsi:type='Process Step'"> 39: <xsl:copy-of select="zenta:fullpackage($parent)" /> 40: </xsl:when> 41: <xsl:otherwise> 42: <xsl:variable name="implemented" 43: select="zenta:neighbours($rich,$service,'is implemented by/implements,2')" /> 44: <xsl:if test="not($implemented/@name)"> 45: <xsl:value-of 46: select="error( 47: QName('http://magwas.rulez.org/zenta','zenta:nopackage'), 48: concat('no package for: ',$service/@name))" /> 49: </xsl:if> 50: <xsl:copy-of select="zenta:fullpackage($implemented)" /> 51: </xsl:otherwise> 52: </xsl:choose> 53: </xsl:function> 54: 55: 56: </xsl:stylesheet> 57: 58:
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used
not used