Subject: optional children
From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx>
Date: Mon, 21 Oct 2002 12:24:42 +0100
|
Hi all,
I want to output <foo/> if and only if element <a> has child <b>, with
optional children <c> and <d>.
So for example
<a>
<b/>
</a>
should output <foo/>
<a>
<b/>
<c/>
<d/>
</a>
(or any combination of)
should output <foo/>
<a>
<b/>
<e/>
</a>
should not.
I think this is more difficult than it looks, the optional children
really mess things up... but I may be wrong :)
cheers
andrew
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.404 / Virus Database: 228 - Release Date: 15/10/2002
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- optional children
- Andrew Welch - Mon, 21 Oct 2002 07:21:20 -0400 (EDT) <=
- <Possible follow-ups>
- Andrew Welch - Mon, 21 Oct 2002 08:45:46 -0400 (EDT)
|
|