xsl-list
[Top] [All Lists]

RE: How to prevent that XML attributes ares

2006-02-23 10:49:06
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(_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
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>