RE: [xsl] How do I check if an element exists with the same name

Subject: RE: [xsl] How do I check if an element exists with the same name
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 26 Mar 2001 10:50:58 +0100
> 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


Current Thread