Re: [xsl] browser status on id/xml:id (idxml)

Subject: Re: [xsl] browser status on id/xml:id (idxml)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 25 Aug 2010 21:38:57 +0100
On 25/08/2010 20:58, Hermann Stamm-Wilbrandt wrote:

Hello,


after being directed to use xml:id with the id() function in another thread
I got another pointer from David Carlisle to using "id" in browsers.

Adding xhtml namespace to an element allows to use its id attribute as
id (browsers "know" that's an id).

Now I did some experiments which browsers support what.

why not simply use key(,'id',foo) instead if id(foo) using <xsl:key name="id" match="*[@id]" use="@id"/> which doesn't require any ID properties of the node?


David

Current Thread