xsl-list
[Top] [All Lists]

optional children

2002-10-21 04:24:42

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



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