xsl-list
[Top] [All Lists]

Re: Noob: Wrap cell content and some validation??

2003-09-16 23:23:00
Thanks  guys,

<xsl:apply-templates select="$xml-node[not(.='null')]"/>

works lika a charm.

this is what i have in my header (maybe other noobs can use it as a reference)
----------------------------------------------------------------------------
<fo:static-content flow-name="xsl-region-before" >
<fo:block text-align="end" border-bottom="solid" border-bottom-color="navy">
<fo:inline font-size="11" font-weight="bold" color="brown">Report 
Date:</fo:inline> 
<xsl:value-of select="Root/ReportDate"/> 
<fo:block/>
<fo:block/>
<xsl:if test='not(Root/Amount = "null")'><xsl:value-of 
select="Root/Amount"/></xsl:if>
</fo:block>
</fo:static-content>
------------------------------------------------------------------------------
Thanks guys,





----- Original Message ----- 
From: "Passin, Tom" <tpassin(_at_)mitretek(_dot_)org>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, September 16, 2003 8:44 PM
Subject: RE: [xsl] Noob: Wrap cell content and some validation??


[ Barry van Weldam]

how do i create some validation, like if xml-node = "null" show
nothing and xml-node  ="null show the value

It depends on what the context is.  If the processor is currently
considering an "xml-node" element, then this will do the job -

<xsl:if test='not(. = "null")'><xsl:value-of select='.'/></xsl:if>

Cheers,

Tom P

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


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