[MOBY-guts] biomoby commit

Sebastien Carrere carrere at pub.open-bio.org
Mon Oct 24 11:47:03 UTC 2005


carrere
Mon Oct 24 07:47:03 EDT 2005
Update of /home/repository/moby/moby-live/Perl/MOBY/xsl
In directory pub.open-bio.org:/tmp/cvs-serv23503

Modified Files:
	parseMobyMessage.xsl 
Log Message:
Template Parameter modification to allow articleName or moby:articleName as an attribute


moby-live/Perl/MOBY/xsl parseMobyMessage.xsl,1.1,1.2
===================================================================
RCS file: /home/repository/moby/moby-live/Perl/MOBY/xsl/parseMobyMessage.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- /home/repository/moby/moby-live/Perl/MOBY/xsl/parseMobyMessage.xsl	2005/09/08 13:46:45	1.1
+++ /home/repository/moby/moby-live/Perl/MOBY/xsl/parseMobyMessage.xsl	2005/10/24 11:47:03	1.2
@@ -114,8 +114,18 @@
 	-->
 
 	<xsl:template match="moby:Parameter">
+	
+		<xsl:variable name="paramname1" select="normalize-space(./@moby:articleName)"/>
+		<xsl:variable name="paramname2" select="normalize-space(./@articleName)"/>
+
 		<xsl:text>#XSL_LIPM_MOBYPARSER_SECONDARY_START#</xsl:text>
-		<xsl:value-of select="normalize-space(./@moby:articleName)"/>
+		<xsl:if test="$paramname1 != ''">
+			<xsl:value-of select="$paramname1"/>
+		</xsl:if>
+		<xsl:if test="$paramname2 != ''">
+			<xsl:value-of select="$paramname2"/>
+		</xsl:if>
+		<!--<xsl:value-of select="normalize-space(./@moby:articleName)"/>-->
 		<xsl:text>#XSL_LIPM_MOBYPARSER_SECONDARY_SEP#</xsl:text>
 		<xsl:value-of select="normalize-space(./child::*)"/>
 		<xsl:text>#XSL_LIPM_MOBYPARSER_SECONDARY_END#</xsl:text>




More information about the MOBY-guts mailing list