Subject: Re: [xsl] Testing for Missing or Empty Tags From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 08 Jan 2004 12:57:56 -0500 |
Cheers, Wendell
XSLT has no access to the tags in the document.
the test <xsl:if test="not(Tag)" would test if there are any Tag element node children of the current node,
<xsl:if test="not(Tag[1]) or Tag ='' ">
is the same as
<xsl:if test="not(Tag) or Tag ='' ">
and tests if there is no Tag element or if some empty Tag element has empty string value, so it would be true on
<x><Tag><y/></Tag></x>
====================================================================== 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Testing for Missing or Em, David Carlisle | Thread | RE: [xsl] Testing for Missing or Em, Michael Kay |
RE: [xsl] How to assign a nodelist , Martinez, Brian | Date | RE: [xsl] Testing for Missing or Em, Schwartz, Rechell R, |
Month |