xsl-list
[Top] [All Lists]

Re: Trouble matching only elements with a specific combination of attributes in a child element.

2002-10-16 14:09:32
<xsl:template match="object[metadata/app_data[(_at_)name = 'Type' and [(_at_)value
                                                                   ^
Beware, typo. Delete the marked bracket.

J.Pietschmann

Thanks for the correction. At the moment I wrote the code I pondered whether to show the two alternatives:

<xsl:template match="object[metadata/app_data[(_at_)name = 'Type' and @value = 'RFI']]">

<xsl:template match="object[metadata/app_data[(_at_)name = 'Type'][(_at_)value = 'RFI']]">

Regards,

Joerg


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>