Barry,
If you're really obsessive-compulsive (or maybe just a little manic),
<xsl:if test='not(Root/Amount = "null")'>
<xsl:value-of select="Root/Amount"/>
</xsl:if>
can be simplified to
<xsl:value-of select="Root/Amount[not(.='null')]"/>
according to the same logic ... one of the fun things about XPath is how,
in particular document contexts, it can be used to drive conditionals.
Cheers,
Wendell
At 02:23 AM 9/17/2003, you wrote:
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,
======================================================================
Wendell Piez
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list