Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: How to create an xsl:key using an attribute of an element in another namespace How to create an xsl:key using an attribute of an element in another namespaceTo: NULL Date: 2/4/2006 11:58:00 PM Hi everybody In the following sample I'm trying to create an xsl:key using the @fileExtension attribute of the data:IconInfo elements. Unfortunately this syntax doesn't work. Does anybody have an idea what I'm doing wrong? <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:data="http://example/icon-info" extension-element-prefixes="data"> <data:IconInfos> <data:IconInfo fileExtension="pdf" iconUrl="Images/icon_pdf.gif" /> <data:IconInfo fileExtension="zip" iconUrl="Images/icon_zip.gif" /> <data:IconInfo fileExtension="txt" iconUrl="Images/icon_txt.gif" /> </data:IconInfos> <xsl:key name="iconInfoLookup" match="data:IconInfos/data:IconInfo" use="@fileExtension"/> </xsl:stylesheet> Kind regards Thomas | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
