RE: [xsl] How to prevent that XML attributes ares

Subject: RE: [xsl] How to prevent that XML attributes ares
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Thu, 23 Feb 2006 12:49:06 -0500
At 04:49 AM 2/23/2006, you wrote:

What about this ?
It seems to work fine.

<xsl:template match="jasperReport/@isFloatColumnFooter | jasperReport/@isIgnorePagination | image/@isLazy">
<xsl:if test=". != 'false'">
<xsl:copy/>
</xsl:if>
</xsl:template>

Yes, that's okay too (just a bit longer).


The more concise version shows how template matches are, in effect, conditionals in disguise.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx 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 ======================================================================

Current Thread