|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








