[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Noob: Wrap cell content and some validation??
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
|
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
|