This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
How to test a given node ?
- To: "Xsl-List (E-mail)" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] How to test a given node ?
- From: "Borca, Olivier" <Olivier dot Borca at softplumbers dot com>
- Date: Mon, 12 Mar 2001 10:50:25 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
- Thread-Index: AcCq2dzMJTh/fPZXS8yVBUmv4I+yiA==
- Thread-Topic: How to test a given node ?
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@softplumbers.com
--------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list