[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: Noob: Wrap cell content and some validation??
From: "Barry van Weldam" <barry@xxxxxxx>
Date: Wed, 17 Sep 2003 08:23:00 +0200
xsl if content null
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@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, September 16, 2003 8:44 PM
Subject: RE:  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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.