xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor