|
Subject: Re: [xsl] XSL, when elements don't exist From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 28 Oct 2003 15:24:55 -0500 |
I'm trying to process an XML document for which certain elements may or may not exist. How can I handle this? E.g. <xsl:if test= "element exists"></xsl:if> <xsl:if test= "element does not exist"></xsl:if> ...
node sets (sets of nodes in a source document) numbers strings Booleans
<property name="d" displayname="Defer Node Expansion" value="true" /> <property name="tr" displayname="Traverse DOM" value="true" />
<xsl:if test="not(child::property[@displayname='Defer Node Expansion']
or child::property[@displayname='Traverse DOM'])"><xsl:if test="not(child::property[@displayname='Defer Node Expansion'] |
child::property[@displayname='Traverse DOM'])">I hope this helps, 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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] XSL, when elements don't exis, Tanya S Buchanan | Thread | Re: [xsl] XSL, when elements don't , David Carlisle |
| Re: [xsl] logical operators in *tes, Wendell Piez | Date | Re: [xsl] XSL, when elements don't , David Carlisle |
| Month |