Subject: [xsl] How to test a given node ? From: "Borca, Olivier" <Olivier.Borca@xxxxxxxxxxxxxxxx> Date: Mon, 12 Mar 2001 10:50:25 +0100 |
Hi, I need to make a test on a given node and I don't know how to do that. Let met explain. What I want to do is to know if /Schema/ElementType (which name is "foo") has a child called Group. For example, I have this XML document: <Schema> <ElementType name="foo"> <Group /> </ElementType> <Element name="foo" /> </Schema> In my XSLT, when I process the Element node, I want to check if the ElementType node (which has the same name attribute value as the Element name attribute) has a "Group" child. How can I do that ? Thx, Olivier -------------------------------------------------- Olivier Borca SoftPlumbers Engineer (Geneva) Tel: (+4122) 8491003 E-Mail: olivier.borca@xxxxxxxxxxxxxxxx -------------------------------------------------- XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Functional programming in, Joe English | Thread | Re: [xsl] How to test a given node , David Carlisle |
RE: [xsl] How to disable escaping o, Michael Kay | Date | [xsl] Passing an already parsed doc, Deirdre O'Brien |
Month |