[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Xsl Template test element

Subject: Xsl Template test element
From: "guglielmo da riva" <marvin64@xxxxxxxxxxxxxxx>
Date: Thu, 05 Jul 2001 01:32:17 -0700
xsl test element value
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.