This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How do I check if an element exists with the same name
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] How do I check if an element exists with the same name
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 26 Mar 2001 10:50:58 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I tried things like:
>
> <xsl:template match="input-field">
...
> <xsl:apply-templates select="//missing-field[@name={name}]">
You can't use curly braces inside an XPath expression. You need:
<xsl:apply-templates select="//missing-field[@name=current()/@name]">
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list