This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Xsl Template test element


Hi all. I have a problem with an xsl template.
I would to test a element value and i see if the first character has
a dash ( - ) .
The element to test is  "DATA[@FIELDID='10061']/@VALUE"
Here is a complete xsl 

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
<xsl:template match="/">
     <TABLE WIDTH="100%" Border="1" RULES="cols" CELLSPACING="0" CELLPADDING="1%">
         <TR> 
         <xsl:for-each select="//DATA/ITEMS/ITEM">
     		<TD HEIGHT="23" ALIGN="CENTER" STYLE="font-weight:
bold ; font-size: 18px">
              	<xsl:value-of select="DATA[@FIELDID = '10011']/@VALUE"/>
              	</TD>
	      	<TD HEIGHT="23" ALIGN="CENTER" STYLE="font-weight:
bold ; font-size: 16px" BGCOLOR="#eef8f9">
	      	<xsl:value-of select="DATA[@FIELDID = '10015']/@VALUE"/>
	      	</TD>
		
	        <TD HEIGHT="23" ALIGN="CENTER" STYLE="font-weight: bold
; font-size: 20px" BGCOLOR="#ffffff">
		<xsl:value-of select="DATA[@FIELDID='10061']/@VALUE"/>
		</TD>
			
	 </xsl:for-each>
	 </TR>
      </TABLE>
  </xsl:template>
</xsl:stylesheet>

Any help would be appreciate 
Thank in advance 
Guglielmo


___________________________________________________________________
To get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]