Re: [xsl] Noob: Wrap cell content and some validation??

Subject: Re: [xsl] Noob: Wrap cell content and some validation??
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 17 Sep 2003 11:50:16 -0400

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"/>

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.


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"/>
<xsl:if test='not(Root/Amount = "null")'><xsl:value-of select="Root/Amount"/></xsl:if>
Thanks guys,

Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.      
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:

Current Thread