Re: generic apply-template call
> if you have a DTD you could use id() and then you just need to make > sure that your 2key" attributes are declared ID and have distinct > values. If not then it depends what you mean by > Is there a way to make the use attribuite of xsl:key select a particular > value? If so, then this could be the droid we are looking for. you could for example use <xsl:key name="x" match="*" use="@*"/> then you could go <xsl:apply-templates select="key('x','unique.key')"/> if 'unique.key' is sufficiently unique or, equivalent to what you had originally you could go <xsl:apply-templates select="key('x','unique.key')[@key='unique.key']"/> maybe you don't want @* but something like <xsl:key name="x" match="*" use="@key|@key-b|@key-c"/> David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Scanning Service. For further information visit http://www.star.net.uk/stats.asp or alternatively call Star Internet for details on the Virus Scanning Service. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format