Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 50198 invoked from network); 12 Apr 2000 11:34:09 -0000 Received: from gw.mk-informatique.com (HELO paris2.cross-systems.com) (195.115.16.142) by locus.apache.org with SMTP; 12 Apr 2000 11:34:09 -0000 Received: from leger3etbf ([172.16.140.68]) by paris2.cross-systems.com (Lotus Domino Release 5.0.1a (Intl)) with SMTP id 2000041213344685:5671 ; Wed, 12 Apr 2000 13:34:46 +0200 Message-ID: <003301bfa473$2a0ea3a0$448c10ac@csi.crosssystems.com> From: "Benoit Fouche" To: References: <38F432F3.3072@es.co.nz> Subject: XSL: howto test if an element have a child ? Date: Wed, 12 Apr 2000 13:35:11 +0200 MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-MIMETrack: Itemize by SMTP Server on LEGER/Paris/Cross-Systems/FR(Release 5.0.1a (Intl)|17 August 1999) at 12/04/2000 13:34:46, Serialize by Router on LEGER/Paris/Cross-Systems/FR(Release 5.0.1a (Intl)|17 August 1999) at 12/04/2000 13:34:50, Serialize complete at 12/04/2000 13:34:50 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi ! I am currently applying XSL stylesheet to an XML doc to generate WML (=HTML for WAP) My XML doc looks like this (and must be like this, I can't change the structure nor the attributes...) : In the tag option, you can have several differents attributes, so I would like to make a test on those attribute like this: I would like to do the following algorithm in XSL: For all the "select/option" tag where the option@url DOESN'T exists I would like to output a copy of the select tag: And for the "select/option" tag where the option@url exists I just want to output a link: value-of option (without the "select" tag, here is the problem...) My steelsheet looks like this, but doesn't work (parser crashes...) : any help would be great ! Ben.