This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Xsl Template test element
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] Xsl Template test element
- From: "guglielmo da riva" <marvin64 at zdnetonebox dot com>
- Date: Thu, 05 Jul 2001 01:32:17 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
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