commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject cvs commit: jakarta-commons-sandbox/hivemind/src/xsl hivemind.xsl
Date Fri, 01 Aug 2003 19:43:16 GMT
hlship      2003/08/01 12:43:16

  Modified:    hivemind/src/test-data/sample org.example.boostrap.xml
               hivemind/src/xsl hivemind.xsl
  Log:
  Add id and ref-id to <schema> and <parameters-schema> to allow shared schemas
(within the same module).
  
  Revision  Changes    Path
  1.3       +14 -2     jakarta-commons-sandbox/hivemind/src/test-data/sample/org.example.boostrap.xml
  
  Index: org.example.boostrap.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/src/test-data/sample/org.example.boostrap.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- org.example.boostrap.xml	1 Aug 2003 14:21:38 -0000	1.2
  +++ org.example.boostrap.xml	1 Aug 2003 19:43:16 -0000	1.3
  @@ -8,7 +8,7 @@
   	<extension-point id="Bootstrap">
   		<description>Provides a list of Runnable objects used to startup the application.</description>
   		
  -		<schema>
  +		<schema id="run-schema">
   			<element name="run">
   				<description>An object that may be run.</description>	
   				
  @@ -30,4 +30,16 @@
   		<description>The service which actually bootstraps the application.</description>
   		<create-instance class="org.examples.boostrap.impl.BoostrapService"/>
   	</service>
  +	
  +	<extension-point id="Teardown">
  +		<description>Provides a list of Runnable objects used to when the application shuts
down.</description>
  +		
  +		<schema ref-id="run-schema"/>
  +	</extension-point>
  +	
  +	<service id="Teardown" interface="java.lang.Runnable">
  +		<description>The service which actually shuts down the application.</description>
  +		<create-instance class="org.examples.boostrap.impl.TeardownService"/>
  +	</service>	
  +	
   </module>
  
  
  
  1.12      +29 -13    jakarta-commons-sandbox/hivemind/src/xsl/hivemind.xsl
  
  Index: hivemind.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/src/xsl/hivemind.xsl,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- hivemind.xsl	1 Aug 2003 14:21:38 -0000	1.11
  +++ hivemind.xsl	1 Aug 2003 19:43:16 -0000	1.12
  @@ -216,22 +216,37 @@
   	
   	<xsl:template match="schema">
   		
  -			<h3>Schema</h3>
  -
  -			<table class="summary">
  -			<tbody>
  -				
  -				<xsl:apply-templates/>
  -				
  -			</tbody>		
  -			</table>
  +		<xsl:call-template name="schema-template">
  +			<xsl:with-param name="title">Schema</xsl:with-param>
  +		</xsl:call-template>
   
   	</xsl:template>
   	
   	<xsl:template match="parameters-schema">
  -		
  -			<h3>Parameters Schema</h3>
  +		<xsl:call-template name="schema-template">
  +			<xsl:with-param name="title">Parameters Schema</xsl:with-param>
  +		</xsl:call-template>
  +	</xsl:template>
  +	
  +	<xsl:template name="schema-template">
  +			<xsl:param name="title">Schema</xsl:param>
  +			
  +			<h3><xsl:value-of select="$title"/>
  +				
  +			<xsl:if test="@id">
  +			<a name="schema:{@id}"/>
  +			(<xsl:value-of select="@id"/>)	
  +			</xsl:if>	
  +				
  +				
  +			</h3>
  +
  +			<xsl:if test="@ref-id">
  +			
  +			Reference to <a href="#schema:{@ref-id}"><xsl:value-of select="@ref-id"/></a>

  +			</xsl:if>
   
  +			<xsl:if test="*">
   			<table class="summary">
   			<tbody>
   				
  @@ -239,7 +254,8 @@
   				
   			</tbody>		
   			</table>
  -
  +		</xsl:if>
  +		
   	</xsl:template>	
   	
   	
  
  
  

Mime
View raw message