antlets/init/src module2properties.xsl,1.1,1.2

[email protected] Thu, 04 Mar 2004 06:44:04 -0800
Newsgroups gmane.comp.krysalis.metamorphosis.cvs
Message-ID <[email protected]>
Update of /cvsroot/metamorphosis/antlets/init/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21167/init/src

Modified Files:
	module2properties.xsl 
Log Message:
cosmetic changes

Index: module2properties.xsl
===================================================================
RCS file: /cvsroot/metamorphosis/antlets/init/src/module2properties.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** module2properties.xsl	3 Mar 2004 16:27:45 -0000	1.1
--- module2properties.xsl	4 Mar 2004 14:44:01 -0000	1.2
***************
*** 7,42 ****
  	<xsl:template match="/">
  		<project>
! 			<xsl:if test="module/project">
! 				<property name="project.src.dir">
! 					<xsl:attribute name="value">
! 						<xsl:value-of 
! 							select="module/project[@name=$project]/code[@type='java/plain']/@dir"/>
! 					</xsl:attribute>
! 				</property>
! 				<property name="project.test.dir">
! 					<xsl:attribute name="value">
! 						<xsl:value-of 
! 							select="module/project[@name=$project]/test[@type='test/junit']/@dir"/>
! 					</xsl:attribute>
! 				</property>
! 				<property name="project.documentation.dir">
! 					<xsl:attribute name="value">
! 						<xsl:value-of 
! 							select="module/project[@name=$project]/documentation[@type='xml/forrest']/@dir"/>
! 					</xsl:attribute>
! 				</property>
! 				<property name="project.package">
! 					<xsl:attribute name="value">
! 						<xsl:value-of select="module/project[@name=$project]/package"/>
! 					</xsl:attribute>
! 				</property>
! 				
! 				<property name="module.vendor">
! 					<xsl:attribute name="value">
! 						<xsl:value-of select="module/vendor"/>
! 					</xsl:attribute>
! 				</property>
! 			</xsl:if>
  		</project>
  	</xsl:template>
  </xsl:stylesheet>
--- 7,20 ----
  	<xsl:template match="/">
  		<project>
! 			<xsl:apply-templates select="module/project[@name=$project]"/>
  		</project>
  	</xsl:template>
+ 	
+ 	<xsl:template match="/module/project">
+ 		<property name="project.src.dir" value="{code[@type='java/plain']/@dir}" />
+ 		<property name="project.test.dir" value="{test[@type='test/junit']/@dir}" />
+ 		<property name="project.documentation.dir" value="{documentation[@type='xml/forrest']/@dir}" />
+ 		<property name="project.package" value="{package}" />
+ 		<property name="module.vendor" value="{../vendor}" />
+ 	</xsl:template>
  </xsl:stylesheet>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click