This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]